dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

sxhkdrc (4287B)


      1 # The Simple X Hotkey Daemon is the program used by LARBS to map most of the
      2 # dwm-independent commands.  This file is pretty readable, so I'll let you read
      3 # it.
      4 
      5 # The keys NOT bound here by sxhkd, but by dwm or i3 are:
      6 # The t thru p keys on the top row
      7 # The f thru ; keys on the home row
      8 # The b key on the bottom row (hides the bar in either case)
      9 
     10 # Basic binds
     11 super + Return
     12 	$TERMINAL
     13 super + shift + Return
     14 	samedir
     15 super + shift + q
     16 	kill -9 `xdotool getwindowfocus getwindowpid`
     17 super + d
     18 	dmenu_run
     19 super + r
     20 	$TERMINAL -e $FILE
     21 super + e
     22 	$TERMINAL -e neomutt; pkill -RTMIN+12 $STATUSBAR
     23 super + m
     24 	$TERMINAL -e ncmpcpp
     25 super + n
     26 	$TERMINAL -e newsboat
     27 super + c
     28 	$TERMINAL -e calcurse -D ~/.config/calcurse
     29 super + v
     30 	$TERMINAL -e nvim -c VimwikiIndex
     31 super + shift + a
     32 	$TERMINAL -e alsamixer; pkill -RTMIN+10 $STATUSBAR
     33 super + shift + c
     34 	mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0
     35 super + shift + e
     36 	tutorialvids
     37 super + w
     38 	$TERMINAL -e sudo nmtui
     39 super + shift + w
     40 	$BROWSER
     41 
     42 # Et cetera...
     43 super + grave
     44 	dmenuunicode
     45 super + Scroll_Lock
     46 	killall screenkey || screenkey
     47 super + Insert
     48 	showclip
     49 super + shift + x
     50 	prompt "Shutdown computer?" "sudo -A shutdown -h now"
     51 super + shift + BackSpace
     52 	prompt "Reboot computer?" "sudo -A reboot"
     53 super + shift + Escape
     54 	prompt 'Leave Xorg?' 'killall Xorg'
     55 super + x
     56 	ifinstalled slock && ( slock & xset dpms force off ; mpc pause ; pauseallmpv )
     57 XF86Launch1
     58 	xset dpms force off
     59 XF86TouchpadToggle
     60 	(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0) || synclient TouchpadOff=1
     61 XF86Touchpad{Off,On}
     62 	synclient TouchpadOff={1,0}
     63 XF86MonBrightnessDown
     64 	xbacklight -dec 15
     65 XF86MonBrightnessUp
     66 	xbacklight -inc 15
     67 
     68 # Recording
     69 # Take screenshot
     70 Print
     71 	maim pic-full-$(date '+%y%m%d-%H%M-%S').png
     72 # Pick screenshot type
     73 shift + Print
     74 	maimpick
     75 # Print: Record audio or video; Del: kill recording
     76 super + Print
     77 	dmenurecord
     78 super + Delete
     79 	dmenurecord kill
     80 
     81 # Pause audio
     82 super + p
     83 	mpc toggle
     84 super + shift + p
     85 	mpc pause; pauseallmpv
     86 # Changes to next/previous tracks
     87 super + {comma,period}
     88 	mpc {prev,next}
     89 # Restart track
     90 super + shift + less
     91 	mpc seek 0%
     92 # Seek foward in song
     93 super + {_,shift +} bracketright
     94 	mpc seek +{10,120}
     95 # Seek backward in song
     96 super + {_,shift +} bracketleft
     97 	mpc seek -{10,120}
     98 # Increase volume
     99 super {_,shift +} + plus
    100 	amixer sset Master {5,15}%+; pkill -RTMIN+10 $STATUSBAR
    101 # Decrease volume
    102 super {_,shift +} + minus
    103 	amixer sset Master {5,15}%-; pkill -RTMIN+10 $STATUSBAR
    104 super + shift + m
    105 	amixer sset Master toggle; pkill -RTMIN+10 $STATUSBAR
    106 
    107 # Audiokeys
    108 XF86AudioMute
    109 	amixer sset Master toggle; pkill -RTMIN+10 $STATUSBAR
    110 XF86Audio{Raise,Lower}Volume
    111 	amixer sset Master 5%{+,-}; pkill -RTMIN+10 $STATUSBAR
    112 XF86Audio{Next,Prev}
    113 	mpc {next,prev}
    114 XF86Audio{Pause,Play,Stop}
    115 	mpc {pause,play,stop}
    116 XF86Audio{Rewind,Forward}
    117 	mpc seek {-,+}10
    118 XF86AudioRecord
    119 	dmenurecord
    120 XF86AudioMedia
    121 	$TERMINAL -e ncmpcpp
    122 
    123 XF86PowerOff
    124 	prompt "Shutdown computer?" "sudo -A shutdown -h now"
    125 XF86Calculator
    126 	$TERMINAL -e bc
    127 XF86Sleep
    128 	prompt 'Hibernate computer?' 'sudo -A zzz'
    129 XF86WWW
    130 	$BROWSER
    131 XF86DOS
    132 	$TERMINAL
    133 XF86ScreenSaver
    134 	mpc pause; pauseallmpv; i3lock -e -f -c 1d2021; xset dpms force off
    135 XF86TaskPane
    136 	$TERMINAL -e htop
    137 XF86Mail
    138 	$TERMINAL -e neomutt
    139 XF86MyComputer
    140 	$TERMINAL -e $FILE /
    141 
    142 # Function keys
    143 super + shift + F1
    144 	grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i "$HOME/.local/share/larbs/larbs.png" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." )
    145 # Show readme
    146 super + F1
    147 	groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -
    148 # F2 restarts either dwm or i3 and is bound in each.
    149 # Change display
    150 super + F3
    151 	displayselect
    152 # Hibernate
    153 super + F4
    154 	prompt 'Hibernate computer?' 'sudo -A zzz -Z'
    155 super + F5 is unbound.
    156 # Start torrent daemon/open interface
    157 super + F6
    158 	torwrap
    159 # toggle torrent daemon
    160 super + F7
    161 	td-toggle
    162 # sync email
    163 super + F8
    164 	mailsync
    165 # Mount a USB drive or Android device
    166 super + {F9,F10}
    167 	{dmenumount,dmenuumount}