#+TITLE: Simple X Hotkey Daemon #+SETUPFILE: ./setup/org-setup-file.org #+PROPERTY: header-args :comments no #+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :tangle ~/.config/sxhkd/sxhkdrc * Basic #+begin_src conf # Kill Windows super + ctrl + x xkill #+end_src #+begin_src conf # make sxhkd reload its configuration files: super + Escape pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config' # Update Polybar super + shift + r polybar-msg cmd restart #+end_src #+begin_src conf # Exit Screen XF86PowerOff i3exit # Exit Screen super + 0 i3exit #+end_src Change Keyboard Layout: #+begin_src conf # Change keyboard to US-International layout super + ctrl + d setxkbmap -layout us -variant intl -option caps:escape # Change keyboard to US layout super + shift + d setxkbmap -layout us -option caps:escape #+end_src Notifications: #+begin_src conf alt + space dunstctl close alt + BackSpace dunstctl history-pop #+end_src * Multimedia keys ** Sound #+begin_src conf # Mute/Unmute XF86AudioMute pactl set-sink-mute @DEFAULT_SINK@ toggle # Increase Volume XF86AudioRaiseVolume pactl -- set-sink-volume 0 +2% # Decrease Volume XF86AudioLowerVolume pactl -- set-sink-volume 0 -2% #+end_src ** Backlight #+begin_src conf # Increase Backlight XF86MonBrightnessUp light -A 10 # Descrease Backlight XF86MonBrightnessDown light -U 10 #+end_src ** Change Tracks #+begin_src conf # Play/Pause music super + period playerctl --player=jellyfin-tui play-pause # Previous/Next music super + {greater,less} playerctl --player=jellyfin-tui {next,previous} #+end_src ** Print Screen #+begin_src conf # Screenshot script Print ~/.local/bin/screenshot # Switch Windows XF86Display rofi -show window #+end_src ** Other #+begin_src conf # Run Command XF86Search rofi -show run #+end_src * =Super + key= - Start Applications #+begin_src conf # Switch Windows super + w rofi -show window # program launcher super + d rofi -show run # categorized menu super + z rofi -show drun #+end_src #+begin_src conf # Start Terminal super + Return $TERMINAL # Start Terminal (floating) super + shift + Return $TERMINAL --class floating # File Manager super + o $TERMINAL -e tmux new-session -A -s yazi yazi # Unicode Insert super + u insert-unicode # Browser super + i qutebrowser # Mails with neomutt super + m $TERMINAL -e tmux new-session -A -s neomutt neomutt # Emacs Client super + shift + e emacs super + e emacsclient -create-frame --alternate-editor="" #+end_src * =Super + Shift= - Managing Applications #+begin_src conf # Bluetooth Manager super + shift + b blueman-manager # Calculator super + shift + c rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '\{result\}' | xclip -selection clipboard" # Sound Manager super + shift + s pwvucontrol # Passwords super + shift + p rofi-pass # Fill ESRF password super + shift + f xdotool key $(pass esrf.fr/dehaeze | head -n 1 | sed 's/./& /g' | sed 's/}/braceright/g') #+end_src * =Super + Space= - Command Mode #+begin_src conf # Command line Calendar Client (khal) super + space ; c $TERMINAL --title khal -e ikhal # pcmanfm: GUI file manager super + space ; o pcmanfm; # Run another instance of Neomutt in read-only mode super + space ; m $TERMINAL -e neomutt -R # Matrix Client super + space ; w $TERMINAL -e tmux new-session -A -s gomuks gomuks # Music with ncmpcpp super + space ; p $TERMINAL --class jellyfin-tui -e tmux new-session -A -s jellyfin jellyfin-tui # TODO Torrent Client with stig super + space ; t $TERMINAL -e tmux new-session -A -s stig stig #+end_src