poetician

i3wm Further Incremental Cleanup

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