poetician

i3-gaps running Polybar | Linux Mint

Nov 24th, 2020 (edited)
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.52 KB | None | 0 0
  1. ### Poetician Edition: https://pastebin.com/u/poetician <><><><><><><><><><><><><><>#
  2. ###<><><><> i3 version 4.18.2-229-g234d6855 (2020-09-02, branch "gaps-next" <><><><>#
  3. ### © 2009 Michael Stapelberg and contributors) <><><><><><><><><><><><><><><><><><>#
  4. ###<><><><> Installed from scripts by Erik Dubois <><><><><><><><><><><><><><><><><>#
  5. ### https://www.youtube.com/watch?v=tN_xfRug-7c <><><><><><><><><><><><><><><><><><>#
  6. ###<><><><> Documentation https://i3wm.org/docs/userguide.html <><><><><><><><><><><#
  7.  
  8. ####################################################################
  9. ######<><><><> Definitions | Preliminary Settings <><><><><><><>##
  10.  
  11. # $Mod = WINDOWS key or Super key or Mod4
  12. # Mod1 = ALT key
  13. # Control = CTRL key
  14. # Shift = SHIFT key
  15. # Escape = ESCAPE key
  16. # Return = ENTER or RETURN key
  17. # Pause = PAUSE key
  18. # Print = PRINT key
  19. # Tab = TAB key
  20.  
  21. ############ Define the $mod key variable
  22.  
  23. set $mod Mod4
  24.  
  25. ############ Dual Monitor Setup
  26.  
  27. set $firstMonitor HDMI-A-0
  28. set $secondMonitor DVI-D-0
  29.  
  30. workspace 1 output $firstMonitor
  31. workspace 2 output $firstMonitor
  32. workspace 3 output $firstMonitor
  33. workspace 4 output $firstMonitor
  34. workspace 5 output $firstMonitor
  35. workspace 6 output $firstMonitor
  36. workspace 7 output $firstMonitor
  37. workspace 8 output $firstMonitor
  38. workspace 9 output $secondMonitor
  39. workspace 10 output $secondMonitor
  40. workspace 11 output $secondMonitor
  41. workspace 12 output $secondMonitor
  42. workspace 13 output $secondMonitor
  43. workspace 14 output $secondMonitor
  44.  
  45. # Use arandr for the configuration
  46. exec xrandr --no-startup-id --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DVI-D-0 -mode 1920x1080 --pos 1920x0 --rotate normal
  47.  
  48. ############ Set wallpaper to load at startup
  49. #exec --no-startup-id variety
  50. exec nitrogen --restore
  51.  
  52. ############ Font for window titles
  53. font pango:Federation italic 12
  54.  
  55. ############ Title Alignment
  56. title_align center
  57.  
  58. ############ Start terminal
  59. bindsym $mod+Return exec terminator
  60. for_window [class="Terminator"] floating enable, resize set 640 600, move position 1240 440
  61.  
  62. ############ Kill focused window
  63. bindsym $mod+q kill
  64.  
  65. ############<><><><> Restart, Reload, Exit <><><><><><><><><><><><><><>#
  66.  
  67. ############ Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  68. bindsym $mod+Shift+r restart
  69.  
  70. ############ Reload the configuration file
  71. bindsym $mod+Shift+c reload
  72.  
  73. ############ Exit i3 (logs you out of your X session)
  74.  
  75. # Press $mod+x to exit - options in toolbar
  76. bindsym $mod+x mode "$mode_system"
  77. bindsym control+mod1+Delete mode "$mode_system"
  78.  
  79. set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
  80. mode "$mode_system" {
  81. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  82. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  83. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  84. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  85. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  86. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  87.  
  88. # back to normal: Enter or Escape
  89. bindsym Return mode "default"
  90. bindsym Escape mode "default"
  91. }
  92.  
  93. ############<><><><> Systrem Tray Applications #<><><><><><><><><><><>#
  94.  
  95. # Authentication Dialogue Agent
  96. exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
  97.  
  98. # Audio
  99. exec no-startup-id pasystray
  100.  
  101. ############<><><><> Screenshots #<><><><><><><><><><><><><><><><><><><#
  102. bindsym Print exec --no-startup-id scrot ' -%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir Pictures)'
  103. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  104.  
  105. ############<><><><> bar toggle, hide or show #<><><><><><><><><><><><>#
  106. bindsym $mod+b bar mode toggle
  107.  
  108. ############<><><><> Scratchpad #<><><><><><><><><><><><><><><><><><><>#
  109. bindsym Mod1+Shift+slash move scratchpad
  110. bindsym Mod1+slash scratchpad show
  111. for_window [class="Stopwatch|Terminator"] move scratchpad
  112. bindsym Mod1+period [class="Stopwatch"] scratchpad show
  113. bindsym Mod1+comma [class="Terminator"] scratchpad show
  114.  
  115. ############<><><><> Screen Locking #<><><><><><><><><><><><><><><><><>#
  116.  
  117. ############ Display the selected image to load with the lock screen, replacing the white screen
  118. bindsym $mod+shift+g exec i3lock -i ~/Images/arco-login.png
  119.  
  120. ############<><><><> Application Launchers <><><><><><><><><><><><><><>#
  121.  
  122. set $rofi exec rofi -show-icons -font "Federation 11"
  123. # Start drun Mode
  124. bindsym $mod+g exec $rofi -show drun -lines 8 -columns 3 -eh 2 -width 74 -padding 200
  125. # Start Rofi Combi Mode
  126. bindsym $mod+control+c exec $rofi -show combi
  127. # Start Rofi Window Mode
  128. bindsym $mod+control+w exec $rofi -show window
  129. # Start Rofi with Rofi-Shortcuts
  130. bindsym $mod+control+r exec ~/.config/rofi/rofi-shortcuts/rofi-shortcuts.sh
  131. # Start Rofi Theme Selector
  132. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  133.  
  134. ########################################################################
  135. ############<><><><> Startbar <><><><><><><><><><><><><><><><><><><><>##
  136.  
  137. # bar {
  138.  
  139. #height 24
  140. # position top
  141. #position bottom
  142. # i3bar_command i3bar -t
  143. # workspace_buttons yes
  144. # font pango: Federation 11
  145.  
  146. #system icons
  147. # tray_output HDMI-A-0
  148.  
  149. # OPTION 1 : i3status
  150.  
  151. # type status_command i3status without the config file and
  152. # you will get the standard i3status bar
  153. # Second one is the standard statusbar with my personal settings
  154.  
  155. #status_command i3status
  156. #status_command i3status -c ~/.config/i3/i3status.conf
  157.  
  158. # OPTION 2 : i3blocks
  159.  
  160. # https://github.com/vivien/i3blocks
  161. # another way to provide text in the statusbar
  162. # put hastag in front if not installed
  163.  
  164. #status_command i3blocks
  165. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  166. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  167. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  168. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  169.  
  170. # OPTION 3 : conky
  171.  
  172. # You can also replace the istatus bar with a conky
  173. # start-conky-i3statusbar.sh is started and conky will follow
  174. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  175. # conky configuration is in conky-i3statusbar
  176.  
  177. # status_command ~/.config/i3/start-conky-i3statusbar.sh
  178.  
  179. # OPTION 4 : polybar
  180.  
  181. exec_always --no-startup-id ~/.config/polybar/i3-start.sh &
  182.  
  183. #colors {
  184. # background #6c71c480
  185. # statusline #f4cd52
  186. # separator #e69722
  187. # border backgr. text
  188. # focused_workspace #6c71c4 #6c71c440 #ffaf00
  189. # active_workspace #6c71c4 #6c71c480 #ffaf00
  190. # inactive_workspace #28194840 #6c71c480 #f4cd52
  191. # urgent_workspace #281948 #11093e80 #a16b1c
  192. # }
  193.  
  194. # }
  195.  
  196. # class border backgr. text indicator child-border
  197. client.placeholder #1a000000 #FF000000 #281948 #00000000 #281948
  198. client.background #00000080
  199. client.unfocused #1a000000 #FF000000 #FFD700 #00000000 #281948
  200. client.focused #1a000000 #FF000000 #B87333 #00000000 #6c71c4
  201. client.focused_inactive #1a000000 #FF000000 #4f433f #00000000 #ffbf00
  202. client.urgent #11093e #00000040 #a16b1c #00000000 #8446d4
  203.  
  204. ####################################################################
  205. #########<><><><> Workspace Settings <><><><><><><><><><><><><><><>#
  206. ###############<><><><> Workspace related keybinding settings <><>##
  207.  
  208. set $ws1 "1"
  209. assign [class="Firefox"] "1"
  210. exec firefox
  211. bindsym $mod+F1 exec firefox
  212.  
  213. set $ws2 "2"
  214. assign [class="Sublime_text|Nemo"] "2"
  215. exec nemo
  216. bindsym $mod+F2 exec sublime_text;focus
  217. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  218.  
  219. set $ws3 "3"
  220. assign [class="Cherrytree|Xfce4-dict"] "3"
  221. for_window [class="Cherrytree"] floating enable, resize set 900 1020, move position 20 40
  222. exec cherrytree
  223. bindsym $mod+F3 exec cherrytree
  224. for_window [class="Xfce4-dict"] resize set 600 1020, move position 1140 40
  225.  
  226. set $ws4 "4"
  227. assign [class="libreoffice"] "4"
  228. exec libreoffice
  229. bindsym $mod+F4 exec libreoffice;focus
  230.  
  231. set $ws5 "5"
  232. assign [class="kdenlive"] "5"
  233. exec kdenlive
  234. bindsym $mod+F5 exec kdenlive
  235.  
  236. set $ws6 "6"
  237. assign [class="Gimp"] "6"
  238. exec gimp
  239. bindsym $mod+F6 exec gimp;focus
  240.  
  241. set $ws7 "7"
  242. assign [class="Google Earth Pro"] "7"
  243. bindsym $mod+Shift+e exec googleearth-bin
  244. exec googleearth-bin
  245.  
  246. set $ws8 "8"
  247. assign [class="Oomox|Lxappearance"] "8"
  248. for_window [class="Oomox"] focus, floating enable, move position 7 39, resize set 1100 1035
  249. for_window [class="Lxappearance"] focus, floating enable, move position 1113 140, resize set 803 800
  250. bindsym $mod+l exec lxappearance
  251. bindsym $mod+o exec oomox-gui
  252.  
  253. set $ws9 "9"
  254. assign [class="Meld"] "9"
  255. exec meld
  256. bindsym $mod+F9 exec meld;focus
  257. bindsym control+mod1+i exec nitrogen;focus
  258.  
  259. set $ws10 "10"
  260. assign [class="VirtualBox|VirtualBox Manager|VirtualBox Machine"] $ws10
  261. for_window [class="VirtualBox Manager"] floating enable, move position 2360 40, resize set 1040 1030
  262. for_window [class="VirtualBox Machine"] floating disable
  263. exec --no-startup-id virtualbox manager
  264. bindsym Mod1+0 [class="VirtualBox Manager"] scratchpad show
  265. bindsym $mod+F10 exec virtualbox manager; focus
  266.  
  267. set $ws11 "11"
  268. assign [class="Shutter"] "11"
  269.  
  270. set $ws12 "12"
  271. assign [class="Mate-control-center"] "12"
  272. bindsym $mod+Shift+m exec mate-control-center
  273.  
  274. set $ws13 "13"
  275.  
  276. set $ws14 "14"
  277. assign [class="vlc|Xscreensaver-demo"] "14"
  278. for_window [class="vlc"] floating enable, resize set 800 200, move position 2480 760
  279. bindsym $mod+Mod1+v exec vlc
  280. exec vlc
  281. for_window [class="Xscreensaver-demo"] floating enable, resize set 1020 480, move position 2330 140
  282.  
  283. ############ App loading at startup ###
  284.  
  285. exec_always --no-startup-id xscreensaver
  286. exec --no-startup-id xscreensaver-demo
  287. exec_always compton -b -c -f
  288. exec parcellite
  289. exec redshift &
  290. exec workrave
  291.  
  292. ####################################################################
  293. ###############<><><><><> Workspace Relate Settings <><><><><><><>##
  294.  
  295. ###############<><><><> Floating or tiled <><><><><><><><><><><><>##
  296. #floating enabled from some programs - find with xprop
  297.  
  298. for_window [class="Font-manager"] floating enable
  299. for_window [class="Gnome-calculator"] floating enable
  300. for_window [class="Gnome-disks"] floating enable
  301. for_window [class="Gucharmap"] floating enable
  302. for_window [class="Imagewriter"] floating enable
  303. for_window [class="Mate-control-center"] floating enable
  304. for_window [class="Mintinstall.py"] floating enable, move position center
  305. for_window [class="MintUpdate.py"] floating enable, move position center
  306. for_window [class="Nitrogen"] floating enable
  307. for_window [class="Pavucontrol"] floating enable
  308. for_window [class="qt5ct|Lxappearance"] floating enable
  309. for_window [class="Stopwatch"] floating enable
  310. for_window [class="Synaptic"] floating enable, resize set 1200 800, move position 350 100
  311. for_window [class="Xfce4-appfinder"] floating enable
  312. for_window [class="Xfce4-dict"] floating enable
  313. for_window [class="Xfce4-settings-manager"] floating enable
  314. for_window [class="Xfce4-taskmanager"] floating enable
  315.  
  316. #for_window [instance="gimp"] floating disable
  317. for_window [instance="script-fu"] border normal
  318. for_window [instance="variety"] floating enable
  319.  
  320. for_window [title="Copying"] floating enable
  321. for_window [title="Deleting"] floating enable
  322. for_window [title="Moving"] floating enable
  323. for_window [title="^Terminator Preferences$"] floating enable
  324.  
  325. #for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  326. for_window [window_role="pop-up"] floating enable
  327. for_window [window_role="^Preferences$"] floating enable
  328. for_window [window_role="setup"] floating enable
  329.  
  330. ###############<><><><> Workspace Operations <><><><><><><><><><>###
  331.  
  332. ############ Define workspace variables
  333. bindsym $mod+1 workspace $ws1
  334. bindsym $mod+2 workspace $ws2
  335. bindsym $mod+3 workspace $ws3
  336. bindsym $mod+4 workspace $ws4
  337. bindsym $mod+5 workspace $ws5
  338. bindsym $mod+6 workspace $ws6
  339. bindsym $mod+7 workspace $ws7
  340. bindsym $mod+8 workspace $ws8
  341. bindsym $mod+9 workspace $ws9
  342. bindsym $mod+0 workspace $ws10
  343. bindsym $mod+minus workspace $ws11
  344. bindsym $mod+plus workspace $ws12
  345. bindsym $mod+bracketleft workspace $ws13
  346. bindsym $mod+bracketright workspace $ws14
  347.  
  348. ############ Move focused container to workspace
  349. bindsym $mod+Shift+1 move container to workspace $ws1
  350. bindsym $mod+Shift+2 move container to workspace $ws2
  351. bindsym $mod+Shift+3 move container to workspace $ws3
  352. bindsym $mod+Shift+4 move container to workspace $ws4
  353. bindsym $mod+Shift+5 move container to workspace $ws5
  354. bindsym $mod+Shift+6 move container to workspace $ws6
  355. bindsym $mod+Shift+7 move container to workspace $ws7
  356. bindsym $mod+Shift+8 move container to workspace $ws8
  357. bindsym $mod+Shift+9 move container to workspace $ws9
  358. bindsym $mod+Shift+0 move container to workspace $ws10
  359. bindsym $mod+Shift+minus move container to workspace $ws11
  360. bindsym $mod+Shift+plus move container to workspace $ws12
  361. bindsym $mod+Shift+bracketleft move container to workspace $ws13
  362. bindsym $mod+Shift+bracketright move container to workspace $ws14
  363.  
  364. ####################################################################
  365. ###############<><><><> Screen Layout <><><><><><><><><><><><><><>##
  366.  
  367. ############ change container layout (stacked, tabbed, toggle split)
  368. bindsym $mod+s layout stacking
  369. bindsym $mod+w layout tabbed
  370. bindsym $mod+e layout toggle split
  371.  
  372. ############ toggle tiling / floating
  373. bindsym $mod+Shift+space floating toggle
  374.  
  375. ############ change focus between tiling / floating windows
  376. bindsym $mod+space focus mode_toggle
  377.  
  378. ###############<><><><> Screen Splitting <><><><><><><><><><><><><>#
  379.  
  380. ############ split in horizontal orientation
  381. bindsym $mod+h split h
  382.  
  383. ############ split in vertical orientation
  384. bindsym $mod+v split v
  385.  
  386. ############ enter fullscreen mode for the focused container
  387. bindsym $mod+f fullscreen toggle
  388.  
  389. ############ Use Mouse+$mod to drag floating windows to their new position
  390. floating_modifier $mod
  391.  
  392. ###############<><><><> Focus <><><><><><><><><><><><><><><><><><>#
  393.  
  394. ############ change focus
  395. #bindsym $mod+j focus left
  396. #bindsym $mod+k focus down
  397. #bindsym $mod+l focus up
  398. #bindsym $mod+semicolon focus right
  399.  
  400. ############ alternatively, you can use the cursor keys:
  401. bindsym $mod+Left focus left
  402. bindsym $mod+Down focus down
  403. bindsym $mod+Up focus up
  404. bindsym $mod+Right focus right
  405.  
  406. ############ move focused window
  407. bindsym $mod+Shift+j move left
  408. bindsym $mod+Shift+k move down
  409. bindsym $mod+Shift+l move up
  410. bindsym $mod+Shift+semicolon move right
  411.  
  412. ############ alternatively, you can use the cursor keys:
  413. bindsym $mod+Shift+Left move left
  414. bindsym $mod+Shift+Down move down
  415. bindsym $mod+Shift+Up move up
  416. bindsym $mod+Shift+Right move right
  417.  
  418. ############ focus the parent container
  419. bindsym $mod+a focus parent
  420.  
  421. ############ focus the child container
  422. #bindsym $mod+d focus child
  423.  
  424. ###############<><><><> Keybindings to resize windows <><><><><><><>#
  425.  
  426. # Resizing by 1
  427. bindsym $mod+Ctrl+Right resize grow width 1 px or 1 ppt
  428. bindsym $mod+Ctrl+Up resize shrink height 1 px or 1 ppt
  429. bindsym $mod+Ctrl+Down resize grow height 1 px or 1 ppt
  430. bindsym $mod+Ctrl+Left resize shrink width 1 px or 1 ppt
  431.  
  432. # Resizing by 10
  433. bindsym $mod+Ctrl+comma resize shrink width 10 px or 10 ppt
  434. bindsym $mod+Ctrl+apostrophe resize grow height 10 px or 10 ppt
  435. bindsym $mod+Ctrl+slash resize shrink height 10 px or 10 ppt
  436. bindsym $mod+Ctrl+period resize grow width 10 px or 10 ppt
  437.  
  438. #ᰜᰜᰜᰜᰜᰜ Resize i3-Gaps ᰜᰜᰜᰜᰜᰜ#
  439. # gaps inner|outer|horizontal|vertical|top|right|bottom|left current|all set|plus|minus|toggle
  440.  
  441. bindsym control+Shift+q gaps left current plus 10
  442. bindsym control+Shift+w gaps left current minus 10
  443. bindsym control+Shift+a gaps right current plus 10
  444. bindsym control+Shift+s gaps right current minus 10
  445. bindsym control+Shift+e gaps top current plus 10
  446. bindsym control+Shift+d gaps bottom current plus 10
  447. bindsym control+Shift+r gaps top current minus 10
  448. bindsym control+Shift+f gaps bottom current minus 10
  449. bindsym control+Shift+t gaps outer current toggle 40
  450. bindsym control+Shift+g gaps outer current plus 10
  451. bindsym control+Shift+b gaps outer current minus 10
  452. bindsym control+Shift+y gaps outer all set 10
  453. bindsym control+Shift+h gaps outer all set 20
  454. bindsym control+Shift+n gaps outer all set 40
  455. bindsym control+Shift+u gaps vertical current set 20
  456. bindsym control+Shift+j gaps outer all set 40
  457. bindsym control+Shift+m gaps outer all set 60
  458. bindsym control+Shift+i gaps inner all set 5; gaps outer all set 5
  459. bindsym control+Shift+k gaps inner all set 15; gaps outer all set 15
  460. bindsym control+Shift+comma gaps inner all set 30; gaps outer all set 30
  461. bindsym control+Shift+o gaps vertical current plus 10
  462. bindsym control+Shift+l gaps vertical current minus 10
  463. bindsym control+Shift+period gaps horizontal current plus 10
  464. bindsym control+Shift+slash gaps horizontal current minus 10
  465. bindsym control+Shift+bracketleft gaps all set minus 10
  466. bindsym control+Shift+bracketright gaps all set plus 10
  467. bindsym control+Shift+semicolon gaps right current plus 10
  468. bindsym control+Shift+apostrophe gaps right current minus 10
  469.  
  470. # popup_during_fullscreen smart|ignore|leave_fullscreen
  471. popup_during_fullscreen leave_fullscreen
  472.  
  473. ################ i3 Next Gaps <><><><><><><><><><><><><><><><><><><>#
  474.  
  475. # Settings for I3 next gaps https://github.com/Airblader/i3/tree/gaps-next
  476.  
  477. #for_window [class="^.*"] pixel 4
  478. #gaps inner 4
  479. #gaps outer 4
  480. #smart_gaps on
  481. #smart_borders on
  482.  
  483. ####################################################################
  484. #################<><><><> Border control <><><><><><><><><><><><><>#
  485.  
  486. # Border control
  487. # hide_edge_borders none|vertical|horizontal|both|smart
  488. hide_edge_borders none
  489. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  490.  
  491. #changing border style
  492. bindsym $mod+t border normal
  493. bindsym $mod+y border 1pixel
  494. bindsym $mod+u border none
  495.  
  496. new_window pixel 7
  497. #new_window normal
  498. #new_window none
  499.  
  500. new_float pixel 7
  501. #new_float normal
  502. #new_float none
  503.  
  504. ####################################################################
  505. #########<><><><> Tray Icons <><><><><><><><><><><><><><><><><><><>#
  506.  
  507. # volume
  508. exec --no-startup-id pasystray
  509. exec --no-startup-id volumeicon
  510.  
  511. #########################################################################
  512. #########<><><><><><><><><><><><><><> The End <><><><><><><><><><><><>###
  513.  
Advertisement
Add Comment
Please, Sign In to add comment