poetician

Poetician Edition | More Gaps Functionality

Mar 26th, 2020 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.88 KB | None | 0 0
  1. # ㄗ 𑁣 𑀚 𐕅 ⁞ ᙅ ⁞ ₳ 𑀪 𓁿Ꝣᰃ𐁕 ##
  2. ########################### ####
  3. # #####
  4. # https://pastebin.com/u/poetician ######
  5. # https://thenextpoetician.blogspot.com/ #######
  6. # https://www.youtube.com/channel/UCmP5yzI3bT4EP5lyitpor8w ########
  7. # #########
  8. # Based on the work of Erik Dubois: ##########
  9. # ###########
  10. # https://arcolinux.info/ ########### Developer:
  11. # https://github.com/arcolinux ########### URL:https://i3wm.org/
  12. # https://www.youtube.com/channel/UCJdmdUp5BrsWsYVQUylCMLg ########## i3 version 4.18 (2020-02-18)
  13. # ######### © 2009 Michael Stapelberg
  14. # All the world's problems can be solved in a garden - Geoff Lawton ######## and contributors
  15. # ###### ############
  16. ########### Key Names ########### #########
  17. #######
  18. # Mod = Super key / Mod4 # Control = Ctrl key ######
  19. # Mod1 = Alt key # Shift = Shift key #####
  20. # Return = Enter or Return key # KP_Enter = Keypad Enter key
  21. # Escape = Escape key # Pause = Pause key
  22. # Print = Print key # Tab = Tab key
  23.  
  24. # Define the $mod variable key
  25. set $mod Mod4
  26.  
  27. # Define the movement keys
  28. set $up l
  29. set $down k
  30. set $left j
  31. set $right semicolon
  32.  
  33. ########## Dual Monitor Setup ##########
  34.  
  35. set $firstMonitor HDMI-A-0
  36. set $secondMonitor DVI-D-0
  37.  
  38. workspace 1 output $firstMonitor
  39. workspace 2 output $firstMonitor
  40. workspace 3 output $firstMonitor
  41. workspace 4 output $firstMonitor
  42. workspace 5 output $firstMonitor
  43. workspace 6 output $firstMonitor
  44. workspace 7 output $firstMonitor
  45. workspace 8 output $secondMonitor
  46. workspace 9 output $secondMonitor
  47. workspace 10 output $secondMonitor
  48. workspace 11 output $secondMonitor
  49. workspace 12 output $secondMonitor
  50. workspace 13 output $secondMonitor
  51. workspace 14 output $secondMonitor
  52.  
  53. # Use arandr for the configuration.
  54. exec xrandr --no-startup-id --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-D-0 -mode 1920x1080 --pos 1920x0 --rotate normal
  55.  
  56. ########### Reload Changed Configuration ###########
  57.  
  58. # Restart i3 in place (preserves the layout/session, can be used to upgrade i3)
  59. bindsym $mod+Shift+r restart
  60.  
  61. # Reload the configuration file
  62. bindsym $mod+Shift+c reload
  63.  
  64. ########### Stopping Applications ###########
  65.  
  66. # Kill focused window
  67. bindsym $mod+q kill
  68.  
  69. # Xkill focused window
  70. bindsym --release $mod+Escape exec xkill
  71.  
  72. ########### How to Lockscreen, Logout, Reboot, etc ... ###########
  73.  
  74. # Press $mod and X to exit - options appear in the toolbar
  75. bindsym $mod+X mode "$mode_system"
  76. bindsym control+mod1+Delete mode "$mode_system"
  77.  
  78. set $mode_system System (h) hibernate (k) lock, (l) logout, (r) reboot, (s) shutdown (u) suspend
  79. mode "$mode_system" {
  80. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  81. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  82. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  83. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  84. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  85. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  86.  
  87. # back to normal: Enter or Escape
  88. bindsym Return mode "default"
  89. bindsym Escape mode "default"
  90. }
  91.  
  92. ##########################################################
  93. ########### Resize Windows ###########
  94.  
  95. bindsym $mod+r mode "resize"
  96.  
  97. mode "resize" {
  98. # These bindings trigger as soon as you enter the resize mode
  99.  
  100. # Pressing left will shrink the window’s width.
  101. # Pressing right will grow the window’s width.
  102. # Pressing up will shrink the window’s height.
  103. # Pressing down will grow the window’s height.
  104. bindsym $left resize shrink width 3 px or 3 ppt
  105. bindsym $down resize grow height 1 px or 1 ppt
  106. bindsym $up resize shrink height 1 px or 1 ppt
  107. bindsym $right resize grow width 3 px or 3 ppt
  108.  
  109. # same bindings, but for the arrow keys
  110. bindsym Left resize shrink width 3 px or 3 ppt
  111. bindsym Down resize grow height 1 px or 1 ppt
  112. bindsym Up resize shrink height 1 px or 1 ppt
  113. bindsym Right resize grow width 3 px or 3 ppt
  114.  
  115. # back to normal: Enter or Escape
  116. bindsym Return mode "default"
  117. bindsym Escape mode "default"
  118. }
  119.  
  120. # Resizing windows with keyboard only: https://unix.stackexchange.com/q/255344/150597
  121.  
  122. # Resizing by 1
  123. bindsym $mod+Ctrl+Right resize grow width 1 px or 1 ppt
  124. bindsym $mod+Ctrl+Up resize shrink height 1 px or 1 ppt
  125. bindsym $mod+Ctrl+Down resize grow height 1 px or 1 ppt
  126. bindsym $mod+Ctrl+Left resize shrink width 1 px or 1 ppt
  127.  
  128. # Resizing by 10
  129. bindsym $mod+Ctrl+comma resize shrink width 10 px or 10 ppt
  130. bindsym $mod+Ctrl+apostrophe resize grow height 10 px or 10 ppt
  131. bindsym $mod+Ctrl+slash resize shrink height 10 px or 10 ppt
  132. bindsym $mod+Ctrl+period resize grow width 10 px or 10 ppt
  133.  
  134. ########### i3 Next Gaps ############
  135.  
  136. # Settings for I3 next gaps https://github.com/Airblader/i3/tree/gaps-next
  137.  
  138. for_window [class="^.*"] border pixel 8
  139. gaps inner 7
  140. gaps outer 7
  141. smart_gaps on
  142. smart_borders on
  143.  
  144. ########### i3 gaps resizing ############
  145.  
  146. set $mode_gaps Gaps: (o) outer, (i) inner
  147. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  148. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  149. bindsym $mod+Shift+g mode "$mode_gaps"
  150.  
  151. mode "$mode_gaps" {
  152. bindsym o mode "$mode_gaps_outer"
  153. bindsym i mode "$mode_gaps_inner"
  154. bindsym Return mode "default"
  155. bindsym Escape mode "default"
  156. }
  157.  
  158. mode "$mode_gaps_inner" {
  159. bindsym plus gaps inner current plus 1
  160. bindsym minus gaps inner current minus 1
  161. bindsym 0 gaps inner current set 0
  162.  
  163. bindsym Shift+plus gaps inner all plus 1
  164. bindsym Shift+minus gaps inner all minus 1
  165. bindsym Shift+0 gaps inner all set 0
  166.  
  167. bindsym Return mode "default"
  168. bindsym Escape mode "default"
  169. }
  170. mode "$mode_gaps_outer" {
  171. bindsym plus gaps outer current plus 1
  172. bindsym minus gaps outer current minus 1
  173. bindsym 0 gaps outer current set 0
  174.  
  175. bindsym Shift+plus gaps outer all plus 1
  176. bindsym Shift+minus gaps outer all minus 1
  177. bindsym Shift+0 gaps outer all set 0
  178.  
  179. bindsym Return mode "default"
  180. bindsym Escape mode "default"
  181. }
  182.  
  183. # gaps inner|outer|horizontal|vertical|top|right|bottom|left current|all set|plus|minus|toggle
  184.  
  185. bindsym $mod+Shift+f gaps inner all set 0; gaps outer all set 0
  186. bindsym $mod+Shift+t gaps inner all set 20; gaps outer all set 0
  187. bindsym $mod+Shift+a gaps inner all set 10; gaps outer all set 10
  188. bindsym $mod+Shift+w gaps inner all set 0; gaps outer all set 20
  189. bindsym control+Shift+minus gaps inner current minus 5
  190. bindsym control+Shift+o gaps outer current plus 10
  191. bindsym control+Shift+i gaps inner current plus 10
  192. bindsym control+Shift+plus gaps outer current minus 5
  193. bindsym control+Shift+comma gaps vertical current minus 5
  194. bindsym control+Shift+l gaps vertical current plus 10
  195. bindsym control+Shift+bracketleft gaps horizontal current minus 5
  196. bindsym control+Shift+bracketright gaps horizontal current plus 10
  197. bindsym control+Shift+semicolon gaps right current plus 10
  198. bindsym control+Shift+apostrophe gaps right current minus 10
  199. bindsym control+Shift+y gaps left current minus 10
  200. bindsym control+Shift+u gaps left current plus 10
  201. bindsym control+Shift+backslash gaps outer current toggle 40
  202.  
  203. # popup_during_fullscreen smart|ignore|leave_fullscreen
  204. popup_during_fullscreen leave_fullscreen
  205.  
  206. ########### Bar Toggle ###########
  207.  
  208. # bar toggle, hide or show
  209. bindsym $mod+b bar mode invisible
  210. bindsym $mod+m bar mode dock
  211.  
  212. ########### Title Font and Alignment ###########
  213.  
  214. # Font for window titles. Will also be used by the bar unless a different font
  215. # is named in the bar {} block below.
  216. font pango: Federation italic 12
  217. title_align center
  218.  
  219. ########################################################################
  220. ########### Bar and Workspace Appearance ###########
  221.  
  222. # Option 1: Polybar
  223. # Comment out conky and remove hashtag in the next line to load Polybar; log back in to see the change
  224. # exec_always --no-startup-id ~/.config/polybar/launch.sh &
  225.  
  226. # hide_edge_borders none|vertical|horizontal|both|smart
  227. hide_edge_borders horizontal
  228.  
  229. bar {
  230.  
  231. height 33
  232. workspace_buttons yes
  233. font pango:Federation italic 12
  234.  
  235. i3bar_command i3bar --transparency
  236.  
  237. tray_output HDMI-A-0
  238. # output HDMI-A-0
  239. # output primary HDMI-A-0
  240.  
  241. position top
  242. #position bottom
  243.  
  244. # Option 2 : Conky
  245.  
  246. # start-conky-i3statusbar.sh is started and conky will follow
  247. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  248. # conky configuration is in conky-i3statusbar
  249.  
  250. status_command ~/.config/i3/start-conky-i3statusbar.sh
  251.  
  252. colors {
  253. background #FF000000
  254. statusline #FF4f433f
  255. separator #FF4f433f
  256. # border backgr. text
  257. focused_workspace #FF000000 #FF000000 #4f433f
  258. inactive_workspace #FF000000 #FF000000 #6c71c4
  259. active_workspace #FF000000 #73000000 #a16b1c
  260. urgent_workspace #FF000000 #FF000000 #8446d4
  261. binding_mode #281948 #FF000000 #FAEBD7
  262. }
  263. }
  264.  
  265. # class border backgr. text indicator child-border
  266. client.placeholder #FF000000 #FF4f433f #281948 #FF000000 #281948
  267. client.background #000000
  268. client.unfocused #FF000000 #80000000 #6c71c4 #80000000 #281948
  269. client.focused #FF000000 #FF000000 #B87333 #FF000000 #6c71c4
  270. client.focused_inactive #FF000000 #BF000000 #4f433f #FF000000 #b6b9e1
  271. client.urgent #000000 #000000 #a16b1c #11093e #8446d4
  272.  
  273. ########### Colour Picker ###########
  274.  
  275. # #4f433f Tudor Brown #FAEBD7 Antique White
  276. # #c0c0c0 Silver #899a99 Pewter
  277. # #7C0A02 Barn Red #dc143c Crimson #e34234 Vermillion
  278. # #568203 Avocado #2e5e5b Pine Green #1f3d0c Deep Forest Green
  279. # #cd7f32 Bronze #B87333 Copper #FFD700 Gold
  280. # #089635 #104022 #054d23 #033317 #02180b
  281. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4 #b6b9e1
  282. # #a16b1c #FFAF00 #e69722 #f4cd52
  283.  
  284. ###################################################
  285. ########### Applications and Directives ###########
  286.  
  287. for_window [class="Alacritty"] move scratchpad, move position 1030 405
  288. bindsym Mod1+comma [class="Alacritty"] scratchpad show
  289. exec alacritty
  290. bindsym $mod+Return exec --no-startup-id alacritty, focus
  291.  
  292. for_window [class="Gucharmap"] move scratchpad, move position 10 400
  293. bindsym Mod1+period [class="Gucharmap"] scratchpad show
  294. bindsym control+Mod1+period exec gucharmap
  295.  
  296. set $ws1 "1 "
  297. assign [class="Brave-browser"] $ws1
  298. assign [class="Firefox"] $ws1
  299. for_window [class="firefox"] focus
  300. exec firefox
  301. bindsym $mod+F1 exec --no-startup-id firefox
  302.  
  303. set $ws2 "2 𑢰ᨊ"
  304. assign [class="Atom"] $ws2
  305. bindsym $mod+F2 exec --no-startup-id atom, focus
  306. assign [class="Nemo"] $ws2
  307. exec nemo
  308. bindsym $mod+Shift+Return exec --no-startup-id nemo, focus
  309.  
  310. set $ws3 "3 ℂ𖣁"
  311. assign [class="Cherrytree"] $ws3
  312. exec cherrytree
  313. bindsym control+Mod1+l [class="Clementine"] scratchpad show
  314. assign [class="vlc"] $ws3
  315. exec vlc
  316. bindsym $mod+F3 exec vlc, focus
  317.  
  318. set $ws4 "4 𑣦"
  319. assign [class="libreoffice"] $ws4
  320. # for_window [class="libreoffice-startcenter"] focus
  321. exec libreoffice
  322. bindsym $mod+F4 exec --no-startup-id libreoffice, focus
  323.  
  324. set $ws5 "5 𐎩"
  325. assign [class="kdenlive"] $ws5
  326. # for_window [class="kdenlive"] floating disable, move position 20 40
  327. bindsym $mod+F5 exec --no-startup-id kdenlive
  328. assign [class="vokoscreenNG"] $ws5
  329. # for_window [class="vokoscreenNG"] floating enable, move position 2965 615
  330. bindsym Mod1+9 [class="vokoscreenNG"] scratchpad show
  331. bindsym Mod1+e exec vokoscreenNG
  332. bindsym control+Shift+k exec vokoscreenNG, focus
  333.  
  334. set $ws6 "6 ᮱"
  335. assign [class="Gimp-2.10"] $ws6
  336. bindsym $mod+F6 exec --no-startup-id gimp-2.10
  337. for_window [instance="script-fu"] border normal
  338. for_window [title="Copying"] floating enable
  339. for_window [title="Deleting"] floating enable
  340. for_window [title="Moving"] floating enable
  341. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  342. for_window [window_role="pop-up"] floating enable
  343. for_window [window_role="^Preferences$"] floating enable
  344. for_window [window_role="setup"] floating enable
  345.  
  346. set $ws7 "7 "
  347. assign [class="Google Earth Pro"] $ws7
  348. for_window [class="google-earth-pro"] focus
  349. bindsym $mod+F7 exec google-earth-pro
  350.  
  351. set $ws8 "8 "
  352. assign [class="Hefftor-betterlockscreen-gui.py"] $ws8
  353. exec hefftor-betterlockscreen-gui
  354. for_window [class="Hefftor-betterlockscreen-gui.py"] floating enable, move position 1930 32
  355.  
  356. set $ws9 "9 𑣣"
  357. assign [class="Meld"] $ws9
  358. for_window [class="Meld"] focus
  359. exec meld
  360. bindsym $mod+F9 exec meld
  361.  
  362. set $ws10 "10 ᶌɓ"
  363. assign [class=VirtualBox] $ws10
  364. assign [class="VirtualBox Manager"] $ws10
  365. assign [class="VirtualBox Machine"] $ws10
  366. for_window [class="VirtualBox Manager"] floating enable, move position 1980 40
  367. # for_window [class="VirtualBox Manager"] move scratchpad, move position 1980 80
  368. for_window [class="VirtualBox Machine"] floating disable
  369. exec virtualbox manager
  370. bindsym Mod1+0 [class="VirtualBox Manager"] scratchpad show
  371. bindsym $mod+F10 exec --no-startup-id virtualbox manager, focus
  372.  
  373. set $ws11 "11 𖧫ꚳ"
  374. assign [class="Hefftor_polybar_switcher.py"] $ws11
  375. for_window [class="Hefftor_polybar_switcher.py"] floating enable, move position 1947 55
  376. exec hefftor-polybar-switcher
  377. bindsym Mod1+y exec hefftor-polybar-switcher
  378. assign [class="Hefftor_SkelApp.py"] $ws11
  379. bindsym Mod1+w exec hefftors-twm-color-changer
  380. for_window [class="Hefftor_SkelApp.py"] floating enable, move position 2592 210
  381. #exec hefftor-skelapp
  382. bindsym Mod1+h exec hefftor_skelapp
  383. assign [class="Hefftor-twm-wallpaper-changer.py"] $ws11
  384. for_window [class="Hefftor-twm-wallpaper-changer.py"] floating enable, move position 3110 55
  385. exec hefftor-twm-wallpaper-changer
  386. bindsym Mod1+i exec hefftor-twm-wallpaper-changer
  387.  
  388. set $ws12 "12 էԵ ꚬ𐔣 "
  389. assign [class="Arcolinux-tweak-tool.py"] $ws12
  390. # for_window [class="Arcolinux-tweak-tool.py"] move scratchpad, move position 2880 40
  391. bindsym Mod1+8 [class="Arcolinux-tweak-tool.py"] scratchpad show
  392. bindsym control+Shift+t exec arcolinux-tweak-tool, focus
  393. assign [class="Hefftor-polybar-editor.py"] $ws12
  394. # for_window [class="Hefftor-polybar-editor.py"] floating enable, move position 2700 454
  395. bindsym control+Shift+p exec hefftor-polybar-editor
  396.  
  397. set $ws13 "13ᰛᰠ"
  398. assign [class="Timeshift-gtk"] $ws13
  399. for_window [class="Timeshift-gtk"] floating enable, move position 1980 80
  400. # for_window [class="Timeshift-gtk"] move scratchpad
  401. bindsym Mod1+bracketleft [class="Timeshift-gtk"] scratchpad show
  402. bindsym Mod1+q exec --no-startup-id timeshift-gtk
  403. assign [class="Xfce4-dict"] $ws13
  404. for_window [class="Xfce4-dict"] floating enable, move position 3000 80
  405. # for_window [class="Xfce4-dict"] move scratchpad
  406. bindsym Mod1+bracketright [class="Xfce4-dict"] scratchpad show
  407. exec xfce4-dict
  408. bindsym control+Shift+d exec Xfce4-dict, focus
  409. assign [class="Hefftors-twm-color-changer.py"] $ws13
  410. for_window [class="Hefftors-twm-color-changer.py"] floating enable, move position 3102 582
  411. assign [class="Hefftors-twm-color-changer.py"] $ws11
  412. exec hefftors-twm-color-changer
  413.  
  414. set $ws14 "14ᱧ𐌜"
  415. assign [class="qBittorrent"] $ws14
  416. exec qbittorrent
  417. # for_window [class="qBittorrent"] move scratchpad, move position 1935 40
  418. bindsym Mod1+7 [class="qBittorrent"] scratchpad show
  419. assign [class="Xscreensaver-demo"] $ws14
  420. exec_always xscreensaver
  421. exec --no-startup-id xscreensaver-demo
  422. # for_window [class="Xscreensaver-demo"] move scratchpad, move position 2990 60
  423. bindsym Mod1+apostrophe [class="Xscreensaver"] scratchpad show
  424.  
  425. ### Scratchpad
  426.  
  427. # move the currently focused window to the scratchpad
  428. bindsym Mod1+Shift+slash move scratchpad
  429.  
  430. # Show the next scratchpad window or hide the focused scratchpad window.
  431. # This command cycles through all apps in the scratchpad.
  432. bindsym Mod1+slash scratchpad show
  433. bindsym Mod1+semicolon [class="Pystopwatch"] scratchpad show
  434.  
  435. ########### Loading Applications at Startup ###########
  436.  
  437. # Authentication dialog
  438. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  439. # Num Lock activated
  440. exec_always --no-startup-id numlockx on
  441. exec killall picom &&
  442. exec --no-startup-id picom -b
  443. exec --no-startup-id mousetrap -t 1
  444.  
  445. ### Tray Applications
  446.  
  447. # Network
  448. exec --no-startup-id nm-applet
  449.  
  450. # Parcellite
  451. exec parcellite
  452.  
  453. # Redshift
  454. exec redshift
  455.  
  456. # Screenkey
  457. # exec screenkey
  458.  
  459. # Workrave
  460. exec workrave
  461. for_window [class="Workrave"] floating enable, move position 1940 60
  462.  
  463. # Volume
  464. exec --no-startup-id pasystray
  465. exec --no-startup-id volumeicon
  466.  
  467. # Updater
  468. exec --no-startup-id pamac-tray
  469.  
  470. # Dropbox
  471. exec --no-startup-id dropbox start
  472.  
  473. # Megasync
  474. exec megasync
  475.  
  476. # My-Weather-Indicator
  477. exec my-weather-indicator
  478.  
  479. ##################################################################
  480. ########### Application Launching ###########
  481.  
  482. # Start Rofi drun Mode
  483. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  484. # Start Rofi Combi Mode
  485. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  486. # Start Rofi Window Mode
  487. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons -font "Federation 11"
  488.  
  489. # Start Xfce-appfinder
  490. for_window [class="Xfce4-appfinder"] floating enable
  491. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  492.  
  493. # Screenshots
  494. bindsym Print exec --no-startup-id scrot '_-%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  495. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  496.  
  497. # System Monitor
  498. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager, focus
  499.  
  500. # Settings
  501. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  502.  
  503. # Catfish
  504. bindsym control+mod1+c exec --no-startup-id catfish, focus
  505.  
  506. # Rofi Theme Selector
  507. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  508.  
  509. # Pamac-Manager
  510. bindsym control+mod1+g exec --no-startup-id pamac-manager
  511.  
  512. #############################################################
  513. ########### Floating or Tiled ###########
  514.  
  515. # Floating enabled / disabled; find class name with xprop; border option
  516.  
  517. for_window [class="ArcoLinux Conky Manager"] floating enable
  518. for_window [class="Create Snapshot"] floating enable
  519. for_window [class="digikam"] floating enable
  520. for_window [class="File-roller"] floating enable
  521. for_window [class="Font-manager"] floating enable
  522. for_window [class="Galculator"] floating enable
  523. for_window [class="Gnome-disks"] floating disable
  524. for_window [class="^Gnome-font-viewer$"] floating enable
  525. for_window [class="^Gpick$"] floating enable
  526. for_window [class="Grub-customizer"] floating enable
  527. for_window [class="Imagewriter"] floating enable
  528. for_window [class="qt5ct|Lxappearance"] floating enable
  529. for_window [class="Pamac-manager"] floating enable
  530. for_window [class="Pystopwatch"] floating enable
  531. for_window [class="System-config-printer.py"] floating enable
  532. for_window [class="Usb-creator-gtk"] floating enable
  533. for_window [class="Xfce4-settings-manager"] floating enable
  534. for_window [class="Xfce4-taskmanager"] floating enable
  535.  
  536. ##########################################################################
  537. ########### Workspace Switching Functions ############
  538.  
  539. # Switch to workspace
  540. bindsym $mod+1 workspace $ws1
  541. bindsym $mod+2 workspace $ws2
  542. bindsym $mod+3 workspace $ws3
  543. bindsym $mod+4 workspace $ws4
  544. bindsym $mod+5 workspace $ws5
  545. bindsym $mod+6 workspace $ws6
  546. bindsym $mod+7 workspace $ws7
  547. bindsym $mod+8 workspace $ws8
  548. bindsym $mod+9 workspace $ws9
  549. bindsym $mod+0 workspace $ws10
  550. bindsym $mod+minus workspace $ws11
  551. bindsym $mod+equal workspace $ws12
  552. bindsym $mod+bracketleft workspace $ws13
  553. bindsym $mod+bracketright workspace $ws14
  554.  
  555. # Move focused container to workspace
  556. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  557. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  558. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  559. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  560. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  561. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  562. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  563. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  564. bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
  565. bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
  566. bindsym $mod+Shift+minus move container to workspace $ws11
  567. bindsym $mod+Shift+equal move container to workspace $ws12
  568. bindsym $mod+Shift+bracketleft move container to workspace $ws13
  569. bindsym $mod+Shift+bracketright move container to workspace $ws14
  570.  
  571. #################################################################
  572. ########### Navigating Containers ###########
  573.  
  574. # Use mouse+$mod to drag floating windows to their new position
  575. floating_modifier $mod
  576.  
  577. # Toggle Tiling / Floating
  578. bindsym control+space floating toggle
  579.  
  580. # Change Focus
  581. bindsym $mod+$left focus left
  582. bindsym $mod+Left focus left
  583. bindsym $mod+$down focus down
  584. bindsym $mod+Down focus down
  585. bindsym $mod+$up focus up
  586. bindsym $mod+Up focus up
  587. bindsym $mod+$right focus right
  588. bindsym $mod+Right focus right
  589.  
  590. # Move Focused Window
  591. bindsym $mod+Shift+$left move left
  592. bindsym $mod+Shift+Left move left
  593. bindsym $mod+Shift+$down move down
  594. bindsym $mod+Shift+Down move down
  595. bindsym $mod+Shift+$up move up
  596. bindsym $mod+Shift+Up move up
  597. bindsym $mod+Shift+$right move right
  598. bindsym $mod+Shift+Right move right
  599.  
  600. #################################################################
  601. ########### Navigating Workspaces ###########
  602.  
  603. # Navigate to Next / Previous Workspace
  604. bindsym Mod1+Shift+Tab workspace prev
  605. bindsym Mod1+Ctrl+Left workspace prev
  606. bindsym Mod1+Ctrl+Right workspace next
  607. bindsym Mod1+Tab workspace next
  608. bindsym $mod+Tab workspace back_and_forth
  609.  
  610. # Switch to workspace with urgent window automatically
  611. for_window [urgent=latest] focus
  612.  
  613. # Switch back to previous workspace by pressing the same keybinding used to switch from it
  614. workspace_auto_back_and_forth yes
  615.  
  616. #############################################################
  617. ########### Tiling Parameters ###########
  618.  
  619. # workspace_layout default|stacking|tabbed
  620. workspace_layout default
  621.  
  622. # orientation for new workspaces
  623. default_orientation horizontal
  624.  
  625. # split in horizontal orientation
  626. bindsym $mod+h split h
  627.  
  628. # split in vertical orientation
  629. bindsym $mod+v split v
  630.  
  631. # enter fullscreen mode for the focused container
  632. bindsym $mod+f fullscreen toggle
  633.  
  634. # change container layout (stacked, tabbed, toggle split)
  635. bindsym $mod+s layout stacking
  636. bindsym $mod+z layout tabbed
  637. bindsym $mod+e layout toggle split
  638.  
  639. # change focus between tiling / floating windows
  640. bindsym $mod+space focus mode_toggle
  641.  
  642. # focus the parent container
  643. bindsym $mod+a focus parent
  644.  
  645. # focus the child "HHVH"
  646. # bindsym $mod+d focus child
  647.  
  648. ######################################################################
  649. ########### Give Focus to Applications ###########
  650.  
  651. force_display_urgency_hint 0 ms
  652. focus_on_window_activation smart
  653.  
  654. ##########################################################
  655. ########### Border Control ###########
  656.  
  657. # default_border normal | none | pixel
  658. default_border pixel 5
  659.  
  660. # default_floating_border normal | none| pixel
  661. default_floating_border pixel 8
  662.  
  663. # hide_edge_borders none|vertical|horizontal|both|smart
  664. hide_edge_borders smart
  665. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  666.  
  667. # changing border style
  668. bindsym $mod+t border normal
  669. bindsym $mod+y border 1pixel
  670. bindsym $mod+u border none
  671.  
  672. new_window pixel 8
  673. # new_window normal
  674. # new_window none
  675.  
  676. new_float pixel 8
  677. # new_float normal
  678. # new_float none
  679.  
  680. ###################################################################
  681. ########### Variety for Wallpapers ############
  682.  
  683. # Sets wallpaper to load at startup
  684. exec --no-startup-id variety
  685. for_window [class="Variety"] floating enable
  686. for_window [instance="Variety Preferences"] floating enable
  687.  
  688. # trash wallpaper
  689. bindsym mod1+t exec --no-startup-id variety -t
  690. # next wallpaper
  691. bindsym mod1+n exec --no-startup-id variety -n
  692. bindsym mod1+Right exec --no-startup-id variety -n
  693. # previous wallpaper
  694. bindsym mod1+p exec --no-startup-id variety -p
  695. bindsym mod1+Left exec --no-startup-id variety -p
  696. # favorite wallpaper
  697. bindsym mod1+f exec --no-startup-id variety -f
  698. # pause wallpaper
  699. bindsym mod1+Up exec --no-startup-id variety --pause
  700. # resume wallpaper
  701. bindsym mod1+Down exec --no-startup-id variety --resume
  702.  
  703. ########### Variety with Pywal ###########
  704.  
  705. # next wallpaper
  706. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  707. # previous wallpaper
  708. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  709. # trash wallpaper
  710. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  711. # update wallpaper
  712. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  713.  
  714. ###############################################################
  715. ########### System Applications ###########
  716.  
  717. exec --no-startup-id xfce4-power-manager &
  718. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  719.  
  720. ######################## The End - Now Start Again ########################
  721. ####################################################################################################################
  722.  
  723. # All these words are empty baskets
  724. # Carried to the market square
  725. # Trading truth and lies in barter
  726. # Warranting warn buyer beware
  727.  
  728. # All these words are reeds I wove
  729. # Taught to hold my pauper’s share
  730. # Show me yours before and after
  731. # Out in the open we may compare
  732.  
  733. # All these words are on the table
  734. # Yoked to folly the shell game starts
  735. # Trick the eye they who are able
  736. # Cunning those the same the heart
  737.  
  738. # All these words are fruits of labour
  739. # Bounty’s grace on harvest’s day
  740. # Test taste and judge the many flavours
  741. # Fill your need be on your way
  742.  
  743. # All these words so meet and proper
  744. # Morning meals served hot or cold
  745. # Savour meaning old sharecropper
  746. # Recall the stories you were told
  747.  
  748. # All these words are open caskets
  749. # Life goes on even nothing’s fair
  750. # Gather seeds for ever after
  751. # Till the breach sow to repair
Add Comment
Please, Sign In to add comment