sxhkdrc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. # ______ ________________ ______ ____________ _________
  2. # ___ / / /_ __ \__ __/ ___ //_/__ ____/ \/ /_ ___/
  3. # __ /_/ /_ / / /_ / __ ,< __ __/ __ /_____ \
  4. # _ __ / / /_/ /_ / _ /| | _ /___ _ / ____/ /
  5. # /_/ /_/ \____/ /_/ /_/ |_| /_____/ /_/ /____/
  6. #==============#
  7. # APPLICATIONS #
  8. #==============#
  9. alt + shift + i
  10. brave-nightly
  11. ctrl + alt + shift + i
  12. firefox
  13. alt + shift + w
  14. whatsapp-nativefier-dark
  15. super + Return
  16. kitty
  17. ctrl + alt + shift + l
  18. openrgb
  19. ctrl + alt + shift + d
  20. code
  21. super + e
  22. nemo
  23. #=======================#
  24. # TERMINAL APPLICATIONS #
  25. #=======================#
  26. alt + shift + c
  27. konsole --separate --nofork -e 'bc -q'
  28. alt + shift + t
  29. konsole --fullscreen --separate --nofork -e 'bpytop'
  30. alt + shift + p
  31. kitty micro /home/$USER/.config/sxhkd/sxhkdrc
  32. #konsole --separate --nofork -e 'micro /home/$USER/.config/sxhkd/sxhkdrc'
  33. super + shift + f
  34. konsole --separate --nofork -e 'ranger'
  35. -----------------------------------------------------------------------------------
  36. #==============#
  37. # SNEAKY STUFF #
  38. #==============#
  39. # \/ \/ \/ #=====================#
  40. #------------------------------------#
  41. # Playing youtube videos through mpv #
  42. #------------------------------------#
  43. alt + shift + v
  44. notify-send 'playing video' && mpv $(youtube-dl -f 22 -g $(xclip -selection c -o))
  45. #------------------------------------#
  46. # Application menu and emoji menu #
  47. #------------------------------------#
  48. alt + shift + s
  49. rofi -modi "drun,run,window,file-browser,ssh" -show drun -show-icons -theme "/usr/share/rofi/themes/Planet.rasi" -font "ubuntu mono 24"
  50. #rofi -combi-modi drun -font "ubuntu mono 14" -show drun -show-icons
  51. alt + shift + e
  52. rofi -modi "emoji" -show emoji -theme "/usr/share/rofi/themes/Planet.rasi" -font "ubuntu mono 24"
  53. #------------------------------------#
  54. # Autoclicker #
  55. #------------------------------------#
  56. ctrl + alt + shift + c
  57. click4ever
  58. #------------------------------------#
  59. # Screenshot - - - - - - #
  60. #------------------------------------#
  61. super + Print
  62. scrot -a 0,0,2560,1440 -e 'mv $f /home/$user/Pictures/screenshots/' ; sleep 0.5 && notify-send 'Screenshot saved to ~/Pictures/screenshots'
  63. #------------------------------------#
  64. # Modes - - - - - - - -#
  65. #------------------------------------#
  66. ctrl + alt + super + shift + m
  67. /home/$USER/scripts/modes-scripts/main-modes-menu.sh
  68. #============#
  69. # My servers #
  70. #============#
  71. alt + shift + j
  72. surf -b -D -I -n -S -T -F -z 1.5 https://YOUR.JELLYFIN.ADDRESS/jellyfin/web/index.html\#\!/home.html
  73. # I don't know why I am using so many flags...
  74. alt + shift + o
  75. surf -z 2 https://WWW.YOUR.NEXTCLOUD.COM/apps/notes/
  76. #===============#
  77. # Media control #
  78. #===============#
  79. XF86AudioPlay
  80. playerctl play-pause
  81. XF86AudioStop
  82. playerctl stop
  83. XF86AudioPrev
  84. playerctl previous
  85. XF86AudioNext
  86. playerctl next
  87. #================#
  88. # System control #
  89. #================#
  90. ctrl + alt + shift + r
  91. notify-send 'Restarting Hotkey Daemon' && killall sxhkd && sxhkd
  92. #Reload the hotkey daemon.
  93. #Use this after editing this file
  94. ctrl + alt + super + shift + r
  95. shutdown -r now
  96. ctrl + alt + super + shift + s
  97. /home/$USER/scripts/logout.sh
  98. #shutdown now
  99. ctrl + alt + super + shift + p
  100. pulseaudio-equalizer toggle && notify-send "Toggling BASS EQ"
  101. ctrl + alt + super + shift + c
  102. pkill picom ;sleep 1 && picom ; notify-send "Compositor restarted"
  103. ctrl + super + shift + alt + l
  104. slimlock
  105. ctrl + super + shift + alt + z
  106. systemctl suspend
  107. #--||-----------||--#
  108. # =|| PLASMA DE ||= #
  109. #==||===========||==#
  110. ctrl + alt + shift + k
  111. killall plasmashell && kstart5 plasmashell && kwin_x11 --replace
  112. #reloads the desktop
  113. #=============================================#
  114. #--------------#
  115. # NC PASSWORDS #
  116. #--------------#
  117. ctrl + shift + super + alt + k
  118. surf -z 1.75 https://YOUR.NEXTCLOUD.COM/apps/passwords/
  119. #------#
  120. # PASS #
  121. #------#
  122. alt + shift + k
  123. rofi-pass
  124. #=============================================#
  125. #===============#
  126. # Notifications #
  127. #===============#
  128. #Notification center:
  129. alt + shift + n
  130. kill -s USR1 $(pidof deadd-notification-center)
  131. @______________________________________________________
  132. ######################################################/
  133. # BSPWM #############################################/
  134. ####################################################/
  135. ###################################################/
  136. ##################################################/
  137. #################################################/
  138. ################################################/
  139. ###############################################/
  140. ##############################################/
  141. #############################################/
  142. ############################################/
  143. ###########################################/
  144. @_________________________________________/
  145. # quit/restart bspwm
  146. super + alt + {q,r}
  147. bspc {quit,wm -r}
  148. # close and kill
  149. ctrl + alt + {_,shift + }q
  150. bspc node -{c,k}
  151. # alternate between the tiled and monocle layout
  152. super + m
  153. bspc desktop -l next
  154. # send the newest marked node to the newest preselected node
  155. super + y
  156. bspc node newest.marked.local -n newest.!automatic.local
  157. # swap the current node and the biggest window
  158. super + g
  159. bspc node -s biggest.window
  160. #
  161. # state/flags
  162. #
  163. # set the window state
  164. super + {t,shift + t,s,f}
  165. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  166. # set the node flags
  167. super + ctrl + {m,x,y,z}
  168. bspc node -g {marked,locked,sticky,private}
  169. #
  170. # focus/swap
  171. #
  172. # focus the node in the given direction
  173. super + {_,shift + }{h,j,k,l}
  174. bspc node -{f,s} {west,south,north,east}
  175. # focus the node for the given path jump
  176. super + {p,b,comma,period}
  177. bspc node -f @{parent,brother,first,second}
  178. # focus the next/previous window in the current desktop
  179. super + {_,shift + }c
  180. bspc node -f {next,prev}.local.!hidden.window
  181. # focus the next/previous desktop in the current monitor
  182. super + bracket{left,right}
  183. bspc desktop -f {prev,next}.local
  184. # focus the last node/desktop
  185. super + {grave,Tab}
  186. bspc {node,desktop} -f last
  187. # focus the older or newer node in the focus history
  188. super + {o,i}
  189. bspc wm -h off; \
  190. bspc node {older,newer} -f; \
  191. bspc wm -h on
  192. # focus or send to the given desktop
  193. super + {_,shift + }{1-9,0}
  194. bspc {desktop -f,node -d} '^{1-9,10}'
  195. #
  196. # preselect
  197. #
  198. # preselect the direction
  199. super + ctrl + {h,j,k,l}
  200. bspc node -p {west,south,north,east}
  201. # preselect the ratio
  202. super + ctrl + {1-9}
  203. bspc node -o 0.{1-9}
  204. # cancel the preselection for the focused node
  205. super + ctrl + space
  206. bspc node -p cancel
  207. # cancel the preselection for the focused desktop
  208. super + ctrl + shift + space
  209. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  210. #
  211. # move/resize
  212. #
  213. # expand a window by moving one of its side outward
  214. super + alt + {h,j,k,l}
  215. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  216. # contract a window by moving one of its side inward
  217. super + alt + shift + {h,j,k,l}
  218. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  219. # move a floating window
  220. super + {Left,Down,Up,Right}
  221. bspc node -v {-20 0,0 20,0 -20,20 0}