-* Tangles
-** Spectrwm
-*** General settings
-#+begin_src conf :tangle ~/.spectrwm.conf
- workspace_limit = 5
- warp_pointer = 1
- modkey = Mod4
- autorun = ws[1]:/home/armaa/Code/scripts/autostart
-#+end_src
-*** Bar
-#+begin_src conf :tangle ~/.spectrwm.conf
- bar_enabled = 0
- bar_font = xos4 Fira Code:pixelsize=14:antialias=true # any installed font
-#+end_src
-*** Keybindings
-**** WM actions
-#+begin_src conf :tangle ~/.spectrwm.conf
- program[lock] = i3lock -c 000000 -ef
- program[term] = alacritty
- program[screenshot_all] = flameshot gui
- program[menu] = rofi -show run # `rofi-dmenu` handles the rest
- program[switcher] = rofi -show window
- program[notif] = /home/armaa/Code/scripts/setter status
-
- bind[notif] = MOD+n
- bind[switcher] = MOD+Tab
-#+end_src
-**** Media keys
-#+begin_src conf :tangle ~/.spectrwm.conf
- program[paup] = /home/armaa/Code/scripts/setter audio +5
- program[padown] = /home/armaa/Code/scripts/setter audio -5
- program[pamute] = /home/armaa/Code/scripts/setter audio
- program[brigup] = /home/armaa/Code/scripts/setter brightness +10%
- program[brigdown] = /home/armaa/Code/scripts/setter brightness 10%-
- program[next] = playerctl next
- program[prev] = playerctl previous
- program[pause] = playerctl play-pause
-
- bind[padown] = XF86AudioLowerVolume
- bind[paup] = XF86AudioRaiseVolume
- bind[pamute] = XF86AudioMute
- bind[brigdown] = XF86MonBrightnessDown
- bind[brigup] = XF86MonBrightnessUp
- bind[pause] = XF86AudioPlay
- bind[next] = XF86AudioNext
- bind[prev] = XF86AudioPrev
-#+end_src
-**** HJKL
-#+begin_src conf :tangle ~/.spectrwm.conf
- program[h] = xdotool keyup h key --clearmodifiers Left
- program[j] = xdotool keyup j key --clearmodifiers Down
- program[k] = xdotool keyup k key --clearmodifiers Up
- program[l] = xdotool keyup l key --clearmodifiers Right
-
- bind[h] = MOD + Control + h
- bind[j] = MOD + Control + j
- bind[k] = MOD + Control + k
- bind[l] = MOD + Control + l
-#+end_src
-**** Programs
-#+begin_src conf :tangle ~/.spectrwm.conf
- program[aerc] = alacritty -e aerc
- program[catgirl] = alacritty --hold -e sh -c "while : ; do ssh root@armaanb.net -t abduco -A irc catgirl freenode; sleep 2; done"
- program[emacs] = emacsclient -c
- program[firefox] = firefox
- program[calc] = alacritty -e bc
- program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
- program[pass] = rofi-pass
-
- bind[aerc] = MOD+Control+1
- bind[catgirl] = MOD+Control+2
- bind[firefox] = MOD+Control+3
- bind[emacs-anywhere] = MOD+Control+4
- bind[calc] = MOD+Control+5
- bind[emacs] = MOD+Control+Return
- bind[pass] = MOD+Shift+P
-#+end_src
-** Zsh
-*** Settings
-**** Completions
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- autoload -Uz compinit
- compinit
-
- setopt no_case_glob
- unsetopt glob_complete
-
- # Fragment completions
- zstyle ':completion:*' list-suffixes
zstyle ':completion:*' expand prefix suffix
-
- # Menu completions
- zstyle ':completion:*' menu select
- zmodload zsh/complist
- bindkey -M menuselect '^n' expand-or-complete
- bindkey -M menuselect '^p' reverse-menu-complete
-
-#+end_src
-**** Vim bindings
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- bindkey -v
- KEYTIMEOUT=1
-
- bindkey -M vicmd "^[[3~" delete-char
- bindkey "^[[3~" delete-char
-
- autoload edit-command-line
- zle -N edit-command-line
- bindkey -M vicmd ^e edit-command-line
- bindkey ^e edit-command-line
-#+end_src
-**** History
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- setopt extended_history
- setopt share_history
- setopt inc_append_history
- setopt hist_ignore_dups
- setopt hist_reduce_blanks
-
- HISTSIZE=100000
- SAVEHIST=100000
- HISTFILE=~/.local/share/zsh/history