poetician

sxhkdrc | Work in Progress

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