sxhkdrc (6830B) - raw


      1 #           _     _       _
      2 #          | |   | |     | |
      3 #  _____  _| |__ | | ____| |
      4 # / __\ \/ / '_ \| |/ / _` |
      5 # \__ \>  <| | | |   < (_| |
      6 # |___/_/\_\_| |_|_|\_\__,_|
      7 #
      8 #
      9 
     10 # Commands are procedurally added to the manual.
     11 
     12 # To do so, for every command, add a line starting
     13 # with `##` which has a generic description of what
     14 # the command does.
     15 
     16 # The pdf will associate it with the binding BELOW IT.
     17 
     18 # `#` followed by a space will be ignored and treated
     19 # as regular comments.
     20 
     21 # `#-#` at the beggining of a line will be converted to
     22 # a header in the manual.
     23 
     24 #-# dwm #-#
     25 ## Quit dwm
     26 super + shift + q
     27 	dwmc quit
     28 ## Toggle the dwm bar
     29 super + b
     30 	dwmc togglebar
     31 ## Change layout to {tiling, monocle}
     32 super + {_,shift} t
     33 	dwmc setlayoutex {0,2}
     34 ## Change layout to {grid, floating}
     35 super + {_,shift} g
     36 	dwmc setlayoutex {5,1}
     37 ## Change layout to {centeredmaster, floatingcenteredmaster}
     38 super + {_,shift} m
     39 	dwmc setlayoutex {3,4}
     40 ## Make window fullscreen
     41 super + f
     42 	dwmc fullscreen
     43 ## Make current window floating
     44 super + shift + space
     45 	dwmc togglefloating
     46 ## Cycle up and down the window stack (change focus)
     47 super + {j,k}
     48 	dwmc focusstack {+,-}1
     49 ## Rotate clockwise/counterclockwise the window stack
     50 super + shift + {j,k}
     51 	dwmc rotatestack {+,-}1
     52 ## Move current window up/down the stack
     53 super + shift + {h,l}
     54 	dwmc movestack {-,+}1
     55 ## Change focus to/swap the master window
     56 super + {_, shift} + s
     57 	dwmc {focusmaster,  zoom}
     58 ## Add/Remove windows from the master stack
     59 super + {_,shift} + i
     60 	dwmc incnmaster {+,-}1
     61 ## Increase/Decrease master stack width
     62 super + {h,l}
     63 	dwmc setmfact {-,+}0.05
     64 ## Toggle view next tag
     65 super + Tab
     66 	dwmc view
     67 ## Cycle forward/backward through monitor focus
     68 super + {comma,period}
     69 	dwmc focusmon {-,+}1
     70 ## Move current window to previous/next monitor
     71 super + shift + {comma,period}
     72 	dwmc tagmon {-,+}1
     73 ## Set the master monitor to be the previous/next monitor
     74 super + alt + {comma,period}
     75 	dwmc setmastermon {-,+}1
     76 ## View all tags
     77 super + 0
     78 	dwmc viewall
     79 ## Move current window to tag {1-9}
     80 super + shift + {1-9}
     81 	dwmc tagex {0-8}
     82 ## Only view the tag {1-9}
     83 super + {1-9}
     84 	dwmc viewex {0-8}
     85 ## Toggle the visibility tag {1-9}
     86 super + alt + {1-9}
     87 	dwmc toggleviewex {0-8}
     88 ## Toggle (pin/unpin) the current window on tag {1-9}
     89 alt + {1-9}
     90 	dwmc toggletagex {0-8}
     91 ## Pin current window to all tags
     92 super + shift + 0
     93 	dwmc tagall
     94 # ## Decrease/increase gaps
     95 # super + {minus, shift + equal}
     96 # 	dwmc setgaps {-,+}1
     97 # ## Set gaps to zero
     98 # super + equal
     99 # 	dwmc setgaps 0
    100 
    101 #-#   Miscellaneous #-#
    102 ## Quit Current App
    103 super + q
    104 	kill -15 `xdotool getwindowfocus getwindowpid`
    105 ## Change Keyboard Layout
    106 alt + Return
    107 	layouttoggle
    108 ## Find your cursor
    109 super + BackSpace
    110 	 find-cursor -l 4 -c "#66aabb" -s 150
    111 ## Toggle Compositor
    112 super + c
    113 		killall picom || setsid picom
    114 ## Toggle Screenkey
    115 super + Insert
    116 	killall screenkey || screenkey --bg-color "#222d32" -s small -f "Apercu Mono" -t 1 --font-color "#BABABA" --mods-mode tux
    117 ## Open this manual
    118 super + alt + shift + h
    119     manualgen
    120 ## Start colorpicker
    121 super + shift + c
    122 		colorhandler
    123 
    124 #-# Standard Applications #-#
    125 ## Terminal window
    126 super + Return
    127     $TERMINAL
    128 ## Default Browser
    129 super + w
    130     $BROWSER
    131 ## TUI Email Client (neomutt)
    132 super + e
    133     killall neomutt || $TERMINAL -e neomutt && mw -Y
    134 ## TUI calendar (calendar.vim)
    135 super + shift + e
    136 	  $TERMINAL -t calendar -e nvim -c ":Calendar -view=week -first_day=monday"
    137 ## TUI RSS Reader (newsboat)
    138 super + n
    139     killall newsboat || $TERMINAL -e newsboat ; kill -37 $(pidof dwmblocks)
    140 
    141 #-#   Floating Apps/Utilities   #-#
    142 ## Network Manager
    143 XF86WLAN
    144     killall nmtui || dropdowntoggle network nmtui
    145 ## TUI Audio Mixer (alsamixer)
    146 super + p
    147     killall alsamixer || dropdowntoggle audio alsamixer -c 0
    148 ## TODOs (Todoist.nvim)
    149 super + space
    150     dropdowntoggle todoist nvim +Todoist
    151 ## Terminal Calculator
    152 super + a
    153     dropdowntoggle calc tmux-r
    154 ## Terminal Shell
    155 super + shift + a
    156     dropdowntoggle shell tmux-shell
    157 ## TUI Youtube (youtube-viewer)
    158 super + v
    159 	cat ~/.cache/yt-sub | dmenu -p "Query: " | ytfzf -D -
    160 ## TUI Hacker News
    161 super + shift + v
    162 		killall hacker-news || dropdowntoggle hacker-news tmux-hn
    163 ## Webcam
    164 super + shift + w
    165    camtoggle
    166 ## Force Start VLC Podcast
    167 super + shift + p
    168     dropdowntoggle Podcast pod-dl
    169 
    170 #-#   Prompts (dmenu)   #-#
    171 ## Application Launcher
    172 alt + d
    173     j4-dmenu-desktop
    174 ## Power Utility
    175 alt + q
    176     sysact
    177 ## Quickly Search Google
    178 alt + shift + d
    179     websearch
    180 ## Open a bookmark in surf
    181 alt + shift + o
    182 		surfmenu
    183 ## Emoji & Font-Awesome Selector
    184 alt + grave
    185     emoji-copy
    186 ## Mount/Unmount Devices Utility
    187 alt + {_,shift} + m
    188     { mountmenu, umountmenu }
    189 ## Recording Utility
    190 alt + r
    191     recordmenu kill || recordmenu
    192 ## Preview Fonts
    193 alt + f
    194 		fontpreview
    195 ## Start SSH session
    196 alt + s
    197 		pickssh
    198 ## Select bright or dark .Xresources theme
    199 alt + Escape
    200 	theme="$(ls $HOME/.config/Xresources/ | dmenu)" && cat "$HOME/.config/Xresources/$theme" | xrdb -load
    201 
    202 #-#   PrintScreen Utilities   #-#
    203 ## Entire Screen
    204 Print
    205     scrot -q 100 -z && notify-send -i "$HOME/.fonts/svg/image.svg" -a Screenshot "Full screenshot completed"
    206 ## Current window
    207 alt + Print
    208     scrot -q 100 -u -z && notify-send -i "$HOME/.fonts/svg/image.svg" -a Screenshot "Window screenshot completed"
    209 ## Cursor Selection
    210 super +  Print
    211     scrot -q 100 -s -z && notify-send -i "$HOME/.fonts/svg/image.svg" -a Screenshot "Selection screenshot completed"
    212 
    213 #-#   Special Keys   #-#
    214 ## Increase/decrease Volume
    215 {XF86AudioRaiseVolume, XF86AudioLowerVolume}
    216     volumectl 5 {+,-}
    217 ## Max-Out Volume
    218 shift + XF86AudioRaiseVolume
    219     volumectl 100
    220 ## Set Volume to 5 percent
    221 shift + XF86AudioLowerVolume
    222     volumectl 5
    223 ## Mute Audio
    224 XF86AudioMute
    225 	 volumectl mute
    226 ## Quit Current App
    227 super + q
    228 	kill -15 `xdotool getwindowfocus getwindowpid`
    229 ## Increase/decrease Brightness
    230 {XF86MonBrightnessUp, XF86MonBrightnessDown}
    231     xbacklight -time 50 -{inc,dec} 5 && screenstatus
    232 ## Max-Out Brightness
    233 shift + XF86MonBrightnessUp
    234     xbacklight -time 100 -set 100 && screenstatus
    235 ## Set Brightness to 5 percent
    236 shift + XF86MonBrightnessDown
    237     xbacklight -time 100 -set 5 && screenstatus
    238 ## Display Setup Utility (mirror or extend displays)
    239 XF86Display
    240     arandr
    241 ## Disable Trackpad
    242 XF86Favorites
    243     trackpadtoggle 0
    244 ## Enable Trackpad
    245 shift + XF86Favorites
    246     trackpadtoggle 1
    247 ## Unmount Devices
    248 shift + XF86Tools
    249 	umountmenu
    250 ## Mount Devices
    251 XF86Tools
    252 	mountmenu
    253 
    254 #-# Music Controls (using `playerctl`) #-#
    255 ## Next/Previous Song (using playerctl)
    256 super + {bracketright, bracketleft}
    257 		playerctl {next, previous}
    258 ## Higher/Lower music volume (using pla)
    259 super + shift + {bracketright, bracketleft}
    260 		playerctl volume 5 {+, -}
    261 ## Toggle music playback
    262 super + backslash
    263 		playerctl play-pause
    264 # ## Network Manager
    265 # super + shift + n
    266 #     killall nmtui || dropdowntoggle network nmtui