Advertisement
poetician

ArcoLinux i3 | Dual Monitor Setup | Move Containter to $ws

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