poetician

ArcoLinuxB i3wm | Dual Monitor | Housekeeping Session

Mar 11th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.62 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. set $firstMonitor DVI-D-0
  54. set $secondMonitor HDMI-A-0
  55.  
  56. workspace 1 output $firstMonitor
  57. workspace 2 output $firstMonitor
  58. workspace 3 output $firstMonitor
  59. workspace 4 output $firstMonitor
  60. workspace 5 output $firstMonitor
  61. workspace 6 output $firstMonitor
  62. workspace 7 output $firstMonitor
  63. workspace 8 output $secondMonitor
  64. workspace 9 output $secondMonitor
  65. workspace 10 output $secondMonitor
  66. workspace 11 output $secondMonitor
  67. workspace 12 output $secondMonitor
  68. workspace 13 output $secondMonitor
  69. workspace 14 output $secondMonitor
  70.  
  71. # Arandr is used for the configuration. So is this.
  72. exec xrandr --no-startup-id --output DVI-D-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 1920x0 --rotate normal
  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. ########### Stopping 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 #281948
  218. client.background #FF000000 #FF4f433f #281948 #FF000000 #281948
  219. client.unfocused #FF000000 #80000000 #f4cd52 #80000000 #281948
  220. client.focused #FF000000 #FF000000 #B87333 #FF000000 #6c71c4
  221. client.focused_inactive #FF000000 #BF000000 #f4cd52 #FF000000 #6c71c4
  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 "𖭧 𑜆𖨎"
  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="ArcoLinux Conky Manager"] floating enable
  330. for_window [class="Arcolinux-tweak-tool.py"] floating enable, move position 2845 60
  331. # for_window [class="Cherrytree"] floating enable
  332. # for_window [class="Cherrytree"] move position 20 40
  333. # for_window [class="Cherrytree"] border pixel 8
  334. for_window [class="Create Snapshot"] floating enable
  335. for_window [class="digikam"] floating enable
  336. for_window [class="File-roller"] floating enable
  337. for_window [class="Font-manager"] floating enable
  338. for_window [class="Galculator"] floating enable
  339. for_window [class="Gnome-disks"] floating disable
  340. for_window [class="^Gnome-font-viewer$"] floating enable
  341. for_window [class="^Gpick$"] floating enable
  342. for_window [class="Grub-customizer"] floating enable
  343. # for_window [class="Gucharmap"] move scratchpad
  344. for_window [class="Gucharmap"] floating enable, move position 1960 60
  345. # for_window [class="Gufw.py"] floating enable
  346. # for_window [class="Gufw.py"] move position 2780 80
  347. # for_window [class="Gufw.py"] move absolute position center
  348. # for_window [class="Gufw.py"] move scratchpad
  349. for_window [class="Hefftor-betterlockscreen-gui.py"] floating enable, move position 1930 650, floating_maximum_size 800 x 240
  350. # for_window [class="Hefftor_SkelApp.py"] move scratchpad
  351. for_window [class="Hefftor_SkelApp.py"] floating enable, move position 2590 210
  352. for_window [class="Hefftor_polybar_switcher.py"] floating enable, move position 1950 60
  353. for_window [class="Hefftor-twm-wallpaper-changer.py"] floating enable, move position 3104 60
  354. for_window [class="Hefftors-twm-color-changer.py"] floating enable, move position 3098 586, floating_maximum_size 710 x 450
  355. for_window [class="kdenlive"] move absolute position center
  356. for_window [class="Imagewriter"] floating enable
  357. for_window [class="qt5ct|Lxappearance"] floating enable
  358. for_window [class="Pamac-manager"] floating enable
  359. # for_window [class="Pavucontrol"] floating enable
  360. for_window [class="qBittorrent"] floating enable, move position 1960 60, floating_minimum_size 850 x 560
  361. for_window [class="System-config-printer.py"] floating enable
  362. for_window [class="Termite"] floating enable
  363. for_window [class="Tilix"] floating enable, move position 1000 280
  364. for_window [class="Timeshift-gtk"] floating enable, move position 1970 60
  365. for_window [class="Usb-creator-gtk"] floating enable
  366. for_window [class="Variety"] floating enable floating_minimum_size 1000 x 800
  367. for_window [class="VirtualBox"] floating enable, move position 3010 260
  368. for_window [class="VirtualBox Manager"] floating enable, move position 1980 60
  369. for_window [class="VirtualBox Machine"] floating disable
  370. for_window [class="vlc"] floating enable, move position 1928 930, floating_maximum_size 1800 x 180, floating_minimum_size 1900 x 160
  371. for_window [class="vokoscreenNG"] floating enable, floating_minimum_size 780 x 450, move position 3000 320
  372. for_window [class="Workrave"] floating enable, move position 1940 60
  373. for_window [class="Xfce4-appfinder"] floating enable
  374. for_window [class="Xfce4-dict"] floating enable
  375. for_window [class="Xfce4-settings-manager"] floating enable
  376. for_window [class="Xfce4-taskmanager"] floating enable
  377. for_window [class="Xscreensaver-demo"] floating enable, move position 2960 60, floating_minimum_size 700 x 700
  378.  
  379. # for_window [instance="gimp"] floating disable
  380. # for_window [instance="script-fu"] border normal
  381. for_window [title="Copying"] floating enable
  382. for_window [title="Deleting"] floating enable
  383. for_window [title="Moving"] floating enable
  384. for_window [title="^Terminator Preferences$"] floating enable
  385. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  386. for_window [window_role="pop-up"] floating enable
  387. for_window [window_role="^Preferences$"] floating enable
  388. for_window [window_role="setup"] floating enable
  389.  
  390. ########### Loading Applications at Startup ###########
  391.  
  392. # exec i3-save-tree --workspace 13 > ~/.config/i3/workspace-13.json
  393.  
  394. exec cherrytree
  395. exec firefox
  396. # exec gucharmap
  397. exec joplin
  398. # exec kdenlive
  399. exec libreoffice
  400. # exec meld
  401. exec nemo
  402. exec qbittorrent
  403. # exec virtualbox manager
  404. exec vlc
  405.  
  406. ########### Background Applications ###########
  407.  
  408. exec killall picom &&
  409. exec --no-startup-id picom -b
  410. exec --no-startup-id mousetrap -t 1
  411. exec_always xscreensaver
  412. exec --no-startup-id xscreensaver-demo
  413.  
  414. ########### Tray Applications ###########
  415.  
  416. # Applications that are not installed will not start
  417. # you may see a wheel - hashtag out things you do not want
  418.  
  419. # Authentication dialog
  420. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  421.  
  422. # Network
  423. exec --no-startup-id nm-applet
  424.  
  425. # Num Lock activated
  426. exec_always --no-startup-id numlockx on
  427.  
  428. # Parcellite
  429. exec parcellite
  430.  
  431. # Redshift
  432. exec redshift
  433.  
  434. # Screenkey
  435. # exec screenkey
  436.  
  437. # Workrave
  438. exec workrave
  439.  
  440. # Volume
  441. exec --no-startup-id volumeicon
  442.  
  443. # Updater
  444. exec --no-startup-id pamac-tray
  445.  
  446. # Dropbox
  447. exec --no-startup-id dropbox start
  448.  
  449. # Megasync
  450. exec megasync
  451.  
  452. # My-Weather-Indicator
  453. exec my-weather-indicator
  454.  
  455. # Polybar
  456. # exec_always --no-startup-id ~/.config/polybar/launch.sh &
  457.  
  458. ###########################################################################
  459. ########### Applications Keyboard Shortcuts ###########
  460. ###########################################################################
  461.  
  462. ########### Menu Options ###########
  463.  
  464. # Start Rofi drun Mode
  465. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  466.  
  467. # Start Rofi Combi Mode
  468. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  469.  
  470. # Start Rofi Window Mode
  471. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons
  472.  
  473. # Start xfce-appfinder
  474. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  475.  
  476. ########### Not Workspace Related ###########
  477.  
  478. # Terminal
  479. bindsym $mod+Return exec --no-startup-id termite;focus
  480. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  481. bindsym control+mod1+t exec --no-startup-id xfce4-terminal;focus
  482. bindsym control+mod1+Return exec --no-startup-id tilix;focus
  483. bindsym control+mod1+KP_Enter exec --no-startup-id termite;focus
  484.  
  485. # ArcoLinux Tweak tool
  486. bindsym control+Shift+p exec Arcolinux-tweak-tool.py;focus
  487.  
  488. # System monitor
  489. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  490.  
  491. # Settings
  492. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  493.  
  494. # Catfish
  495. bindsym control+mod1+c exec --no-startup-id catfish;focus
  496.  
  497. # Rofi theme selector
  498. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  499.  
  500. # Htop
  501. # arcolinux conflict
  502. # bindsym $mod+h exec --no-startup-id htop;focus
  503.  
  504. # Pavucontrol
  505. # arcolinux conflict
  506. # bindsym control+mod1+u exec --no-startup-id pavucontrol
  507.  
  508. # Start xfce-appfinder
  509. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  510.  
  511. # Pamac-manager
  512. bindsym control+mod1+p exec --no-startup-id pamac-manager
  513.  
  514. # Gnome-Screenshot
  515. bindsym control+PrintScr exec --np-startup-id gnome-Screenshot
  516.  
  517. ########### Workspace Related ###########
  518.  
  519. # Workspace 1 related
  520. bindsym $mod+F1 exec --no-startup-id firefox;focus
  521.  
  522. # Workspace 2 related
  523. bindsym $mod+F2 exec --no-startup-id atom;focus
  524. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  525.  
  526. # Workspace 3 related
  527. bindsym control+mod1+s exec --no-startup-id stacer;focus
  528. bindsym $mod+F3 exec --no-startup-id Cherrytree;focus
  529.  
  530. # Workspace 4 related
  531. bindsym $mod+F4 exec --no-startup-id libreoffice
  532.  
  533. # Workspace 5 related
  534. bindsym $mod+F5 exec --no-startup-id kdenlive
  535.  
  536. # Workspace 6 related
  537. bindsym $mod+F6 exec --no-startup-id glimpse-0.1;focus
  538.  
  539. # Workspace 7 related
  540. bindsym $mod+F7 exec --no-startup-id google-earth-pro;focus
  541.  
  542. # Workspace 8 related
  543. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  544. bindsym $mod+F9 exec --no-startup-id meld;focus
  545.  
  546. # Workspace 9 related
  547. bindsym control+mod1+v exec VirtualBox Manager;focus
  548.  
  549. # Workspace 13 related
  550. bindsym $mod+F10 exec timeshift-gtk
  551.  
  552. ##########################################################################
  553. ########### Workspace Switching Functions ############
  554. ##########################################################################
  555.  
  556. # switch to workspace
  557. bindsym $mod+1 workspace $ws1
  558. bindsym $mod+2 workspace $ws2
  559. bindsym $mod+3 workspace $ws3
  560. bindsym $mod+4 workspace $ws4
  561. bindsym $mod+5 workspace $ws5
  562. bindsym $mod+6 workspace $ws6
  563. bindsym $mod+7 workspace $ws7
  564. bindsym $mod+8 workspace $ws8
  565. bindsym $mod+9 workspace $ws9
  566. bindsym $mod+0 workspace $ws10
  567. bindsym $mod+minus workspace $ws11
  568. bindsym $mod+equal workspace $ws12
  569. bindsym $mod+bracketleft workspace $ws13
  570. bindsym $mod+bracketright workspace $ws14
  571.  
  572. # move focused container to workspace
  573. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  574. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  575. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  576. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  577. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  578. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  579. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  580. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  581. bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
  582. bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
  583. bindsym $mod+Shift+minus move container to workspace $ws11
  584. bindsym $mod+Shift+equal move container to workspace $ws12
  585. bindsym $mod+Shift+bracketleft move container to workspace $ws13
  586. bindsym $mod+Shift+bracketright move container to workspace $ws14
  587.  
  588. #################################################################
  589. ########### Navigating Containers ###########
  590. #################################################################
  591.  
  592. # use mouse+$mod to drag floating windows to their new position
  593. floating_modifier $mod
  594.  
  595. # toggle tiling / floating
  596. bindsym $mod+Shift+space floating toggle
  597.  
  598. # change focus
  599. bindsym $mod+Left focus left
  600. bindsym $mod+Down focus down
  601. bindsym $mod+Up focus up
  602. bindsym $mod+Right focus right
  603.  
  604. # move focused window
  605. bindsym $mod+Shift+Left move left
  606. bindsym $mod+Shift+Down move down
  607. bindsym $mod+Shift+Up move up
  608. bindsym $mod+Shift+Right move right
  609.  
  610. #################################################################
  611. ########### Navigating Workspaces ###########
  612. #################################################################
  613.  
  614. # next/previous workspace
  615. bindsym Mod1+Tab workspace next
  616. bindsym Mod1+Shift+Tab workspace prev
  617. bindsym $mod+Tab workspace back_and_forth
  618.  
  619. # navigate workspaces next / previous
  620. bindsym Mod1+Ctrl+Right workspace next
  621. bindsym Mod1+Ctrl+Left workspace prev
  622.  
  623. # switch to workspace with urgent window automatically
  624. # for_window [urgent=latest] focus
  625.  
  626. # switch back to previous workspace by pressing the same keybinding used to switch from it
  627. workspace_auto_back_and_forth yes
  628.  
  629. # enable urgent workspace message delay to see what window sent it
  630. # force_display_urgency_hint 1 ms
  631.  
  632. #############################################################
  633. ########### Tiling Parameters ###########
  634. #############################################################
  635.  
  636. # workspace_layout default|stacking|tabbed
  637.  
  638. # orientation for new workspaces
  639. default_orientation horizontal
  640.  
  641. # split in horizontal orientation
  642. bindsym $mod+h split h
  643.  
  644. # split in vertical orientation
  645. bindsym $mod+v split v
  646.  
  647. # enter fullscreen mode for the focused container
  648. bindsym $mod+f fullscreen toggle
  649.  
  650. # change container layout (stacked, tabbed, toggle split)
  651. bindsym $mod+s layout stacking
  652. bindsym $mod+z layout tabbed
  653. bindsym $mod+e layout toggle split
  654.  
  655. # change focus between tiling / floating windows
  656. bindsym $mod+space focus mode_toggle
  657.  
  658. # focus the parent container
  659. bindsym $mod+a focus parent
  660.  
  661. # focus the child "HHVH"
  662. # bindsym $mod+d focus child
  663.  
  664. ######################################################################
  665. ########### Give Focus to Applications ###########
  666. ######################################################################
  667.  
  668. for_window [class="atom"] focus
  669. # for_window [class="libreoffice-startcenter"] focus
  670. for_window [class="Firefox"] focus
  671. for_window [class="google-earth-pro"] focus
  672. for_window [class="meld"] focus
  673. for_window [class="Termite"] focus
  674.  
  675. ##########################################################
  676. ########### Border Control ###########
  677. ##########################################################
  678.  
  679. # default_border normal | none | pixel
  680. default_border pixel 5
  681.  
  682. # default_floating_border normal | none| pixel
  683. default_floating_border pixel 12
  684.  
  685. # hide_edge_borders none|vertical|horizontal|both|smart
  686. hide_edge_borders smart
  687. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  688.  
  689. ########### changing border style ###########
  690.  
  691. bindsym $mod+t border normal
  692. bindsym $mod+y border 1pixel
  693. bindsym $mod+u border none
  694.  
  695. new_window pixel 8
  696. # new_window normal
  697. # new_window none
  698.  
  699. new_float pixel 12
  700. # new_float normal
  701. # new_float none
  702.  
  703. #############################################################################
  704. ########### Popup Control in Fullscreen Mode ###########
  705. #############################################################################
  706.  
  707. # popup_during_fullscreen smart|ignore|leave_fullscreen
  708. popup_during_fullscreen smart
  709.  
  710. ##########################################################
  711. ########### Resize Windows ###########
  712. ##########################################################
  713.  
  714. # resize window (you can also use the mouse)
  715.  
  716. bindsym $mod+r mode "resize"
  717.  
  718. mode "resize" {
  719. # These bindings trigger as soon as you enter the resize mode
  720.  
  721. # Pressing left will shrink the window’s width.
  722. # Pressing right will grow the window’s width.
  723. # Pressing up will shrink the window’s height.
  724. # Pressing down will grow the window’s height.
  725. bindsym $left resize shrink width 3 px or 3 ppt
  726. bindsym $down resize grow height 1 px or 1 ppt
  727. bindsym $up resize shrink height 1 px or 1 ppt
  728. bindsym $right resize grow width 3 px or 3 ppt
  729.  
  730. # same bindings, but for the arrow keys
  731. bindsym Left resize shrink width 3 px or 3 ppt
  732. bindsym Down resize grow height 1 px or 1 ppt
  733. bindsym Up resize shrink height 1 px or 1 ppt
  734. bindsym Right resize grow width 3 px or 3 ppt
  735.  
  736. # back to normal: Enter or Escape
  737. bindsym Return mode "default"
  738. bindsym Escape mode "default"
  739. }
  740.  
  741. # Resizing windows in i3 using keyboard only
  742. # https://unix.stackexchange.com/q/255344/150597
  743.  
  744. # Resizing by 1
  745. bindsym $mod+Ctrl+Right resize shrink width 1 px or 1 ppt
  746. bindsym $mod+Ctrl+Up resize grow height 1 px or 1 ppt
  747. bindsym $mod+Ctrl+Down resize shrink height 1 px or 1 ppt
  748. bindsym $mod+Ctrl+Left resize grow width 1 px or 1 ppt
  749.  
  750. # Resizing by 10
  751. bindsym $mod+Ctrl+comma resize shrink width 10 px or 10 ppt
  752. bindsym $mod+Ctrl+apostrophe resize grow height 10 px or 10 ppt
  753. bindsym $mod+Ctrl+slash resize shrink height 10 px or 10 ppt
  754. bindsym $mod+Ctrl+period resize grow width 10 px or 10 ppt
  755.  
  756. ########### Sticky Floating Windows ###########
  757.  
  758. # make a terminal sticky that was started as a notepad
  759. for_window [instance=notepadqq] sticky enable
  760.  
  761. ########### i3 Next Gaps ############
  762.  
  763. # Settings for I3 next gap git
  764. # https://github.com/Airblader/i3/tree/gaps-next
  765.  
  766. for_window [class="^.*"] border pixel 8
  767. gaps inner 7
  768. gaps outer 7
  769. smart_gaps on
  770. smart_borders on
  771.  
  772. ########### i3 gaps resizing ############
  773.  
  774. set $mode_gaps Gaps: (o) outer, (i) inner
  775. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  776. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  777. bindsym $mod+Shift+g mode "$mode_gaps"
  778.  
  779. mode "$mode_gaps" {
  780. bindsym o mode "$mode_gaps_outer"
  781. bindsym i mode "$mode_gaps_inner"
  782. bindsym Return mode "default"
  783. bindsym Escape mode "default"
  784. }
  785.  
  786. mode "$mode_gaps_inner" {
  787. bindsym plus gaps inner current plus 1
  788. bindsym minus gaps inner current minus 1
  789. bindsym 0 gaps inner current set 0
  790.  
  791. bindsym Shift+plus gaps inner all plus 1
  792. bindsym Shift+minus gaps inner all minus 1
  793. bindsym Shift+0 gaps inner all set 0
  794.  
  795. bindsym Return mode "default"
  796. bindsym Escape mode "default"
  797. }
  798. mode "$mode_gaps_outer" {
  799. bindsym plus gaps outer current plus 1
  800. bindsym minus gaps outer current minus 1
  801. bindsym 0 gaps outer current set 0
  802.  
  803. bindsym Shift+plus gaps outer all plus 1
  804. bindsym Shift+minus gaps outer all minus 1
  805. bindsym Shift+0 gaps outer all set 0
  806.  
  807. bindsym Return mode "default"
  808. bindsym Escape mode "default"
  809. }
  810.  
  811. ###################################################################
  812. ########### Variety for Wallpapers ############
  813. ###################################################################
  814.  
  815. # Variety keybindings mod1 = ALT
  816.  
  817. # trash wallpaper
  818. bindsym mod1+t exec --no-startup-id variety -t
  819. # next wallpaper
  820. bindsym mod1+n exec --no-startup-id variety -n
  821. bindsym mod1+Right exec --no-startup-id variety -n
  822. # previous wallpaper
  823. bindsym mod1+p exec --no-startup-id variety -p
  824. bindsym mod1+Left exec --no-startup-id variety -p
  825. # favorite wallpaper
  826. bindsym mod1+f exec --no-startup-id variety -f
  827. # pause wallpaper
  828. bindsym mod1+Up exec --no-startup-id variety --pause
  829. # resume wallpaper
  830. bindsym mod1+Down exec --no-startup-id variety --resume
  831.  
  832. ########### Variety with Pywal ###########
  833.  
  834. # next wallpaper
  835. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  836. # previous wallpaper
  837. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  838. # trash wallpaper
  839. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  840. # Update Wallpaper
  841. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  842.  
  843. ##########################################################
  844. ########### Audio Settings ###########
  845. ##########################################################
  846.  
  847. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  848. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  849. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  850. #https://github.com/acrisci/playerctl/
  851. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  852. bindsym XF86AudioNext exec --no-startup-id playerctl next
  853. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  854. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  855.  
  856. ###############################################################
  857. ########### System Applications ###########
  858. ###############################################################
  859.  
  860. exec --no-startup-id xfce4-power-manager &
  861. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  862. # IF xfsettingsd is activated you can not change themes
  863. #exec --no-startup-id xfsettingsd &
  864. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  865.  
  866. ######################## The End - Now Start Again ########################
  867. ####################################################################################################################
  868.  
  869. # All these words are empty baskets
  870. # Carried to the market square
  871. # Trading truth and lies in barter
  872. # Warranting warn buyer beware
  873.  
  874. # All these words are reeds I wove
  875. # Taught to hold my pauper’s share
  876. # Show me yours before and after
  877. # Out in the open we may compare
  878.  
  879. # All these words are on the table
  880. # Yoked to folly the shell game starts
  881. # Trick the eye they who are able
  882. # Cunning those the same the heart
  883.  
  884. # All these words are fruits of labour
  885. # Bounty’s grace on harvest’s day
  886. # Test taste and judge the many flavours
  887. # Fill your need be on your way
  888.  
  889. # All these words so meet and proper
  890. # Morning meals served hot or cold
  891. # Savour meaning old sharecropper
  892. # Recall the stories you were told
  893.  
  894. # All these words are open caskets
  895. # Life goes on even nothing’s fair
  896. # Gather seeds for ever after
  897. # Till the breach sow to repair
Advertisement
Add Comment
Please, Sign In to add comment