Advertisement
poetician

Linux Mint i3wm After Re-Installation | More Tweaks

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