sxhkdrc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. networkmanager_dmenu
  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. i3lock -c 000000 && sleep 1
  63. #bsplock
  64. # Reload Keybindings
  65. super + alt + r
  66. pkill -USR1 -x sxhkd
  67. # Quit/Restart bspwm
  68. ctrl + alt + {q,r}
  69. bspc {quit,wm -r}
  70. # Close App
  71. super + shift + q
  72. bspc node -c
  73. # kill
  74. ctrl + alt + Escape
  75. xkill
  76. # Fullscreen or Monocle
  77. super + shift + f
  78. bspc desktop -l next
  79. # Fullscreen
  80. super + f
  81. bspc node -t \~fullscreen
  82. # Split horizontal, vertical or cancel
  83. super + {h,v,q}
  84. bspc node -p {east,south,cancel}
  85. # Preselect the ratio
  86. super + ctrl + {1-9}
  87. bspc node -o 0.{1-9}
  88. # Toggle beetwen floating & tiled
  89. super + shift + space
  90. bspc node -t "~"{floating,tiled}
  91. # Pseudo Tiled & tiled mode
  92. super + {p,t}
  93. bspc node -t {pseudo_tiled,tiled}
  94. # Set the node flags
  95. super + alt + {m,x,y,z}
  96. bspc node -g {marked,locked,sticky,private}
  97. # Send the window to another edge of the screen
  98. super + {_,shift + }{Left,Down,Up,Right}
  99. bspc node -{f,s} {west,south,north,east}
  100. # Change focus to next window, including floating window
  101. alt + {_,shift + }Tab
  102. bspc node -f {next.local,prev.local}
  103. # Switch workspace
  104. ctrl + alt + {Left,Right}
  105. bspc desktop -f {prev.local,next.local}
  106. # Switch to last opened workspace
  107. super + {Tab,grave}
  108. bspc {node,desktop} -f last
  109. # Send focused window to another workspace
  110. super + {_,shift + }{1-9}
  111. bspc {desktop -f,node -d} '^{1-9}'
  112. super + {_,shift + }{0}
  113. bspc {desktop -f,node -d} '^{10}'
  114. # Expanding windows
  115. super + control + {Left,Right,Up,Down}
  116. bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}
  117. ## Shrinking windows
  118. super + alt + {Left,Right,Up,Down}
  119. bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}
  120. ## Move floating windows
  121. alt + shift + {Left,Down,Up,Right}
  122. bspc node -v {-20 0,0 20,0 -20,20 0}
  123. # Hide/Unhide Window
  124. super + shift + i
  125. /home/lildurden/.config/bspwm/bin/winmask
  126. # start browser
  127. ctrl + super + w
  128. firefox
  129. # start browser
  130. ctrl + super + m
  131. /usr/bin/thunderbird
  132. ##---------- EOF ----------##