poetician

sxhkd for Bspwm in VirtualBox

May 7th, 2020 (edited)
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.17 KB | None | 0 0
  1. #################################################################
  2. # KEYBOARD BINDINGS FOR ANY TWM
  3. #################################################################
  4.  
  5. #################################################################
  6. # SUPER + FUNCTION KEYS
  7. #################################################################
  8.  
  9. # Atom loading Polybar
  10. super + F1
  11. atom ~/.config/polybar/config
  12.  
  13. # Atom loading sxhkdrc
  14. super + F2
  15. atom ~/.config/bspwm/sxhkd/sxhkdrc
  16.  
  17. # Atom loading bspwmrc
  18. super + F3
  19. atom ~/.config/bspwm/bspwmrc
  20.  
  21. # LibreOffice
  22. super + F4
  23. libreoffice
  24.  
  25. # Kdenlive
  26. super + F5
  27. Kdenlive
  28.  
  29. # Gimp
  30. super + F6
  31. gimp
  32.  
  33. # Google Earth Pro
  34. super + F7
  35. google-earth-pro
  36.  
  37. # CherryTree
  38. super + F8
  39. cherrytree
  40.  
  41. # Meld
  42. super + F9
  43. meld
  44.  
  45. # Vlc
  46. super + F10
  47. vlc --video-on-top
  48.  
  49. # Rofi Theme selector
  50. super + F11
  51. rofi-theme-selector
  52.  
  53. # Rofi
  54. super + F12
  55. rofi -show drun -show-icons -lines 9 -columns 3 -eh 2 -width 70 -padding 180 -opacity "70"
  56.  
  57. #################################################################
  58. # SUPER + ... KEYS
  59. #################################################################
  60.  
  61. # Atom
  62. super + a
  63. Atom
  64.  
  65. # Qbittorrent
  66. super + b
  67. qbittorrent
  68.  
  69. # Conky-toggle
  70. super + c
  71. conky-toggle
  72.  
  73. # Polybar Editor
  74. super + e
  75. hefftor-polybar-editor
  76.  
  77. # Htop
  78. super + h
  79. urxvt 'htop task manager' -e htop
  80.  
  81. # Polybar Switcher
  82. super + s
  83. hefftor-polybar-Switcher
  84.  
  85. # Urxvt
  86. super + t
  87. urxvt
  88.  
  89. # Pavucontrol
  90. super + v
  91. pavucontrol
  92.  
  93. # Brave Browser
  94. super + w
  95.  
  96. # Arcolinux Logout
  97. super + x
  98. arcolinux-logout
  99.  
  100. #
  101. super + m
  102.  
  103.  
  104. # Alacritty
  105. super + Return
  106. Alacritty
  107.  
  108. #Xkill
  109. super + Escape
  110. xkill
  111.  
  112. #################################################################
  113. # SUPER + SHIFT KEYS
  114. #################################################################
  115.  
  116. # File-Manager
  117. super + shift + Return
  118. nemo
  119.  
  120. # Dmenu
  121. super + shift + d
  122. dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'
  123.  
  124. # Reload sxhkd:
  125. super + shift + s
  126. pkill -USR1 -x sxhkd
  127.  
  128. #################################################################
  129. # CONTROL + ALT KEYS
  130. #################################################################
  131.  
  132. # Arcolinux Welcome Aapp
  133. ctrl + alt + w
  134. arcolinux-welcome-app
  135.  
  136. # Hefftor Skel App
  137. ctrl + alt + e
  138. hefftor-skelapp
  139.  
  140. # conky-rotate
  141. ctrl + alt + Next
  142. conky-rotate -n
  143.  
  144. # conky-rotate
  145. ctrl + alt + Prior
  146. conky-rotate -p
  147.  
  148. #
  149. ctrl + alt + w
  150.  
  151.  
  152. #File-Manager
  153. ctrl + alt + b
  154. thunar
  155.  
  156. # Catfish
  157. ctrl + alt + c
  158. catfish
  159.  
  160. #Firefox
  161. ctrl + alt + f
  162. firefox
  163.  
  164. # Arcolinux Logout
  165. ctrl + alt + k
  166. arcolinux-logout
  167.  
  168. # Arcolinux-logout
  169. ctrl + alt + l
  170. arcolinux-logout
  171.  
  172. # Xfce4-settings-manager
  173. ctrl + alt + m
  174. xfce4-settings-manager
  175.  
  176. # Nitrogen
  177. ctrl + alt + n
  178. nitrogen
  179.  
  180. # Pamac Manager
  181. ctrl + alt + p
  182. pamac-manager
  183.  
  184. #
  185. ctrl + alt + r
  186.  
  187.  
  188. #
  189. ctrl + alt + s
  190.  
  191.  
  192. #Termite
  193. ctrl + alt + Return
  194. termite
  195.  
  196. #termite
  197. ctrl + alt + t
  198. termite
  199.  
  200. # Pulse Audio Control
  201. ctrl + alt + u
  202. pavucontrol
  203.  
  204. #
  205. ctrl + alt + v
  206.  
  207.  
  208. # Xfce4-appfinder
  209. ctrl + alt + a
  210. xfce4-appfinder
  211.  
  212. ###############################################################
  213. # ALT + ... KEYS
  214. #################################################################
  215.  
  216. # Wallpaper trash
  217. alt + t
  218. variety -t
  219.  
  220. # Wallpaper next
  221. alt + n
  222. variety -n
  223.  
  224. # Wallpaper previous
  225. alt + p
  226. variety -p
  227.  
  228. # Wallpaper favorite
  229. alt + f
  230. variety -f
  231.  
  232. # Wallpaper previous
  233. alt + Left
  234. variety -p
  235.  
  236. # Wallpaper next
  237. alt + Right
  238. variety -n
  239.  
  240. # Wallpaper toggle-pause
  241. alt + Up
  242. variety --toggle-pause
  243.  
  244. # Wallpaper resume
  245. alt + Down
  246. variety --resume
  247.  
  248. # Gmrun
  249. alt + F2
  250. gmrun
  251.  
  252. # Xfce4-appfinder
  253. alt + F3
  254. xfce4-appfinder
  255.  
  256. #################################################################
  257. # VARIETY KEYS WITH PYWAL
  258. #################################################################
  259.  
  260. # Wallpaper trash
  261. alt + shift + t
  262. variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  263.  
  264. # Wallpaper next
  265. alt + shift + n
  266. variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  267.  
  268. # Wallpaper previous
  269. alt + shift + p
  270. variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  271.  
  272. # Wallpaper favorite
  273. alt + shift + f
  274. variety -f && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  275.  
  276. # Wallpaper update
  277. alt + shift + u
  278. wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  279.  
  280. #################################################################
  281. # CONTROL + SHIFT KEYS
  282. #################################################################
  283.  
  284. # Xcfe4-TaskManager
  285. ctrl + shift + Escape
  286. xfce4-taskmanager
  287.  
  288. #################################################################
  289. # SCREENSHOTS
  290. #################################################################
  291.  
  292. # Scrot
  293. Print
  294. scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  295.  
  296. # Screeenshooter
  297. ctrl + Print
  298. xfce4-screenshooter
  299.  
  300. # Gnome-Screenshot
  301. ctrl + shift + Print
  302. gnome-screenshot -i
  303.  
  304. #################################################################
  305. # FUNCTION KEYS
  306. #################################################################
  307.  
  308. # Xfce4-terminal Dropdown
  309. F12
  310. xfce4-terminal --drop-down
  311.  
  312. #########################
  313. # POLYBAR #
  314. #########################
  315.  
  316. # Hide polybar
  317. super + y
  318. polybar-msg cmd toggle
  319.  
  320. #################################################################
  321. ################## DESKTOP SPECIFIC ########################
  322. #################################################################
  323.  
  324. #################################################################
  325. # CTRL + ALT KEYS
  326. #################################################################
  327.  
  328. # Picom Toggle
  329. ctrl + alt + o
  330. ~/.config/bspwm/scripts/picom-toggle.sh
  331.  
  332. #################################################################
  333. # SUPER + KEYS
  334. #################################################################
  335.  
  336. # Toggle fullscreen of window
  337. super + f
  338. bspc node --state \~fullscreen
  339.  
  340. # Toggle pseudo tiling of window
  341. super + p
  342. bspc node --state \~pseudo_tiled
  343.  
  344. # kill
  345. super + q
  346. bspc node -c
  347.  
  348. #################################################################
  349. # SUPER KEYS
  350. #################################################################
  351.  
  352. # Focus selected desktop
  353. super + Tab
  354. bspc desktop -f '^{1-9,10}'
  355.  
  356. # Increase/decrease window gap on focused desktop
  357. super + bracket{left,right}
  358. bspc config -d focused window_gap $((`bspc config -d focused window_gap` {-,+} 5 ))
  359.  
  360. # Set the window state
  361. super + space
  362. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  363.  
  364. # Move focus to other monitor
  365. super + BackSpace
  366. bspc monitor -f next
  367.  
  368. #################################################################
  369. # SUPER + ALT KEYS
  370. #################################################################
  371.  
  372. # Move floating window
  373. super + alt + {_,shift + }{Left,Down,Up,Right}
  374. ~/.config/bspwm/scripts/move-window {_,edge-}{west,south,north,east}
  375.  
  376. #################################################################
  377. # SUPER + CONTROL KEYS
  378. #################################################################
  379.  
  380. # Cancel preselection
  381. super + ctrl + space
  382. bspc node --presel-dir cancel
  383.  
  384. #################################################################
  385. # SUPER + SHIFT KEYS
  386. #################################################################
  387.  
  388. #Reload bspwm
  389. super + shift + r
  390. ~/.config/bspwm/bspwmrc
  391.  
  392. # Kill
  393. super + shift + q
  394. bspc node -c
  395.  
  396. # Logout
  397. super + shift + x
  398. bspc quit
  399.  
  400. # Focus/swap windows by direction
  401. super + {_,shift + }{h,j,k,l}
  402. bspc node --{focus,swap} {west,south,north,east}
  403.  
  404. # Flip layout vertically/horizontally
  405. super + {_,shift + }a
  406. bspc node @/ --flip {vertical,horizontal}
  407.  
  408. # Move focused window to other monitor
  409. super + shift + Left
  410. bspc node -m next --follow
  411.  
  412. # Move focused window to other monitor
  413. super + shift + Right
  414. bspc node -m next --follow
  415.  
  416. # Move focused window to other monitor
  417. super + shift + Up
  418. bspc node -m next --follow
  419.  
  420. # Move focused window to other monitor
  421. super + shift + Down
  422. bspc node -m next --follow
  423.  
  424. #################################################################
  425. # SUPER + CONTROL KEYS
  426. #################################################################
  427.  
  428. # Focus/swap windows by direction
  429. super + ctrl + {Left,Down,Up,Right}
  430. bspc node --{focus} {west,south,north,east}
  431.  
  432. # Contract tiled space
  433. super + ctrl + {h,j,k,l}
  434. bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10}
  435.  
  436. # Focus parent/brother/first/second for preselection
  437. super + ctrl + {e,r,t,y}
  438. bspc node --focus @{parent,brother,first,second}
  439.  
  440. # Preselect the splitting area for next window on leaf/parent
  441. super + ctrl + {u,i,o,p}
  442. bspc node --presel-dir \~{west,south,north,east}
  443.  
  444. # Define splitting ratio for next window on leaf/parent
  445. super + ctrl + {_,shift +}{1-9}
  446. bspc node {_,@/} --presel-ratio 0.{1-9}
  447.  
  448. #################################################################
  449. # ALT KEYS
  450. #################################################################
  451.  
  452. # Focus selected desktop
  453. alt + Tab
  454. bspc desktop -f '^{1-9,10}'
  455.  
  456. # Focus selected desktop
  457. alt + shift + Tab
  458. bspc desktop -f '^{1-9,10}'
  459.  
  460. # Rotate desktop
  461. alt + space
  462. bspc node @/ --rotate {90,-90}
  463.  
  464. #################################################################
  465. # ALT + SHIFT KEYS
  466. #################################################################
  467.  
  468. # Expand tiled space
  469. alt + shift + {h,j,k,l}
  470. bspc node {@west -r -10,@south -r +10,@north -r -10,@east -r +10}
  471.  
  472. #################################################################
  473. # CTRL + ALT KEYS
  474. #################################################################
  475.  
  476. # Focus next/previous window
  477. ctrl + alt + Left
  478. bspc node --focus west
  479.  
  480. # Focus next/previous window
  481. ctrl + alt + Right
  482. bspc node --focus east
  483.  
  484. # Focus Up window
  485. ctrl +alt + Up
  486. bspc node --focus north
  487.  
  488. # Focus Down window
  489. ctrl + alt + Down
  490. bspc node --focus south
  491.  
  492. #################################################################
Add Comment
Please, Sign In to add comment