poetician

ArcoLinux i3wm | Dual Monitor | HDMI and DVI-D Overhauled

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