Advertisement
poetician

i3wm Linux Mint 19.2 Update

Nov 23rd, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.42 KB | None | 0 0
  1. ### PPPPPp 0 0 0
  2. ### p p
  3. ### pppppP ooo eee TTTTT II cccc II a N N II 3333
  4. ### p O O e e t II c II A N a N II 3 W W M m m M
  5. ### p O O eeee t II c II A A N a N II 333 W w W M m M
  6. ### P O O e t II c II A a A N aN II 3 W w w W M M
  7. ### p ooo eee t II cccc II A A N N II 3333 W W M M
  8.  
  9. ###<><><><> This Cobbled Configuration Is For Linux Mint 19.2 <><><><><><>##
  10.  
  11. ###<><><><> i3 config file (version 4.14.1) <><><><><><><><><><><><><><>##
  12.  
  13. ###<><><><> Documentation https://i3wm.org/docs/userguide.html <><><>##
  14.  
  15. ####################################################################
  16. ######<><><><> Definitions | Preliminary Settings <><><><><><><>##
  17.  
  18. # $Mod = WINDOWS key or Super key or Mod4
  19. # Mod1 = ALT key
  20. # Control = CTRL key
  21. # Shift = SHIFT key
  22. # Escape = ESCAPE key
  23. # Return = ENTER or RETURN key
  24. # KP_Enter = Keypad Enter
  25. # Pause = PAUSE key
  26. # Print = PRINT key
  27. # Tab = TAB key
  28.  
  29. ############ Define the $mod key variable
  30. set $mod Mod4
  31.  
  32. ############ Set wallpaper to load at startup
  33. exec --no-startup-id feh --bg-fill ~/Pictures/Salon.jpg
  34.  
  35. ############ Font for window titles. Will also be used by the bar unless a different font
  36. # is used in the bar {} block below.
  37. font pango:Federation 13
  38.  
  39. ############ Start a terminal
  40. bindsym $mod+Return exec gnome-terminal
  41.  
  42. ############ Kill focused window
  43. bindsym $mod+q kill
  44.  
  45. ############<><><><> Restart, Reload, Exit <><><><><><><><><><><><><><>#
  46.  
  47. ############ Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  48. bindsym $mod+Shift+r restart
  49.  
  50. ############ Reload the configuration file
  51. bindsym $mod+Shift+c reload
  52.  
  53. ############ Exit i3 (logs you out of your X session)
  54. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  55.  
  56. ############ Press $mod+x to exit - options in toolbar
  57. bindsym $mod+x mode "$mode_system"
  58. bindsym control+mod1+Delete mode "$mode_system"
  59.  
  60. set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
  61. mode "$mode_system" {
  62. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  63. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  64. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  65. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  66. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  67. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  68.  
  69. # back to normal: Enter or Escape
  70. bindsym Return mode "default"
  71. bindsym Escape mode "default"
  72. }
  73.  
  74. ############<><><><> bar toggle, hide or show #<><><><><><><><><><><><>#
  75.  
  76. bindsym $mod+b bar mode toggle
  77.  
  78. ############<><><><> Scratchpad #<><><><><><><><><><><><><><><><><><><>#
  79.  
  80. ############ Make the currently focused window a scratchpad
  81. bindsym $mod+Shift+minus move scratchpad
  82. bindsym $mod+backslash scratchpad show
  83.  
  84. ############<><><><> Screen Locking #<><><><><><><><><><><><><><><><><>#
  85.  
  86. ############ Display the selected image to load with the lock screen, replacing the white screen
  87. bindsym $mod+shift+g exec i3lock -i ~/Pictures/BloodEnemies.png
  88.  
  89. ############<><><><> Application Launchers <><><><><><><><><><><><><><>#
  90.  
  91. ############ Rofi (Prefered Mode)
  92. bindsym $mod+g exec rofi -show drun -theme arthur -lines 15 -columns 4 -eh 2 -width 70 -padding 40 -opacity "60" -bw 0 -bc "#033317" -bg #a16b1c"" -fg "#02180b" -hlbg "#ffefcc" -font "Federation 12" -hlfg "#9575cd"
  93.  
  94. ############ Rofi (Window Mode)
  95. bindsym $mod+F11 exec --no-startup-id rofi -show-icons -show window -font "Federation 10"
  96.  
  97. ############ Rofi (Combi Mode)
  98. bindsym $mod+F12 exec --no-startup-id rofi -show combi -lines 33
  99.  
  100. ############ Dmenu (Enabled Redundantly)
  101. #bindsym $mod+d exec dmenu_run
  102. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  103.  
  104. ############ Rofi Clipboard Manager (Requires investigation)
  105. #rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
  106.  
  107. ########################################################################
  108. ############<><><><> Startbar <><><><><><><><><><><><><><><><><><><><>##
  109.  
  110. bar {
  111.  
  112. # height 25
  113. workspace_buttons yes
  114. font pango: Bauhaus 12
  115.  
  116. position top
  117. #position bottom
  118.  
  119. #system icons
  120. #tray_output none
  121. #tray_output $firstMonitor
  122. #tray_output $secondMonitor
  123.  
  124. # OPTION 1 : i3status
  125.  
  126. # type status_command i3status without the config file and
  127. # you will get the standard i3status bar
  128. # Second one is the standard statusbar with my personal settings
  129.  
  130. #status_command i3status
  131. #status_command i3status -c ~/.config/i3/i3status.conf
  132.  
  133. # OPTION 2 : i3blocks
  134.  
  135. # https://github.com/vivien/i3blocks
  136. # another way to provide text in the statusbar
  137. # put hastag in front if not installed
  138.  
  139. #status_command i3blocks
  140. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  141. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  142. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  143. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  144.  
  145. # OPTION 3 : conky
  146.  
  147. # You can also replace the istatus bar with a conky
  148. # start-conky-i3statusbar.sh is started and conky will follow
  149. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  150. # conky configuration is in conky-i3statusbar
  151.  
  152. status_command ~/.config/i3/start-conky-i3statusbar.sh
  153.  
  154. # OPTION 4 : polybar
  155.  
  156. # polybar is launched elsewhere - search for the word
  157. # from the opening of the "bar {...}" till the end has to go or hashtagged out
  158. # in order for the system trayicons to show up in polybar
  159.  
  160. colors {
  161. background #281948
  162. statusline #f4cd52
  163. separator #e69722
  164. # border backgr. text
  165. focused_workspace #6c71c4 #6c71c4 #281948
  166. active_workspace #6c71c4 #6c71c4 #281948
  167. inactive_workspace #281948 #281948 #f4cd52
  168. urgent_workspace #281948 #11093e #a16b1c
  169. }
  170.  
  171. }
  172.  
  173. # class border backgr. text indicator
  174. client.placeholder #f4cd52 #281948 #242424
  175. client.background #f4cd52 #281948 #242424
  176. client.unfocused #033317 #281948 #f4cd52 #ffffff
  177. client.focused #033317 #6c71c4 #281948 #222222
  178. client.focused_inactive #222222 #6c71c4 #f4cd52 #222222
  179. client.urgent #11093e #8446d4 #a16b1c #11093e
  180.  
  181. ###### Colour Picker
  182.  
  183. # #222222
  184. # #ffffff #a9a9a9 #c2c2b8
  185. # #760b0b #900000
  186. # #089635 #104022 #054d23 #033317 #02180b
  187. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4
  188. # #a16b1c #e69722 #FFAF00 #f4cd52
  189.  
  190. ####################################################################
  191. #########<><><><> Workspace Settings <><><><><><><><><><><><><><><>#
  192.  
  193. set $ws1 "1 "
  194. set $ws2 "2 ο„  α³€"
  195. set $ws3 "3 Ꝏ"
  196. #set $ws3 "3 🎜 🎞"
  197. set $ws4 "4 "
  198. set $ws5 "5 α›―"
  199. #set $ws5 "5 πŸ“½"
  200. set $ws6 "6 "
  201. set $ws7 "7 "
  202. set $ws8 "8 ο‚­"
  203. set $ws9 "9 "
  204. set $ws10 "10 ꗝ"
  205.  
  206. ############ For apps to load in designated workspaces ###
  207.  
  208. assign [class="libreoffice"] "1 "
  209. assign [class="Gucharmap"] "1 "
  210. assign [class="code"] "2 ο„  α³€"
  211. assign [class="Nemo"] "2 ο„  α³€"
  212. assign [class="Rhythmbox"] "3 Ꝏ"
  213. assign [class="vlc"] "3 Ꝏ"
  214. #assign [class="Rhythmbox"] "3 🎜 🎞"
  215. #assign [class="vlc"] "3 🎜 🎞"
  216. assign [class="Firefox"] "4 "
  217. #assign [class="Thunderbird"] "4 "
  218. assign [class="kdenlive"] "5 α›―"
  219. assign [class="GNU Image Manipulation Program"] "6 "
  220. assign [class="Google Earth Pro"] "7 "
  221. assign [class="Cherrytree"] "8 ο‚­"
  222. assign [class="stacer"] "8 ο‚­"
  223. assign [class="Meld"] "9 "
  224.  
  225. ############ The apps that load at startup ###
  226.  
  227. exec mintupdate.py
  228. exec_always compton -c
  229. exec cherrytree
  230. exec firefox
  231. #exec gimp
  232. #exec Google Earth Pro
  233. exec gucharmap
  234. #exec kdenlive
  235. exec libreoffice
  236. exec megasync
  237. exec meld
  238. exec nemo
  239. exec parcellite
  240. exec redshift
  241. #exec rhythmbox
  242. exec vlc
  243. exec workrave
  244. exec screenkey
  245. exec shutter
  246. exec stacer
  247. #exec Thunderbird
  248.  
  249. ####################################################################
  250. ###############<><><><><> Workspace Relate Settings <><><><><><><>##
  251.  
  252. ###############<><><><> Floating or tiled <><><><><><><><><><><><>##
  253. #floating enabled from some programs - find with xprop
  254.  
  255. for_window [class="Bleachbit"] floating disable
  256. for_window [class="Brasero"] floating disable
  257. for_window [class="Cherrytree"] floating disable
  258. for_window [class="Galculator"] floating enable
  259. for_window [class="Gnome-disks"] floating disable
  260. for_window [class="^Gnome-font-viewer$"] floating enable
  261. for_window [class="Gnome-terminal"] floating enable
  262. for_window [class="^Gpick$"] floating enable
  263. for_window [class="Gucharmap"] floating disable
  264. for_window [class="Hexchat"] floating disable
  265. for_window [class="Imagewriter"] floating enable
  266. for_window [class="Font-manager"] floating enable
  267. #for_window [class="qt5ct|Lxappearance] floating enable
  268. for_window [class="Nitrogen"] floating disable
  269. for_window [class="Pavucontrol"] floating disable
  270. for_window [class="Peek"] floating enable
  271. for_window [class="stacer"] floating disable
  272. for_window [class="System-config-printer.py"] floating enable
  273. for_window [class="Termite"] floating enable
  274. for_window [class="Unetbootin.elf"] floating enable
  275. for_window [class="Usb-creator-gtk"] floating enable
  276. for_window [class="^Vlc$"] floating disable
  277. for_window [class="Xfce4-appfinder"] floating enable
  278. for_window [class="Xfce4-settings-manager"] floating disable
  279. for_window [class="Xfce4-taskmanager"] floating enable
  280.  
  281. #for_window [instance="gimp"] floating disable
  282. for_window [instance="script-fu"] border normal
  283. for_window [instance="variety"] floating disable
  284.  
  285. for_window [title="Copying"] floating enable
  286. for_window [title="Deleting"] floating enable
  287. for_window [title="Moving"] floating enable
  288. for_window [title="^Terminator Preferences$"] floating enable
  289.  
  290. #for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  291. for_window [window_role="pop-up"] floating enable
  292. for_window [window_role="^Preferences$"] floating enable
  293. for_window [window_role="setup"] floating enable
  294.  
  295. ###############<><><><> Workspace Operations <><><><><><><><><><>###
  296.  
  297. ############ Define workspace variables
  298. bindsym $mod+1 workspace $ws1
  299. bindsym $mod+2 workspace $ws2
  300. bindsym $mod+3 workspace $ws3
  301. bindsym $mod+4 workspace $ws4
  302. bindsym $mod+5 workspace $ws5
  303. bindsym $mod+6 workspace $ws6
  304. bindsym $mod+7 workspace $ws7
  305. bindsym $mod+8 workspace $ws8
  306. bindsym $mod+9 workspace $ws9
  307. bindsym $mod+0 workspace $ws10
  308.  
  309. ############ Move focused container to workspace
  310. bindsym $mod+Shift+1 move container to workspace $ws1
  311. bindsym $mod+Shift+2 move container to workspace $ws2
  312. bindsym $mod+Shift+3 move container to workspace $ws3
  313. bindsym $mod+Shift+4 move container to workspace $ws4
  314. bindsym $mod+Shift+5 move container to workspace $ws5
  315. bindsym $mod+Shift+6 move container to workspace $ws6
  316. bindsym $mod+Shift+7 move container to workspace $ws7
  317. bindsym $mod+Shift+8 move container to workspace $ws8
  318. bindsym $mod+Shift+9 move container to workspace $ws9
  319. bindsym $mod+Shift+0 move container to workspace $ws10
  320.  
  321. ###############<><><><> Workspace related keybinding settings <><>##
  322.  
  323. #workspace 1 related
  324. bindsym $mod+F1 exec --no-startup-id firefox
  325.  
  326. #workspace 2 related
  327. bindsym $mod+F2 exec --no-startup-id code;focus
  328. bindsym $mod+F8 exec --no-startup-id Nemo;focus
  329. bindsym $mod+Shift+Return exec --no-startup-id code;focus
  330.  
  331. #Workspace 3 related
  332. bindsym $mod+F3 exec --nostartup-id Rhythmbox
  333. bindsym $mod+F7 exec --nostartup-id vlc
  334.  
  335. #workspace 4 related
  336. bindsym $mod+F4 exec --no-startup-id libreoffice;focus
  337.  
  338. #workspace 5 related
  339. bindsym $mod+F5 exec --no-startup-id kdenlive
  340.  
  341. #workspace 6 related
  342. bindsym $mod+F6 exec --no-startup-id gimp;focus
  343.  
  344. #workspace 7 related
  345. #bindsym $mod+F7 exec --no-startup-id google earth pro;focus
  346.  
  347. #workspace 8 related
  348. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  349.  
  350. #workspace 9 related
  351. bindsym $mod+F9 exec --no-startup-id meld;focus
  352. bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  353.  
  354. #workspace 10 related
  355. bindsym $mod+F10 exec --no-startup-id stacer;focus
  356. bindsym control+mod1+s exec --no-startup-id stacer;focus
  357.  
  358. ####################################################################
  359. ###############<><><><> Screen Layout <><><><><><><><><><><><><><>##
  360.  
  361. ############ change container layout (stacked, tabbed, toggle split)
  362. bindsym $mod+s layout stacking
  363. bindsym $mod+w layout tabbed
  364. bindsym $mod+e layout toggle split
  365.  
  366. ############ toggle tiling / floating
  367. bindsym $mod+Shift+space floating toggle
  368.  
  369. ############ change focus between tiling / floating windows
  370. bindsym $mod+space focus mode_toggle
  371.  
  372. ###############<><><><> Screen Splitting <><><><><><><><><><><><><>#
  373.  
  374. ############ split in horizontal orientation
  375. bindsym $mod+h split h
  376.  
  377. ############ split in vertical orientation
  378. bindsym $mod+v split v
  379.  
  380. ############ enter fullscreen mode for the focused container
  381. bindsym $mod+f fullscreen toggle
  382.  
  383. ############ Use Mouse+$mod to drag floating windows to their new position
  384. floating_modifier $mod
  385.  
  386. ###############<><><><> Focus <><><><><><><><><><><><><><><><><><>#
  387.  
  388. ############ change focus
  389. bindsym $mod+j focus left
  390. bindsym $mod+k focus down
  391. bindsym $mod+l focus up
  392. bindsym $mod+semicolon focus right
  393.  
  394. ############ alternatively, you can use the cursor keys:
  395. bindsym $mod+Left focus left
  396. bindsym $mod+Down focus down
  397. bindsym $mod+Up focus up
  398. bindsym $mod+Right focus right
  399.  
  400. ############ move focused window
  401. bindsym $mod+Shift+j move left
  402. bindsym $mod+Shift+k move down
  403. bindsym $mod+Shift+l move up
  404. bindsym $mod+Shift+semicolon move right
  405.  
  406. ############ alternatively, you can use the cursor keys:
  407. bindsym $mod+Shift+Left move left
  408. bindsym $mod+Shift+Down move down
  409. bindsym $mod+Shift+Up move up
  410. bindsym $mod+Shift+Right move right
  411.  
  412. ############ focus the parent container
  413. bindsym $mod+a focus parent
  414.  
  415. ############ focus the child container
  416. #bindsym $mod+d focus child
  417.  
  418. ###############<><><><> Keybindings to resize windows <><><><><><><>#
  419.  
  420. # resize window (you can also use the mouse for that)
  421.  
  422. bindsym $mod+r mode "resize"
  423.  
  424. mode "resize" {
  425. # These bindings trigger as soon as you enter resize mode
  426.  
  427. # Pressing left will shrink the window’s width.
  428. # Pressing right will grow the window’s width.
  429. # Pressing up will shrink the window’s height.
  430. # Pressing down will grow the window’s height.
  431. bindsym j resize shrink width 5 px or 5 ppt
  432. bindsym k resize grow height 5 px or 5 ppt
  433. bindsym l resize shrink height 5 px or 5 ppt
  434. bindsym semicolon resize grow width 5 px or 5 ppt
  435.  
  436. # same bindings, but for the arrow keys
  437. bindsym Left resize shrink width 5 px or 5 ppt
  438. bindsym Down resize grow height 5 px or 5 ppt
  439. bindsym Up resize shrink height 5 px or 5 ppt
  440. bindsym Right resize grow width 5 px or 5 ppt
  441.  
  442. # back to normal: Enter or Escape
  443. bindsym Return mode "default"
  444. bindsym Escape mode "default"
  445. }
  446.  
  447. ####################################################################
  448. #################<><><><> Border control <><><><><><><><><><><><><>#
  449.  
  450. # Border control
  451. hide_edge_borders both
  452. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  453.  
  454. #changing border style
  455. bindsym $mod+t border normal
  456. bindsym $mod+y border 1pixel
  457. bindsym $mod+u border none
  458.  
  459. #new_window pixel 1
  460. new_window normal
  461. #new_window none
  462.  
  463. #new_float pixel 1
  464. new_float normal
  465. #new_float none
  466.  
  467. ####################################################################
  468. #########<><><><> Tray Icons <><><><><><><><><><><><><><><><><><><>#
  469.  
  470. # volume
  471. exec --no-startup-id pasystray
  472. exec --no-startup-id volumeicon
  473.  
  474. ####################################################################
  475. #########<><><><> Media <><><><><><><><><><><><><><><><><><><<><><>#
  476.  
  477. # Pulse Audio controls
  478. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  479. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  480. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  481.  
  482. # Media player controls
  483. bindsym XF86AudioPlay exec playerctl play
  484. bindsym XF86AudioPause exec playerctl pause
  485. bindsym XF86AudioNext exec playerctl next
  486. bindsym XF86AudioPrev exec playerctl previous
  487.  
  488. ####################################################################
  489. ######### Archival ######
  490.  
  491. # Start i3bar to display a workspace bar (and system information i3status
  492. # finds out, if available)
  493.  
  494. #bar {
  495. # mode hide
  496. # hidden_state hide
  497. # modifier Mod1
  498. # position top
  499. # #position bottom
  500. # #i3bar_command i3bar --transparency
  501. # colors {
  502. # background $#a16b1c
  503. # statusline $#f2ea9b
  504. # separator $#f4cd52
  505. ## Border Background Text
  506. # focused_workspace #054d23 #033317 #f4cd52
  507. # active_workspace #089635 #5f676a #ffffff
  508. # inactive_workspace #333333 #02180b #f4cd52
  509. # urgent_workspace #000000 #f4cd52 #8446d4
  510. # binding_mode #2f343a #900000 #ffffff
  511. # }
  512. # status_command i3blocks -c ~/.config/i3/conky-i3status.conf
  513. #}
  514. #
  515. # Widow Colours
  516. # Border Background Text Indicator
  517. # client.focused #033317 #033317 #c0b7f9 #c0b7f9
  518. # client.focused_inactive #135853 #135853 #f4cd52 #c0b7f9
  519. # client.unfocused #02180b #02180b #f4cd52 #c0b7f9
  520. # client.urgent #f4cd52 #a16b1c #101218 #c0b7f9
  521.  
  522. #########<><><><> Colour Picker <><><><><><><><><><><><><><><><><><><>###
  523.  
  524. # #760b0b
  525. # #3e51db #261496
  526. # #a16b1c #a16b1c
  527. # #089635 #101218 #71a304
  528. # #104022 #054d23 #02180b
  529. # #63ba86 #033317
  530. # #d1d4e0 #c2c2b8 #c0b7f9 #8446d4 #561b08
  531. # #f4cd52 #ffefcc #f2ea9b #eae6be
  532.  
  533. #########################################################################
  534. #########<><><><><><><><><><><><><><> The End <><><><><><><><><><><><>###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement