Compare commits

..

No commits in common. "287d4a452d5408cfe39d27e904e2a0132ba6a30c" and "1374da92d718c144b2b423a3012d4537caa198e5" have entirely different histories.

16 changed files with 119 additions and 182 deletions

View File

@ -3,7 +3,3 @@ alias ap='ansible-playbook'
alias yey='yay -Syu --noconfirm'
# Avoid losing stuff
alias rm='rmtrash'
# cp is rsync
alias cp='cpv'
# ls sorted by modification time
alias lt='ls -lath'

View File

@ -43,6 +43,7 @@ pass
picom
playerctl
polybar
powerline-fonts
python-dbus
python-gobject
python-pip
@ -66,7 +67,6 @@ ttf-font-awesome
ttf-material-icons-git
ttf-symbola
ttf-weather-icons
ttf-meslo-nerd
unzip
usb_modeswitch
vim

View File

@ -1,35 +0,0 @@
# See https://github.com/polybar/polybar/wiki/Formatting#format-tags-inside-polybar-config
# Only way to use format tags with variables in polybar for now
export MOCHA_TEXT="#cdd6fa"
export MOCHA_MAROON="#eba0ac"
export MOCHA_PEACH="#fab387"
export MOCHA_LAVENDER="#b4befe"
export MOCHA_BLUE="#89b4fa"
export MOCHA_SKY="#89dceb"
export MOCHA_YELLOW="#f9e2af"
export MOCHA_GREEN="#a6e3a1"
export MOCHA_SAPPHIRE="#74c7ec"
export MOCHA_PINK="#f5c2e7"
export MOCHA_ROSEWATER="#f2cdcd"
export MOCHA_MAUVE="#ca9ee6"
export MOCHA_TEAL="#81c8be"
export BAR_WINDOW="%{F$MOCHA_TEXT}%title%"
export BAR_WIFI_CONNECTED="%{F$MOCHA_TEXT}%essid% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %local_ip% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %downspeed% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %upspeed%"
export BAR_WIRED_CONNECTED="%{F$MOCHA_TEXT}%ifname% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %local_ip% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %downspeed% %{F$MOCHA_YELLOW}%{F$MOCHA_TEXT} %upspeed%"
export BAR_CPU="%{F$MOCHA_MAUVE} "
export BAR_TEMP_OK="%{F$MOCHA_MAUVE} %{F-} %temperature-c%"
export BAR_TEMP_WARN="%{F$MOCHA_PEACH} %{F-} %temperature-c%"
export BAR_MENU_OPEN="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}"
export BAR_MENU_CLOSE="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}"
export BAR_BACKLIGHT="{F$MOCHA_SKY}☀️%{F$MOCHA_TEXT} %percentage%%"
export BAR_BATTERY_FULL="%{$MOCHA_SAPPHIRE} %percentage%%"
export BAR_BATTERY_CHARGING="${MOCHA_LAVENDER} %percentage%%"
export BAR_BATTERY_DISCHARGIN="${MOCHA_PEACH} %percentage%%"
export BAR_MEMORY_DESKTOP="%{F$MOCHA_MAUVE}"
export BAR_MEMORY_LAPTOP="%{F$MOCHA_MAUVE}%percentage_used%%"
export BAR_MEMORY_LAPTOP_WARN="%{F$MOCHA_PEACH}%percentage_used%%"
export BAR_DATE="%{F$MOCHA_MAUVE}🕓%{F$MOCHA_TEXT} %date% · %time%"
export BAR_LOW_VOL="%{F$MOCHA_MAUVE}🔈%{F$MOCHA_TEXT}"
export BAR_MED_VOL="%{F$MOCHA_MAUVE}🔉%{F$MOCHA_TEXT}"
export BAR_HIGH_VOL="%{F$MOCHA_MAUVE}🔊%{F$MOCHA_TEXT}"
export BAR_HEAD_VOL="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}"

View File

@ -14,19 +14,19 @@ type = internal/memory
interval = 0.2
format = <label> <bar-used>
label = ${env:BAR_MEMORY_DESKTOP}
label = %{F#fba922}
bar-used-width = 50
bar-used-gradient = true
bar-used-foreground-0 = ${colors.sapphire}
bar-used-foreground-1 = ${colors.sapphire}
bar-used-foreground-2 = ${colors.peach}
bar-used-foreground-3 = ${colors.red}
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-indicator =
bar-used-indicator-font = 2
bar-used-indicator-foreground = ${colors.sapphire}
bar-used-indicator-foreground = #fff
bar-used-fill =▐
bar-used-fill-font = 2
bar-used-empty =▐
bar-used-empty-font = 2
bar-used-empty-foreground = ${colors.overlay2}
bar-used-empty-foreground = #444444

View File

@ -15,5 +15,5 @@ interval = 0.2
format = <label>
format-warn = <label-warn>
warn-percentage = 60
label = ${env:BAR_MEMORY_LAPTOP}
label-warn = ${env:BAR_MEMORY_LAPTOP_WARN}
label = %{F#fba922}%{F#77dd77} %percentage_used%%
label-warn = %{F#fba922} %percentage_used%%

View File

@ -1,6 +1,14 @@
[colors]
; First two letter of background are for transparency
background = #882f343f
foreground = #eee
foreground-alt = #555
secondary = #e60053
alert = #bd2c40
accent = #fba922
[global/wm]
margin-top=50
include-file = $HOME/.config/polybar/mocha.ini
; Common to top and bottom bars
[bar/common]
@ -8,27 +16,27 @@ width = 100%
dpi = ${variables.dpi}
enable-ipc = true
height = ${variables.height}
foreground = ${colors.text}
background = ${colors.surface0}
foreground = ${colors.foreground}
background = ${colors.background}
line-size = 3
line-color = ${colors.base}
line-color = #f00
locale = fr_FR.UTF-8
monitor = ${env:MONITOR:HDMI-0}
[bar/chostytopbar]
inherit = bar/common
font-0 = NotoSans-Regular:size=10;1
font-0 = NotoSans-Regular:size=10;2
font-1 = MaterialIcons-Regular:size=11;4
font-2 = Symbola:size=10;2
font-3 = Weather Icons:size=10;3
overline-size = 10
underline-size = 10
overline-color = ${colors.mauve}
underline-color = ${colors.mauve}
overline-color = ${self.background}
underline-color = ${self.background}
border-bottom-size = 1
border-bottom-color = ${colors.base}
border-bottom-color = #333
padding-left = 2
padding-right = 10
module-margin-left = 4
@ -45,9 +53,9 @@ inherit = bar/common
bottom = true
overline-size = 3
overline-color = ${colors.mauve}
overline-color = ${colors.accent}
underline-size = 3
underline-color = ${colors.mauve}
underline-color = ${colors.accent}
spacing = 3
padding-left = 0
@ -55,9 +63,9 @@ padding-right = 5
module-margin-left = 6
module-margin-right = 6
font-0 = NotoSans-Regular:size=10;1
font-1 = Symbola:size=4;2
font-2 = Symbola:size=5;2
font-0 = Roboto:size=10;2
font-1 = Symbola:size=4;1
font-2 = Symbola:size=5;1
;MaterialIcons are the ones used for i3 icons
font-3 = MaterialIcons-Regular:size=11;4
font-4 = Font Awesome 5 Free:style=solid:size=10;2
@ -73,16 +81,16 @@ tail = true
[module/xwindow]
type = internal/xwindow
label = ${env:BAR_WINDOW}
label = %{F#ddd}%title%
label-maxlen=100
[module/wireless-network]
type = internal/network
interface-type = wireless
interval = 1
label-connected = ${env:BAR_WIFI_CONNECTED}
label-connected = %{F#ddd}%essid%  %local_ip% %{F#77dd77}%{F-} %downspeed% %{F#dd7777}%{F-} %upspeed%
label-disconnected = Wireless disconnected
label-disconnected-foreground = ${colors.text}
label-disconnected-foreground = #66
; Poorly documented and hackish way to have more space between some modules
label-connected-margin = 10
label-disconnected-margin = 10
@ -92,9 +100,9 @@ type = internal/network
interface =
interface-type = wired
interval = 1
label-connected = ${env:BAR_WIRED_CONNECTED}
label-connected = %{F#ddd}%ifname%  %local_ip% %{F#77dd77}%{F-} %downspeed% %{F#dd7777}%{F-} %upspeed%
label-disconnected = Ethernet disconnected
label-disconnected-foreground = ${colors.text}
label-disconnected-foreground = #66
[module/i3]
type = internal/i3
@ -109,31 +117,29 @@ ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
label-dimmed-underline = ${root.background}
label-separator = |
label-mode-underline = ${colors.surface1}
label-focused = %icon% %name%
label-focused-foreground = ${colors.text}
label-focused-underline = ${colors.mauve}
label-focused-foreground = #f3f3f3
;label-focused-underline = #${colors.accent}
label-focused-underline = #9f78e1
label-focused-font = 0
label-focused-padding = 4
label-unfocused = %icon% %name%
label-unfocused-underline = ${colors.surface1}
label-unfocused-underline = #555555
label-unfocused-font = 0
label-unfocused-padding = 4
label-urgent = %icon% %name%
label-urgent-foreground = ${colors.base}
label-urgent-background = ${colors.red}
label-urgent-underline = ${colors.mauve}
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
label-urgent-font = 0
label-urgent-padding = 4
label-visible = %icon% %name%
label-visible-foreground = ${colors.text}
label-visible-underline = ${colors.surface1}
label-visible-foreground = #55ffffff
label-visible-font = 0
label-visible-padding = 4
@ -143,39 +149,42 @@ interval = 0.5
format = <label> <ramp-coreload>
label = ${env:BAR_CPU}
label = %{F#fba922} 
ramp-coreload-0 = ▁
ramp-coreload-0-font = 3
ramp-coreload-0-foreground = ${colors.sapphire}
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 3
ramp-coreload-1-foreground = ${colors.sapphire}
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 3
ramp-coreload-2-foreground = ${colors.sapphire}
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 3
ramp-coreload-3-foreground = ${colors.sapphire}
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 3
ramp-coreload-4-foreground = ${colors.peach}
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 3
ramp-coreload-5-foreground = ${colors.peach}
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 3
ramp-coreload-6-foreground = ${colors.maroon}
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 3
ramp-coreload-7-foreground = ${colors.red}
ramp-coreload-7-foreground = #ff5555
[module/date]
type = internal/date
interval = 1.0
date = " %A %d %B %Y"
time = %H:%M:%S
label = ${env:BAR_DATE}
label = %{F#ddd} %date%  %time%
[module/temperature]
type = internal/temperature
@ -183,42 +192,49 @@ thermal-zone = 0
warn-temperature = 60
interval = 0.5
format = <label>
format-warn = <label-warn>
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = ${env:BAR_TEMP_OK}
label-warn = ${env:BAR_TEMP_WARN}
label-warn-foreground = ${colors.text}
label = %{F#77dd77} %{F-} %temperature-c%
label-warn = %{F#dd7777} %{F-} %temperature-c%
label-warn-foreground = #dd7777
ramp-0 =
ramp-1 =
ramp-2 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-padding = 3
label-open = ${env:BAR_MENU_OPEN}
label-close = ${env:BAR_MENU_CLOSE}
label-open = %{F#dd7777}%{F#ddd}
label-close = %{F#dd7777}%{F#ddd}
label-separator = " · "
menu-0-0 = Exit i3
menu-0-0-foreground = ${colors.text}
menu-0-0-foreground = ${colors.accent}
menu-0-0-exec = i3-msg exit
menu-0-1 = Reboot
menu-0-1-foreground = ${colors.text}
menu-0-1-foreground = ${colors.accent}
menu-0-1-exec = menu-open-1
menu-0-2 = Power off
menu-0-2-foreground = ${colors.text}
menu-0-2-foreground = ${colors.accent}
menu-0-2-exec = menu-open-2
menu-1-0 = Cancel
menu-1-0-foreground = ${colors.mauve}
menu-1-0-foreground = ${colors.accent}
menu-1-0-exec = menu-open-0
menu-1-1 = Reboot
menu-1-1-foreground = ${colors.mauve}
menu-1-1-foreground = ${colors.accent}
menu-1-1-exec = systemctl reboot -i
menu-2-0 = Cancel
menu-2-0-foreground = ${colors.mauve}
menu-2-0-foreground = ${colors.accent}
menu-2-0-exec = menu-open-0
menu-2-1 = Power off
menu-2-1-foreground = ${colors.mauve}
menu-2-1-foreground = ${colors.accent}
menu-2-1-exec = systemctl poweroff
[module/system-usb-udev]
@ -246,7 +262,7 @@ interval = 30
[module/backlight]
type = internal/backlight
card = intel_backlight
label = ${env:BAR_BACKLIGHT}
label = %{F#77dd77}☀️%{F#ddd} %percentage%%
bar-width = 10
bar-indicator = |
bar-fill = ─
@ -259,7 +275,7 @@ interval = 5
format-volume = <ramp-volume> <label-volume>
label-muted = 🔇 muted
label-muted-foreground = ${colors.rosewater}
label-muted-foreground = #666
ramp-volume-0 = 🔈
ramp-volume-1 = 🔉
@ -277,9 +293,9 @@ poll-interval = 5
format-charging = <label-charging>
format-discharging = <label-discharging>
format-full = <label-full>
label-charging = ${env:BAR_BATTERY_CHARGING}
label-discharging = ${env:BAR_BATTERY_DISCHARGING}
label-full = ${env:BAR_BATTERY_FULL}
label-charging =  %percentage%%
label-discharging =  %percentage%%
label-full = %{F#77dd77}
[module/alsa]
type = internal/alsa
@ -292,13 +308,13 @@ master-mixer = Master
format-volume = <ramp-volume> <label-volume>
label-muted = 🔇 muted
label-muted-foreground = ${colors.rosewater}
label-muted-foreground = #66
ramp-volume-0 = ${env:BAR_LOW_VOL}
ramp-volume-1 = ${env:BAR_MED_VOL}
ramp-volume-2 = ${env:BAR_HIGH_VOL}
ramp-volume-0 = 🔈
ramp-volume-1 = 🔉
ramp-volume-2 = 🔊
ramp-headphones-0 = ${env:BAR_HEAD_VOL}
ramp-headphones-1 = ${env:BAR_HEAD_VOL}
ramp-headphones-0 =
ramp-headphones-1 =
interval = 3

View File

@ -1,8 +1,6 @@
#/bin/sh
source $(dirname $0)/../.env
source $(dirname $0)/filesystem.data
output=""
for i in "${!parts[@]}"; do
avail=$(df -h ${parts[$i]} | tail -1 | tr -s ' ' | cut -d' ' -f4)
@ -10,13 +8,13 @@ for i in "${!parts[@]}"; do
num=$(echo ${used} | cut -d'%' -f1)
if [ "$num" -gt 80 ] ; then
color="$MOCHA_RED"
color="#dd7777"
elif [ "$num" -gt 50 ] ; then
color="$MOCHA_PEACH"
color="#fba922"
else
color="$MOCHA_MAUVE"
color="#77dd77"
fi
output=$output"%{F${color}}${icons[$i]} $used%{F$MOCHA_TEXT} · $avail"
output=$output"%{F${color}}${icons[$i]} $used%{F#555} · $avail%{F-}"
if [ $(($i + 1)) -ne "${#parts[@]}" ] ; then
output=$output" "
fi

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
source ~/.config/polybar/.env
names=("chostybottombar" "chostytopbar")
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

View File

@ -1,3 +1,3 @@
#!/bin/sh
source $(dirname $0)/../.env
echo "%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT} " $(uptime --pretty | sed 's/up //')
echo "%{F#77dd77}%{F#ddd} " $(uptime --pretty | sed 's/up //')

View File

@ -1,6 +1,5 @@
#!/bin/sh
source $(dirname $0)/../.env
# Dependencies : jq ; udisks2
# Some updates by Quentin Duchemin on 18/03/07
# - Add label in lsblk selection
@ -42,7 +41,7 @@ usb_print() {
output="$output$space$mounted"
done
echo "%{F$MOCHA_TEXT}$output"
echo "%{F#ddd}$output"
}
usb_update() {

View File

@ -1,6 +1,5 @@
#!/bin/sh
source $(dirname $0)/../.env
connect=$(ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` &> /dev/null)
if [ $? -eq 0 ]; then
updates_arch=$(/usr/bin/checkupdates | wc -l)
@ -8,9 +7,9 @@ if [ $? -eq 0 ]; then
updates_aur=$(yay -Qua | wc -l)
updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then
echo "%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT} $updates_arch | $updates_aur"
echo "%{F#dd7777}%{F#ddd} $updates_arch | $updates_aur"
else
echo "%{F$MOCHA_GREEN}%{F$MOCHA_TEXT} 0"
echo "%{F#77dd77}%{F#ddd} 0"
fi
else
echo "%{F#77dd77}%{F#ddd} Offline"

View File

@ -2,10 +2,8 @@
borderless = True
use_custom_url_handler = True
custom_url_handler = firefox
enabled_plugins = ActivityWatch, InactivityWatch, LaunchpadBugURLHandler, LaunchpadCodeURLHandler, APTURLHandler, TerminalShot, TerminatorThemes
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
suppress_multiple_term_dialog = True
always_split_with_profile = True
putty_paste_style_source_clipboard = True
[keybindings]
go_next = <Primary><Shift>n
go_prev = <Primary><Shift>p
@ -27,32 +25,12 @@
[profiles]
[[default]]
icon_bell = False
background_color = "#282828"
background_darkness = 1.0
cursor_fg_color = "#000000"
cursor_bg_color = "#aaaaaa"
background_darkness = 0.8
background_type = transparent
font = DejaVu Sans Mono 11
foreground_color = "#ebdbb2"
scrollbar_position = hidden
scrollback_infinite = True
use_system_font = False
use_theme_colors = True
bold_is_bright = True
title_transmit_fg_color = "#000000"
title_transmit_bg_color = "#ffffff"
[[Catppuccin_Mocha]]
icon_bell = False
background_color = "#282828"
background_darkness = 1.0
cursor_fg_color = "#000000"
cursor_bg_color = "#f5e0dc"
font = MesloLGM Nerd Font 11
foreground_color = "#ebdbb2"
scrollbar_position = hidden
scrollback_infinite = True
palette = "#45475a:#f38ba8:#a6e3a1:#f9e2af:#89b4fa:#f5c2e7:#94e2d5:#bac2de:#585b70:#f38ba8:#a6e3a1:#f9e2af:#89b4fa:#f5c2e7:#94e2d5:#a6adc8"
use_system_font = False
bold_is_bright = True
title_transmit_fg_color = "#000000"
title_transmit_bg_color = "#ffffff"
[layouts]
@ -70,6 +48,6 @@
type = Terminal
parent = child0
order = 0
profile = Catppuccin_Mocha
profile = default
uuid = 498cd758-0193-4b69-b40a-9743e0b080a7
[plugins]

View File

@ -121,13 +121,9 @@ if [ ! -z "$INIT" ]; then
pip install --break-system-packages pychee
# Additionnal plugins for ZSH
echo -e "* Install ZSH plugins for oh-my-zsh..."
sudo git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/zsh-fast-syntax-highlighting
sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/zsh-syntax-highlighting
sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/oh-my-zsh/plugins/zsh-autosuggestions
sudo git clone https://github.com/unixorn/fzf-zsh-plugin.git /usr/share/oh-my-zsh/plugins/fzf-zsh-plugin
echo -e "* Install everything we need for Catppuccin themes..."
echo -e "\tFor polybar..."
wget https://github.com/catppuccin/polybar/blob/main/themes/mocha.ini -O ~/.config/polybar/mocha.ini
sudo wget https://raw.githubusercontent.com/catppuccin/zsh-fsh/main/themes/catppuccin-macchiato.ini -O /usr/share/oh-my-zsh/plugins/fast-syntax-highlighting
# Basic directory structure
echo -e "* Create base home directories..."
mkdir -p ~/documents ~/images/screenshots ~/videos ~/downloads
@ -143,15 +139,6 @@ if [ ! -z "$INIT" ]; then
# This creates a Xorg configuration file
sudo localectl --no-convert set-x11-keymap fr
echo -e "* Create a symlink rrm → rm (rm will be an alias to rmtrash) in zsh"
echo -e "* Install synchronization extension for VSCode settings and plugins..."
# Avoid to push whole extensions up to hundreds of MB, and avoid using
# Micro$oft proprietary stuff, usable with any git server
vscodium --install-extension zokugun.sync-settings
git clone git@git.chosto.me:Chosto/codium-settings.git ~/.config/codium-settings
echo -e "* Install plugin to pick theme for Terminator..."
# See https://github.com/EliverLara/terminator-themes
mkdir -p $HOME/.config/terminator/plugins
wget https://git.io/v5Zww -O $HOME"/.config/terminator/plugins/terminator-themes.py"
fi
if [ ! -z ${ENV} ]; then

2
.vimrc
View File

@ -2,5 +2,3 @@ vmap <C-c> :<Esc>`>a<CR><Esc>mx`<i<CR><Esc>my'xk$v'y!xclip -selection c<CR>u
map <Insert> :set paste<CR>i<CR><CR><Esc>k:.!xclip -o<CR>JxkJx:set nopaste<CR>
" Reopen the last edited position in files
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
syntax on
filetype on

24
.zshrc
View File

@ -1,6 +1,11 @@
# Path to your oh-my-zsh installation.
export ZSH=/usr/share/oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"
@ -19,6 +24,8 @@ HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
[[ -s /home/.autojump/etc/profile.d/autojump.sh ]] && source /home/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
@ -38,8 +45,6 @@ plugins=(
docker
# unique command for most archives
extract
# fish-like highlighting as you type
fast-syntax-highlighting
# fuzzy finder for history, files, docker, process, etc (see fzf)
fzf-zsh-plugin
# aliases
@ -48,6 +53,8 @@ plugins=(
pass
# fish-like completion as you type
zsh-autosuggestions
# fish-like syntax hightlightin as you type
zsh-syntax-highlighting
)
# Enable option stacking in autocomplete, i.e. docker run -it <TAB>
@ -57,24 +64,21 @@ zstyle ':completion:*:*:docker-*:*' option-stacking yes
# Load ZSH
source $ZSH/oh-my-zsh.sh
# Use Quick Term prompt theme made for Oh My Posh, in zsh
eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/quick-term.omp.json)"
# And use Catppuccin Mocha theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/fsh)
fast-theme LOCAL:catppuccin-mocha >/dev/null
# Preferred editor for local and remote sessions
export EDITOR=vim
# Do not print user@hostname if user is myself
DEFAULT_USER=`whoami`
# Aliases
alias cp="cpv"
alias lt='ls -lath'
# To use when .cfg contains a bare git repo.
# See this https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
# Use GPG key for SSH authentication
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
@ -82,12 +86,10 @@ fi
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null
# Source aliases
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
# Source environment variables
if [ -f ~/.env ]; then
. ~/.env
fi

View File

@ -21,7 +21,6 @@ So basically, what I like about this setup is that there is no "useless" menu ba
In brief this is the classic Arch/i3 combo with :
* A wonderful theming for most of installed software with [Catppuccin Latte](https://github.com/catppuccin/catppuccin):wq
* [Polybar](https://github.com/jaagr/polybar/), a great replacement for i3-bar with easy custom plugins and [system tray](https://specifications.freedesktop.org/systemtray-spec/systemtray-spec-0.3.html)
* A notification daemon (urgency-aware), [Dunst](https://github.com/dunst-project/dunst), controlled by shortcuts (but possibly with mouse)
* [Rofi](https://github.com/DaveDavenport/rofi), a full-customizable app launcher