Advertisement
poetician

ArcoLinux i3wm | Dual Monitor Setup

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