#sxhkdrc# 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. ##---------- Keybindings for bspwm ----------##
  2. # Terminal (alacritty)
  3. super + ctrl + t
  4. /home/lildurden/.config/bspwm/bin/bspterm
  5. # Floating terminal
  6. super + shift + Return
  7. /home/lildurden/.config/bspwm/bin/bspterm -f
  8. ##---------- Rofi Launcher & Menus ----------##
  9. # Rofi App Launcher
  10. super + d
  11. sh ~/.config/bspwm/rofi/bin/launcher
  12. # Rofi Network Menu
  13. super + n
  14. nmd
  15. # Rofi Menus
  16. super + {w,m,x,r}
  17. sh ~/.config/bspwm/rofi/bin/{windows,mpd,powermenu,asroot}
  18. ctrl + alt + {s,n,t}
  19. sh ~/.config/bspwm/rofi/bin/{screenshot,network,themes}
  20. ##---------- Applications ----------##
  21. # Launch Apps
  22. ctrl + super + f
  23. pcmanfm
  24. # add to tabbed container
  25. ctrl + alt + {Left,Down,Up,Right}
  26. tabc attach $(bspc query -N -n) {$(bspc query -N -n west),$(bspc query -N -n south),$(bspc query -N -n north),$(bspc query -N -n east)}
  27. # create/remove from tabbed container
  28. super + z
  29. id=$(bspc query -N -n); \
  30. [[ "$(tabc printclass $id)" == "tabbed" ]] \
  31. && tabc detach $id \
  32. || tabc create $id
  33. # toggle autoattach in tabbed container
  34. super + shift + z
  35. tabc autoattach $(bspc query -N -n)
  36. ##---------- system ----------##
  37. # Take a screenshot
  38. alt + shift + 3
  39. scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
  40. alt + shift + 2
  41. scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
  42. # Take a screenshot in 5 second
  43. alt + Print
  44. scrot -d 5 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
  45. # Brighness control
  46. XF86MonBrightness{Up,Down}
  47. xbacklight {+5,-5}
  48. #backlight{-up,-down}
  49. # Volume control
  50. XF86Audio{RaiseVolume,LowerVolume}
  51. pactl set-sink-volume @DEFAULT_SINK@ {+5,-5}% && pactl set-sink-mute 0 0
  52. #volume{-up,-down}
  53. XF86AudioMute
  54. pactl set-sink-mute @DEFAULT_SINK@ toggle
  55. #amixer set Master toggle
  56. �# Music control
  57. XF86Audio{Next,Prev,Play,Stop}
  58. mpc {next,prev,toggle,stop}
  59. ##---------- Bspwm ----------##
  60. # Lockscreen
  61. alt + shift + l
  62. bsplock
  63. # Reload Keybindings
  64. super + alt + r
  65. pkill -USR1 -x sxhkd
  66. # Quit/Restart bspwm
  67. ctrl + alt + {q,r}
  68. bspc {quit,wm -r}
  69. # Close App
  70. super + shift + q
  71. bspc node -c
  72. # kill
  73. ctrl + alt + Escape
  74. xkill
  75. # Fullscreen or Monocle
  76. super + shift + f
  77. bspc desktop -l next
  78. # Fullscreen
  79. super + f
  80. bspc node -t \~fullscreen
  81. # Split horizontal, vertical or cancel
  82. super + {h,v,q}
  83. bspc node -p {east,south,cancel}
  84. # Preselect the ratio
  85. super + ctrl + {1-9}
  86. bspc node -o 0.{1-9}
  87. # Toggle beetwen floating & tiled
  88. super + shift + space
  89. bspc node -t "~"{floating,tiled}
  90. # Pseudo Tiled & tiled mode
  91. super + {p,t}
  92. bspc node -t {pseudo_tiled,tiled}
  93. # Set the node flags
  94. super + alt + {m,x,y,z}
  95. bspc node -g {marked,locked,sticky,private}
  96. # Send the window to another edge of the screen
  97. super + {_,shift + }{Left,Down,Up,Right}
  98. bspc node -{f,s} {west,south,north,east}
  99. # Change focus to next window, including floating window
  100. alt + {_,shift + }Tab
  101. bspc node -f {next.local,prev.local}
  102. # Switch workspace
  103. ctrl + alt + {Left,Right}
  104. bspc desktop -f {prev.local,next.local}
  105. # Switch to last opened workspace
  106. super + {Tab,grave}
  107. bspc {node,desktop} -f last
  108. # Send focused window to another workspace
  109. super + {_,shift + }{1-9}
  110. bspc {desktop -f,node -d} '^{1-9}'
  111. super + {_,shift + }{0}
  112. bspc {desktop -f,node -d} '^{10}'
  113. # Expanding windows
  114. super + control + {Left,Right,Up,Down}
  115. bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}
  116. ## Shrinking windows
  117. super + alt + {Left,Right,Up,Down}
  118. bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}
  119. ## Move floating windows
  120. alt + shift + {Left,Down,Up,Right}
  121. bspc node -v {-20 0,0 20,0 -20,20 0}
  122. # Hide/Unhide Window
  123. super + shift + i
  124. /home/lildurden/.config/bspwm/bin/winmask
  125. # start browser
  126. ctrl + super + w
  127. firefox
  128. # start browser
  129. ctrl + super + m
  130. /usr/bin/thunderbird
  131. ##---------- EOF ----------##