Advertisement
poetician

i3wm Solved Bar Transparency Added active_workspace

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