Advertisement
poetician

ArcoLinux i3wm Workspace Layout Saving

Feb 29th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.48 KB | None | 0 0
  1. # ###########
  2. # PPPPp ii ii ii ###########
  3. # p P oOOo eeee TTTTTTT cccc 3333 ###########
  4. # p P O O e e t II c II A N N II 3 ###########
  5. # PpppP O O e e t II c II A A N n N II 3 W W M M
  6. # P O O eeeee t II c II A A N n N II 333 W W M m m M
  7. # P O O e t II c II A aAa A N n N II 3 W w W M m m M
  8. # P O O e t II c II A A N n N II 3 W w w W M m M
  9. # p OooO eeee t II cccc II A A N N II 3333 W W M M
  10. # ###########
  11. #################################################################################################################
  12. # ###########
  13. # https://pastebin.com/u/poetician ###########
  14. # https://thenextpoetician.blogspot.com/ ###########
  15. # https://www.youtube.com/channel/UCmP5yzI3bT4EP5lyitpor8w ###########
  16. # ###########
  17. # Most of the work was done by Erik Dubois: ###########
  18. # ########### https://i3wm.org/
  19. # https://arcolinux.info/ ########### i3 version 4.18 (2020-02-18)
  20. # https://github.com/arcolinux ########### © 2009 Michael Stapelberg
  21. # https://www.youtube.com/channel/UCJdmdUp5BrsWsYVQUylCMLg ########### and contributors
  22. # ###########
  23. ##################################################################################
  24. ###########
  25. ########### Key Definitions ########### ###########
  26.  
  27. # Mod = WINDOWS / Super key / Mod4
  28. # Mod1 = ALT key
  29. # Control = CTRL key
  30. # Shift = SHIFT key
  31. # Escape = ESCAPE key
  32. # Return = ENTER or RETURN key
  33. # KP_Enter = Keypad ENTER key
  34. # Pause = PAUSE key
  35. # Print = PRINT key
  36. # Tab = TAB key
  37.  
  38. ########### Define the $mod Variable Key ###########
  39.  
  40. set $mod Mod4
  41. # set $mod Mod1
  42.  
  43. ########### Define the Movement Keys ###########
  44.  
  45. set $up l
  46. set $down k
  47. set $left j
  48. set $right semicolon
  49.  
  50. ########### Reload Changed Configuration ###########
  51.  
  52. # restart i3 in place (preserves your layout/session, can be used to upgrade i3)
  53. bindsym $mod+Shift+r restart
  54.  
  55. # reload the configuration file
  56. bindsym $mod+Shift+c reload
  57.  
  58. ########### Stopping Applications ###########
  59.  
  60. # kill focused window
  61. bindsym $mod+q kill
  62.  
  63. # Xkill focused winddow
  64. bindsym --release $mod+Escape exec xkill
  65.  
  66. ########### How to Exit, Lockscreen, Etc... ###########
  67.  
  68. # Press $mod and X to exit - options appear in the toolbar
  69. bindsym $mod+X mode "$mode_system"
  70. bindsym control+mod1+Delete mode "$mode_system"
  71.  
  72. set $mode_system System (h) hibernate (k) lock, (l) logout, (r) reboot, (s) shutdown (u) suspend
  73. mode "$mode_system" {
  74. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  75. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  76. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  77. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  78. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  79. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  80.  
  81. # back to normal: Enter or Escape
  82. bindsym Return mode "default"
  83. bindsym Escape mode "default"
  84. }
  85.  
  86. # Alternative Script from https://pastebin.com/CbTsNMVF ## not presently functioning ##
  87.  
  88. bindsym $mod+Delete exec i3-exit
  89. for_window [class="I3-exit"] floating enable border normal
  90.  
  91. ########### Bar Toggle ###########
  92.  
  93. # bar toggle, hide or show
  94. bindsym $mod+b bar mode invisible
  95. bindsym $mod+m bar mode dock
  96.  
  97. ########### Scratchpad ###########
  98.  
  99. # move the currently focused window to the scratchpad
  100. bindsym Mod1+Shift+plus move scratchpad
  101.  
  102. # Show the next scratchpad window or hide the focused scratchpad window.
  103. # If there are multiple scratchpad windows, this command cycles through them.
  104. bindsym Mod1+plus scratchpad show
  105.  
  106. ########### Screenshots ############
  107.  
  108. bindsym Print exec --no-startup-id scrot '_-%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  109. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  110.  
  111. ########### Title Font and Alignment ###########
  112.  
  113. # Font for window titles. Will also be used by the bar unless a different font
  114. # is used in the bar {} block below.
  115. font pango: Federation italic 12
  116. title_align center
  117.  
  118. ########### Wallpaper Settings ###########
  119.  
  120. # Sets wallpaper to load at startup
  121. # exec --no-startup-id feh --bg-fill ~/Pictures/Salon.jpg
  122. exec --no-startup-id variety
  123.  
  124. ########################################################################
  125. ########### Bar and Workspace Appearance ###########
  126. ########################################################################
  127.  
  128. # hide_edge_borders none|vertical|horizontal|both|smart
  129. # hide_edge_borders horizontal
  130.  
  131. bar {
  132.  
  133. height 33
  134. workspace_buttons yes
  135. font pango:Federation italic 11
  136.  
  137. i3bar_command i3bar --transparency
  138.  
  139. position top
  140. #position bottom
  141.  
  142. #system icons
  143. #tray_output none
  144.  
  145. # OPTION 1 : i3status
  146.  
  147. # type status_command i3status without the config file and
  148. # you will get the standard i3status bar
  149. # Second one is the standard statusbar with my personal settings
  150.  
  151. #status_command i3status
  152. #status_command i3status -c ~/.config/i3/i3status.conf
  153.  
  154. # OPTION 2 : i3blocks
  155.  
  156. # https://github.com/vivien/i3blocks
  157. # another way to provide text in the statusbar
  158. # put hash-tag in front if not installed
  159.  
  160. #status_command i3blocks
  161. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  162. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  163. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  164. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  165.  
  166. # OPTION 3 : conky
  167.  
  168. # You can also replace the istatus bar with a conky
  169. # start-conky-i3statusbar.sh is started and conky will follow
  170. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  171. # conky configuration is in conky-i3statusbar
  172.  
  173. status_command ~/.config/i3/start-conky-i3statusbar.sh
  174.  
  175. # OPTION 4 : polybar
  176.  
  177. # polybar is launched elsewhere - search for the word
  178. # from the opening of the "bar {...}" till the end has to go or hash-tagged out
  179. # in order for the system trayicons to show up in polybar
  180.  
  181. colors {
  182. background #CC4f433f
  183. statusline #CC4f433f
  184. separator #CC4f433f
  185. # border backgr. text
  186. focused_workspace #CC4f433f #CC4f433f #899a99
  187. inactive_workspace #CC4f433f #FF4f433f #f4cd52
  188. urgent_workspace #FF000000 #FF000000 #f4cd52
  189. }
  190.  
  191. }
  192.  
  193. #Golden text on Tudor Brown background.
  194. # class border backgr. text indicator child-border
  195. client.placeholder #FF000000 #CC4f433f #281948 #FF000000 #281948
  196. client.background #FF000000 #CC4f433f #281948 #FF000000 #281948
  197. client.unfocused #FF000000 #BF4f433f #f4cd52 #FF000000 #281948
  198. client.focused #FF000000 #FF000000 #B87333 #FF000000 #6c71c4
  199. client.focused_inactive #FF000000 #BF4f433f #281948 #FF000000 #6c71c4
  200. client.urgent #11093e #8446d4 #a16b1c #11093e #8446d4
  201.  
  202. ########### Colour Picker ###########
  203.  
  204. # #222222
  205. # #ffffff #a9a9a9 #c2c2b8
  206. # #760b0b #900000
  207. # #089635 #104022 #054d23 #033317 #02180b
  208. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4
  209. # #a16b1c #FFAF00 #e69722 #f4cd52
  210. # #cd7f32 Bronze
  211. # #B87333 Copper
  212. # #c0c0c0 Silver
  213. # #d4af37 Gold
  214. # #022051 Sapphire
  215. # #7C0A02 Barn Red
  216. # #E0115F Ruby
  217. # #dc143c Crimson
  218. # #e34234 Vermillion
  219. # #dda0ad Plum
  220. # #899a99 Pewter
  221. # #568203 Avocado
  222. # #2e5e5b Pine Green
  223. # #1f3d0c Deep Forest Green
  224. # #4f433f Tudor Brown
  225. # #FAEBD7 Antique White
  226.  
  227. # Transparency values
  228. # 100% — FF
  229. # 95% — F2
  230. # 90% — E6
  231. # 85% — D9
  232. # 80% — CC
  233. # 75% — BF
  234. # 70% — B3
  235. # 65% — A6
  236. # 60% — 99
  237. # 55% — 8C
  238. # 50% — 80
  239. # 45% — 73
  240. # 40% — 66
  241. # 35% — 59
  242. # 30% — 4D
  243. # 25% — 40
  244. # 20% — 33
  245. # 15% — 26
  246. # 10% — 1A
  247. # 5% — 0D
  248. # 0% — 00
  249.  
  250. ############################################################################
  251. ########### Workspace Names and Assignments ############
  252. ############################################################################
  253.  
  254. ########### Workspaces named with variables avoids repetition ###########
  255.  
  256. set $ws1 "1 "
  257. set $ws2 "2 𑢰 𑜞"
  258. # set $ws2 "2 𑢰 ꗇ"
  259. # set $ws3 "3 🎞 🎜"
  260. set $ws3 "3 ꪜ ⴽ"
  261. set $ws4 "4 𑣦"
  262. # set $ws5 "5 📽"
  263. set $ws5 "5 𐎩"
  264. set $ws6 "6 ᮱"
  265. set $ws7 "7 "
  266. set $ws8 "8 "
  267. set $ws9 "9 𑣣"
  268. set $ws10 "10 𖭧"
  269. set $ws11 "11 Ⅱ"
  270. set $ws12 "12 ᰪ"
  271. set $ws13 "13:ᰛᰠ"
  272. set $ws14 "14:𐘝᰾"
  273.  
  274. ########### Loading Applications in Designated Workspaces ###########
  275.  
  276. assign [class="Firefox"] $ws1
  277. assign [class="Brave-browser"] $ws1
  278. assign [class="Nemo"] $ws2
  279. assign [class="code-oss"] $ws2
  280. assign [class="Cherrytree"] $ws3
  281. assign [class="vlc"] $ws13
  282. assign [class="libreoffice"] $ws4
  283. # assign [class="Gucharmap"] $ws4
  284. assign [class="kdenlive"] $ws5
  285. assign [class="Glimpse-0.1"] $ws6
  286. assign [class="Google Earth Pro"] $ws7
  287. assign [class="stacer"] $ws8
  288. assign [class="Meld"] $ws9
  289. assign [class="VirtualBox Manager"] $ws9
  290. assign [class="VirtualBox Machine"] $ws10
  291. assign [class="Arcolinux-tweak-tool.py"] $ws11
  292. assign [class="Hefftor_SkelApp.py"] $ws11
  293. assign [class="Notepadqq"] $ws12
  294. assign [class="Joplin"] $ws12
  295. assign [class="Gufw.py"] $ws13
  296. assign [class="Timeshift-gtk"] $ws13
  297. assign [class="Transmission-gtk"] $ws14
  298. assign [class="Xscreensaver-demo"] $ws14
  299.  
  300. ########### Loading Applications at Startup ###########
  301.  
  302. exec i3-save-tree --workspace 13 > ~/.config/i3/workspace-13.json
  303.  
  304. ########### Background Applications ###########
  305.  
  306. exec_always compton -c
  307. exec --no-startup-id mousetrap -t 1
  308. exec_always xscreensaver
  309. exec --no-startup-id xscreensaver-demo
  310.  
  311. ########### Typical Applications ###########
  312.  
  313. exec code-oss
  314. exec cherrytree
  315. exec firefox
  316. # exec glimpse-0.1
  317. # exec google-earth-pro
  318. # exec gucharmap
  319. exec joplin
  320. # exec kdenlive
  321. exec libreoffice
  322. # exec meld
  323. exec nemo
  324. # exec stacer
  325. exec transmission-gtk
  326. # exec virtualbox manager
  327. exec vlc
  328.  
  329. ########### Tray Applications ###########
  330.  
  331. # Applications that are not installed will not start
  332. # you may see a wheel - hashtag out things you do not want
  333.  
  334. # Authentication dialog
  335. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  336.  
  337. # Dropbox
  338. exec --no-startup-id dropbox start
  339.  
  340. # Megasync
  341. exec megasync
  342.  
  343. # My-Weather-Indicator
  344. exec my-weather-indicator
  345.  
  346. # Network
  347. exec --no-startup-id nm-applet
  348.  
  349. # Num Lock activated
  350. exec_always --no-startup-id numlockx on
  351.  
  352. # Parcellite
  353. exec parcellite
  354.  
  355. # Redshift
  356. exec redshift
  357.  
  358. # Screenkey
  359. # exec screenkey
  360.  
  361. # Updater
  362. exec --no-startup-id pamac-tray
  363.  
  364. # Volume
  365. #exec --no-startup-id pasystray
  366. exec --no-startup-id volumeicon
  367.  
  368. # Workrave
  369. exec workrave
  370.  
  371. # Clipman
  372. # exec --no-startup-id xfce4-clipman
  373.  
  374. # Conky
  375. # exec --no-startup-id conky -c ~/.config/i3/system-overview
  376.  
  377. # Polybar
  378. # exec_always --no-startup-id ~/.config/polybar/launch.sh &
  379.  
  380. ###########################################################################
  381. ########### Applications Keyboard Shortcuts ###########
  382. ###########################################################################
  383.  
  384. ########### 4 Menu Options ###########
  385.  
  386. # Start Rofi drun Mode
  387. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  388.  
  389. # Start Rofi Combi Mode
  390. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  391.  
  392. # Start Rofi Window Mode
  393. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons
  394.  
  395. # Start xfce-appfinder
  396. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  397.  
  398. ########### Not Workspace Related ###########
  399.  
  400. # Terminal
  401. bindsym $mod+Return exec --no-startup-id termite;focus
  402. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  403. bindsym control+mod1+t exec --no-startup-id xfce4-terminal;focus
  404. bindsym control+mod1+Return exec --no-startup-id tilix;focus
  405. bindsym control+mod1+KP_Enter exec --no-startup-id termite;focus
  406.  
  407. # ArcoLinux Tweak tool
  408. bindsym control+Shift+p exec Arcolinux-tweak-tool.py;focus
  409.  
  410. # System monitor
  411. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  412.  
  413. # Settings
  414. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  415.  
  416. # Catfish
  417. bindsym control+mod1+c exec --no-startup-id catfish;focus
  418.  
  419. # Rofi theme selector
  420. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  421.  
  422. # Htop
  423. # arcolinux conflict
  424. # bindsym $mod+h exec --no-startup-id htop;focus
  425.  
  426. # Pavucontrol
  427. # arcolinux conflict
  428. # bindsym control+mod1+u exec --no-startup-id pavucontrol
  429.  
  430. # Start xfce-appfinder
  431. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  432.  
  433. # Pamac-manager
  434. bindsym control+mod1+p exec --no-startup-id pamac-manager
  435.  
  436. ########### Workspace Related ###########
  437.  
  438. # Workspace 1 related
  439. bindsym $mod+F1 exec --no-startup-id firefox;focus
  440.  
  441. # Workspace 2 related
  442. bindsym $mod+F2 exec --no-startup-id code-oss;focus
  443. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  444.  
  445. # Workspace 3 related
  446. bindsym $mod+F3 exec --nostartup-id Rhythmbox
  447. bindsym $mod+F10 exec --no-startup-id Cherrytree;focus
  448.  
  449. # Workspace 4 related
  450. bindsym $mod+F4 exec --no-startup-id libreoffice
  451.  
  452. # Workspace 5 related
  453. bindsym $mod+F5 exec --no-startup-id kdenlive
  454.  
  455. # Workspace 6 related
  456. bindsym $mod+F6 exec --no-startup-id glimpse-0.1;focus
  457.  
  458. # Workspace 7 related
  459. bindsym $mod+F7 exec --no-startup-id google-earth-pro;focus
  460.  
  461. # Workspace 8 related
  462. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  463. bindsym control+mod1+s exec --no-startup-id stacer;focus
  464.  
  465. # Workspace 9 related
  466. bindsym $mod+F9 exec --no-startup-id meld;focus
  467. bindsym control+mod1+v exec VirtualBox Manager;focus
  468. # bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  469.  
  470. # Workspace 10 related
  471.  
  472.  
  473. #############################################################
  474. ########### Floating or Tiled ###########
  475. #############################################################
  476.  
  477. ########### Floating enabled / disabled; find class name with xprop; border option ###########
  478.  
  479. for_window [class="ArcoLinux Conky Manager"] floating enable
  480. for_window [class="Arcolinux-tweak-tool.py"] floating enable
  481. for_window [class="Arcolinux-tweak-tool.py"] move position 10 44
  482. for_window [class="Bleachbit"] floating disable
  483. for_window [class="Brasero"] floating disable
  484. for_window [class="Cherrytree"] floating disable border pixel 8
  485. for_window [class="Create Snapshot"] floating enable
  486. for_window [class="digikam"] floating enable
  487. for_window [class="File-roller"] floating enable
  488. for_window [class="Galculator"] floating enable
  489. for_window [class="Gnome-disks"] floating disable
  490. for_window [class="^Gnome-font-viewer$"] floating enable
  491. for_window [class="^Gpick$"] floating enable
  492. for_window [class="Grub-customizer"] floating enable
  493. for_window [class="Gucharmap"] floating enable
  494. for_window [class="Gufw.py"] floating enable
  495. for_window [class="Gufw.py"] move position 20 60
  496. # for_window [class="Gufw.py"] move absolute position center
  497. # for_window [class="Gufw.py"] move scratchpad
  498. for_window [class="Hefftor_SkelApp.py"] floating enable
  499. for_window [class="Hefftor_SkelApp.py"] move position 882 434
  500. for_window [class="Hexchat"] floating disable
  501. for_window [class="Imagewriter"] floating enable
  502. for_window [class="Font-manager"] floating enable
  503. # for_window [class="qt5ct|Lxappearance] floating disable
  504. # for_window [class="Nitrogen"] floating enable
  505. for_window [class="Pamac-manager"] floating enable
  506. # for_window [class="Pavucontrol"] floating enable
  507. # for_window [class="Peek"] floating disable
  508. for_window [class="stacer"] floating enable
  509. for_window [class="System-config-printer.py"] floating enable
  510. for_window [class="Termite"] floating enable
  511. # for_window [class="Termite"] move scratchpad
  512. for_window [class="Timeshift-gtk"] floating enable
  513. for_window [class="Timeshift-gtk"] move position 482 360
  514. # for_window [class="Timeshift-gtk"] move scratchpad
  515. for_window [class="Tilix"] floating enable border pixel 24
  516. for_window [class="Tilix"] move position 1360 200
  517. # for_window [class="Transmission"] move scratchpad
  518. for_window [class="Usb-creator-gtk"] floating enable
  519. for_window [class="VirtualBox Manager"] floating enable
  520. # for_window [class="VirtualBox Manager"] move scratchpad
  521. for_window [class="VirtualBox Machine"] floating disable
  522. for_window [class="VirtualBox Manager"] move absolute position center
  523. for_window [class="^Vlc$"] floating enable
  524. for_window [class="^Vlc$"] floating_maximum_size <640> x <480>
  525. for_window [class="vokoscreenNG"] floating enable
  526. for_window [class="vokoscreenNG"] move scratchpad
  527. for_window [class="Xfce4-appfinder"] floating enable
  528. for_window [class="vokoscreenNG"] move position 24 64E
  529. for_window [class="Xfce4-dict"] floating enable
  530. for_window [class="Xfce4-settings-manager"] floating disable
  531. for_window [class="Xfce4-taskmanager"] floating enable
  532. for_window [class="Xscreensaver-demo"] floating disable
  533. # for_window [class="Xscreensaver-demo"] move scratchpad
  534. # for_window [class="vlc"] move absolute position center
  535. for_window [class="vokoscreenNG"] move absolute position center
  536.  
  537. # for_window [instance="gimp"] floating disable
  538. # for_window [instance="script-fu"] border normal
  539. # for_window [instance="Variety Preferences"] floating enable
  540. for_window [title="Copying"] floating enable
  541. for_window [title="Deleting"] floating enable
  542. for_window [title="Moving"] floating enable
  543. for_window [title="^Terminator Preferences$"] floating enable
  544. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  545. for_window [window_role="pop-up"] floating enable
  546. for_window [window_role="^Preferences$"] floating enable
  547. for_window [window_role="setup"] floating enable
  548.  
  549. ########### Application Specific Border Settings ###########
  550.  
  551. # for_window [class="Cherrytree"] border pixel 8
  552. # for_window [class="stacer"] border pixel 6
  553. # for_window [cleass="Imagewriter"] border pixel 12
  554. # for_window [class="Termite"] border pixel 12
  555. # for_window [class="vlc"] border pixel 16
  556.  
  557. ##########################################################################
  558. ########### Workspace Switching Functions ############
  559. ##########################################################################
  560.  
  561. # switch to workspace
  562. bindsym $mod+1 workspace $ws1
  563. bindsym $mod+2 workspace $ws2
  564. bindsym $mod+3 workspace $ws3
  565. bindsym $mod+4 workspace $ws4
  566. bindsym $mod+5 workspace $ws5
  567. bindsym $mod+6 workspace $ws6
  568. bindsym $mod+7 workspace $ws7
  569. bindsym $mod+8 workspace $ws8
  570. bindsym $mod+9 workspace $ws9
  571. bindsym $mod+0 workspace $ws10
  572. bindsym $mod+minus workspace $ws11
  573. bindsym $mod+equal workspace $ws12
  574. bindsym $mod+apostrophe workspace $ws13
  575. bindsym $mod+bracketright workspace $ws14
  576.  
  577. # move focused container to workspace
  578. bindsym $mod+Shift+1 move container to workspace $ws1
  579. bindsym $mod+Shift+2 move container to workspace $ws2
  580. bindsym $mod+Shift+3 move container to workspace $ws3
  581. bindsym $mod+Shift+4 move container to workspace $ws4
  582. bindsym $mod+Shift+5 move container to workspace $ws5
  583. bindsym $mod+Shift+6 move container to workspace $ws6
  584. bindsym $mod+Shift+7 move container to workspace $ws7
  585. bindsym $mod+Shift+8 move container to workspace $ws8
  586. bindsym $mod+Shift+9 move container to workspace $ws9
  587. bindsym $mod+Shift+0 move container to workspace $ws10
  588. bindsym $mod+Shift+equal move container to workspace $ws11
  589. bindsym $mod+Shift+minus move container to workspace $ws12
  590. bindsym $mod+Shift+n move container to workspace $ws13
  591. bindsym $mod+Shift+m move container to workspace $ws14
  592.  
  593. #################################################################
  594. ########### Navigating Containers ###########
  595. #################################################################
  596.  
  597. # use mouse+$mod to drag floating windows to their new position
  598. floating_modifier $mod
  599.  
  600. # toggle tiling / floating
  601. bindsym $mod+Shift+space floating toggle
  602.  
  603. # change focus
  604. bindsym $mod+$left focus left
  605. bindsym $mod+$down focus down
  606. bindsym $mod+$up focus up
  607. bindsym $mod+$right focus right
  608.  
  609. # alternatively, you can use the cursor keys:
  610. bindsym $mod+Left focus left
  611. bindsym $mod+Down focus down
  612. bindsym $mod+Up focus up
  613. bindsym $mod+Right focus right
  614.  
  615. # move focused window
  616. bindsym $mod+Shift+$left move left
  617. bindsym $mod+Shift+$down move down
  618. bindsym $mod+Shift+$up move up
  619. bindsym $mod+Shift+$right move right
  620.  
  621. # alternatively, you can use the cursor keys:
  622. bindsym $mod+Shift+Left move left
  623. bindsym $mod+Shift+Down move down
  624. bindsym $mod+Shift+Up move up
  625. bindsym $mod+Shift+Right move right
  626.  
  627. #################################################################
  628. ########### Navigating Workspaces ###########
  629. #################################################################
  630.  
  631. # next/previous workspace
  632. bindsym Mod1+Tab workspace next
  633. bindsym Mod1+Shift+Tab workspace prev
  634. bindsym $mod+Tab workspace back_and_forth
  635.  
  636. # navigate workspaces next / previous
  637. bindsym Mod1+Ctrl+Right workspace next
  638. bindsym Mod1+Ctrl+Left workspace prev
  639.  
  640. # switch to workspace with urgent window automatically
  641. # for_window [urgent=latest] focus
  642.  
  643. # switch back to previous workspace by pressing
  644. # the same keybinding used to switch from it
  645. workspace_auto_back_and_forth yes
  646.  
  647. # enable urgent workspace message delay to see what window sent it
  648. force_display_urgency_hint 1000 ms
  649.  
  650. #############################################################
  651. ########### Tiling Parameters ###########
  652. #############################################################
  653.  
  654. # workspace_layout default|stacking|tabbed
  655.  
  656. # orientation for new workspaces
  657. default_orientation horizontal
  658.  
  659. # split in horizontal orientation
  660. bindsym $mod+h split h
  661.  
  662. # split in vertical orientation
  663. bindsym $mod+v split v
  664.  
  665. # enter fullscreen mode for the focused container
  666. bindsym $mod+f fullscreen toggle
  667.  
  668. # change container layout (stacked, tabbed, toggle split)
  669. bindsym $mod+s layout stacking
  670. bindsym $mod+z layout tabbed
  671. bindsym $mod+e layout toggle split
  672.  
  673. # change focus between tiling / floating windows
  674. bindsym $mod+space focus mode_toggle
  675.  
  676. # focus the parent container
  677. bindsym $mod+a focus parent
  678.  
  679. # focus the child "HHVH"
  680. # bindsym $mod+d focus child
  681.  
  682. ######################################################################
  683. ########### Give Focus to Applications ###########
  684. ######################################################################
  685.  
  686. for_window [class="Gnome-terminal"] focus
  687. for_window [class="Termite"] focus
  688. for_window [class="Terminator"] focus
  689.  
  690. ##########################################################
  691. ########### Border Control ###########
  692. ##########################################################
  693.  
  694. # default_border normal | none | pixel
  695. default_border pixel 5
  696.  
  697. # default_floating_border normal | none| pixel
  698. default_floating_border pixel 16
  699.  
  700. # hide_edge_borders none|vertical|horizontal|both|smart
  701. hide_edge_borders smart
  702. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  703.  
  704. ########### changing border style ###########
  705. bindsym $mod+t border normal
  706. bindsym $mod+y border 1pixel
  707. bindsym $mod+u border none
  708.  
  709. new_window pixel 12
  710. # new_window normal
  711. # new_window none
  712.  
  713. new_float pixel 22
  714. # new_float normal
  715. # new_float none
  716.  
  717. #############################################################################
  718. ########### Popups Control In Fullscreen Mode ###########
  719. #############################################################################
  720.  
  721. # popup_during_fullscreen smart|ignore|leave_fullscreen
  722. popup_during_fullscreen leave_fullscreen
  723.  
  724. ##########################################################
  725. ########### Resize Windows ###########
  726. ##########################################################
  727.  
  728. # resize window (you can also use the mouse for that)
  729.  
  730. bindsym $mod+r mode "resize"
  731.  
  732. mode "resize" {
  733. # These bindings trigger as soon as you enter the resize mode
  734.  
  735. # Pressing left will shrink the window’s width.
  736. # Pressing right will grow the window’s width.
  737. # Pressing up will shrink the window’s height.
  738. # Pressing down will grow the window’s height.
  739. bindsym $left resize shrink width 3 px or 3 ppt
  740. bindsym $down resize grow height 1 px or 1 ppt
  741. bindsym $up resize shrink height 1 px or 1 ppt
  742. bindsym $right resize grow width 3 px or 3 ppt
  743.  
  744. # same bindings, but for the arrow keys
  745. bindsym Left resize shrink width 3 px or 3 ppt
  746. bindsym Down resize grow height 1 px or 1 ppt
  747. bindsym Up resize shrink height 1 px or 1 ppt
  748. bindsym Right resize grow width 3 px or 3 ppt
  749.  
  750. # back to normal: Enter or Escape
  751. bindsym Return mode "default"
  752. bindsym Escape mode "default"
  753. }
  754.  
  755. ########### Sticky Floating Windows ###########
  756.  
  757. # make a terminal sticky that was started as a notepad
  758. for_window [instance=notepadqq] sticky enable
  759.  
  760. #########################################################
  761. ########### i3 Next Gaps ############
  762. #########################################################
  763.  
  764. # Settings for I3 next gap git
  765. # https://github.com/Airblader/i3/tree/gaps-next
  766. # delete or uncomment the following lines if you do not have it or do not want it
  767.  
  768. for_window [class="^.*"] border pixel 8
  769. gaps inner 7
  770. gaps outer 7
  771. smart_gaps on
  772. smart_borders on
  773.  
  774. ########### i3 gaps resizing ############
  775.  
  776. set $mode_gaps Gaps: (o) outer, (i) inner
  777. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  778. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  779. bindsym $mod+Shift+g mode "$mode_gaps"
  780.  
  781. mode "$mode_gaps" {
  782. bindsym o mode "$mode_gaps_outer"
  783. bindsym i mode "$mode_gaps_inner"
  784. bindsym Return mode "default"
  785. bindsym Escape mode "default"
  786. }
  787.  
  788. mode "$mode_gaps_inner" {
  789. bindsym plus gaps inner current plus 1
  790. bindsym minus gaps inner current minus 1
  791. bindsym 0 gaps inner current set 0
  792.  
  793. bindsym Shift+plus gaps inner all plus 1
  794. bindsym Shift+minus gaps inner all minus 1
  795. bindsym Shift+0 gaps inner all set 0
  796.  
  797. bindsym Return mode "default"
  798. bindsym Escape mode "default"
  799. }
  800. mode "$mode_gaps_outer" {
  801. bindsym plus gaps outer current plus 1
  802. bindsym minus gaps outer current minus 1
  803. bindsym 0 gaps outer current set 0
  804.  
  805. bindsym Shift+plus gaps outer all plus 1
  806. bindsym Shift+minus gaps outer all minus 1
  807. bindsym Shift+0 gaps outer all set 0
  808.  
  809. bindsym Return mode "default"
  810. bindsym Escape mode "default"
  811. }
  812.  
  813. ###################################################################
  814. ########### Variety for Wallpapers ############
  815. ###################################################################
  816.  
  817. #Variety keybindings mod1 = ALT
  818. # trash wallpaper
  819. bindsym mod1+t exec --no-startup-id variety -t
  820. # next wallpaper
  821. bindsym mod1+n exec --no-startup-id variety -n
  822. bindsym mod1+Right exec --no-startup-id variety -n
  823. # previous wallpaper
  824. bindsym mod1+p exec --no-startup-id variety -p
  825. bindsym mod1+Left exec --no-startup-id variety -p
  826. # favorite wallpaper
  827. bindsym mod1+f exec --no-startup-id variety -f
  828. # pause wallpaper
  829. bindsym mod1+Up exec --no-startup-id variety --pause
  830. # resume wallpaper
  831. bindsym mod1+Down exec --no-startup-id variety --resume
  832.  
  833. ########### Variety with Pywal ###########
  834.  
  835. # next wallpaper
  836. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  837. # previous wallpaper
  838. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  839. # trash wallpaper
  840. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  841. # Update Wallpaper
  842. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  843.  
  844. ##########################################################
  845. ########### Audio Settings ###########
  846. ##########################################################
  847.  
  848. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  849. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  850. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  851. #https://github.com/acrisci/playerctl/
  852. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  853. bindsym XF86AudioNext exec --no-startup-id playerctl next
  854. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  855. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  856.  
  857. ###############################################################
  858. ########### System Applications ###########
  859. ###############################################################
  860.  
  861. exec --no-startup-id xfce4-power-manager &
  862. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  863. # IF xfsettingsd is activated you can not change themes
  864. #exec --no-startup-id xfsettingsd &
  865. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  866.  
  867. ######################## The End - Now Start Again ########################
  868. ####################################################################################################################
  869.  
  870. # All these words are empty baskets
  871. # Carried to the market square
  872. # Trading truth and lies in barter
  873. # Warranting warn buyer beware
  874.  
  875. # All these words are reeds I wove
  876. # Taught to hold my pauper’s share
  877. # Show me yours before and after
  878. # Out in the open we may compare
  879.  
  880. # All these words are on the table
  881. # Yoked to folly the shell game starts
  882. # Trick the eye they who are able
  883. # Cunning those the same the heart
  884.  
  885. # All these words are fruits of labour
  886. # Bounty’s grace on harvest’s day
  887. # Test taste and judge the many flavours
  888. # Fill your need be on your way
  889.  
  890. # All these words so meet and proper
  891. # Morning meals served hot or cold
  892. # Savour meaning old sharecropper
  893. # Recall the stories you were told
  894.  
  895. # All these words are open caskets
  896. # Life goes on even nothing’s fair
  897. # Gather seeds for ever after
  898. # Till the breach sow to repair
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement