Advertisement
poetician

ArcoLinux i3wm More Scratchpad and Cleanup

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