poetician

i3wm | Next tweak: move position for scratchpad apps

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