poetician

ArcoLinux i3wm Minor Edits/Clean-up

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