Advertisement
poetician

ArcoLinuxB Xtended i3wm [Scratchpad Updated]

Jan 20th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.25 KB | None | 0 0
  1. # PPPPPp
  2. # p p ii ii ii
  3. # p P oOOo eeee TTTTTTT cccc 3333
  4. # pppppP O O e e t II c II A Nn N II 3
  5. # P O O e e t II c II A A N n N II 3 W W M M
  6. # p O O eeeee t II c II A A N n N II 333 W W M m m M
  7. # P O O e t II c II A aAa A N n N II 3 W w W M m m M
  8. # P O O e t II c II A A N n N II 3 W w w W M m M
  9. # p OooO eeee t II cccc II A A N nN II 3333 W W M M
  10. ###########
  11. # https://thenextpoetician.blogspot.com/ ###########
  12. # https://pastebin.com/u/poetician ###########
  13. # https://www.youtube.com/channel/UCmP5yzI3bT4EP5lyitpor8w ###########
  14. ###########
  15. # Most of the work was done by Erik Dubois: ###########
  16. # https://arcolinux.info/ ###########
  17. # https://github.com/arcolinux ###########
  18. # https://www.youtube.com/channel/UCJdmdUp5BrsWsYVQUylCMLg ###########
  19. ###########
  20. ########### ###########
  21. #######################################################################################################
  22. ########### Preliminary Settings ###########
  23. #####################################################################################################
  24. ############
  25. ########### Key Definitions ############
  26.  
  27. # $Mod = WINDOWS / Super key / Mod4
  28. # Mod1 = ALT key
  29. # Control = CTRL key
  30. # Shift = SHIFT key
  31. # Escape = ESCAPE key
  32. # Return = ENTER or RETURN key
  33. # KP_Enter = Keypad Enter
  34. # Pause = PAUSE key
  35. # Print = PRINT key
  36. # Tab = TAB key
  37.  
  38. ########### Define the $mod Variable Key ###########
  39.  
  40. set $mod Mod4
  41. #set $mod Mod1
  42.  
  43. ########### Define the Movement Keys ###########
  44.  
  45. set $up l
  46. set $down k
  47. set $left j
  48. set $right semicolon
  49.  
  50. ########### Reload Changed Configuration ###########
  51.  
  52. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  53. bindsym $mod+Shift+r restart
  54.  
  55. # reload the configuration file
  56. bindsym $mod+Shift+c reload
  57.  
  58. ########### Stopping Applications ###########
  59.  
  60. # kill focused window
  61. bindsym $mod+q kill
  62.  
  63. # Xkill focused winddow
  64. bindsym --release $mod+Escape exec xkill
  65.  
  66. ########### How to Exit, Lockscreen, Etc... ###########
  67.  
  68. # Press $mod and X to exit - options appear in the toolbar
  69. bindsym $mod+X mode "$mode_system"
  70. bindsym control+mod1+Delete mode "$mode_system"
  71.  
  72. set $mode_system System (k) lock, (l) logout, (r) reboot, (s) shutdown
  73. mode "$mode_system" {
  74. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  75. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  76. # bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  77. # bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  78. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  79. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  80.  
  81. # back to normal: Enter or Escape
  82. bindsym Return mode "default"
  83. bindsym Escape mode "default"
  84. }
  85.  
  86. ########### Bar Toggle ###########
  87.  
  88. # bar toggle, hide or show
  89. bindsym $mod+b bar mode invisible
  90. bindsym $mod+m bar mode dock
  91.  
  92. ########### Scratchpad ###########
  93.  
  94. # move the currently focused window to the scratchpad
  95. bindsym Mod1+Shift+minus move scratchpad
  96.  
  97. # Show the next scratchpad window or hide the focused scratchpad window.
  98. # If there are multiple scratchpad windows, this command cycles through them.
  99. bindsym Mod1+minus scratchpad show
  100.  
  101. ########### Screenshots ############
  102.  
  103. bindsym Print exec --no-startup-id scrot '_-%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  104. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  105.  
  106. ########### Title Font and Alignment ###########
  107.  
  108. # Font for window titles. Will also be used by the bar unless a different font
  109. # is used in the bar {} block below.
  110. font pango: Federation 13
  111. title_align center
  112.  
  113. ########### Wallpaper Settings ###########
  114.  
  115. # Sets wallpaper to load at startup
  116. #exec --no-startup-id feh --bg-fill ~/Pictures/Salon.jpg
  117. exec --no-startup-id variety
  118.  
  119. ########################################################################
  120. ########### Bar and Workspace Appearance ###########
  121. ########################################################################
  122.  
  123. bar {
  124.  
  125. height 33
  126. workspace_buttons yes
  127. font pango:Bahaus 14
  128.  
  129. i3bar_command i3bar --transparency
  130.  
  131. position top
  132. #position bottom
  133.  
  134. #system icons
  135. #tray_output none
  136.  
  137. # OPTION 1 : i3status
  138.  
  139. # type status_command i3status without the config file and
  140. # you will get the standard i3status bar
  141. # Second one is the standard statusbar with my personal settings
  142.  
  143. #status_command i3status
  144. #status_command i3status -c ~/.config/i3/i3status.conf
  145.  
  146. # OPTION 2 : i3blocks
  147.  
  148. # https://github.com/vivien/i3blocks
  149. # another way to provide text in the statusbar
  150. # put hastag in front if not installed
  151.  
  152. #status_command i3blocks
  153. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  154. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  155. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  156. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  157.  
  158. # OPTION 3 : conky
  159.  
  160. # You can also replace the istatus bar with a conky
  161. # start-conky-i3statusbar.sh is started and conky will follow
  162. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  163. # conky configuration is in conky-i3statusbar
  164.  
  165. status_command ~/.config/i3/start-conky-i3statusbar.sh
  166.  
  167. # OPTION 4 : polybar
  168.  
  169. # polybar is launched elsewhere - search for the word
  170. # from the opening of the "bar {...}" till the end has to go or hashtagged out
  171. # in order for the system trayicons to show up in polybar
  172.  
  173. colors {
  174. background #4D281948
  175. statusline #4D1f3d0c
  176. separator #4D1f3d0c
  177. # border backgr. text
  178. active_workspace #4D6c71c4 #4D6c71c4 #281948
  179. inactive_workspace #4D281948 #4D281948 #281948
  180. urgent_workspace #281948 #11093e #f4cd52
  181. }
  182.  
  183. }
  184.  
  185. #class border backgr. text indicator child-border
  186. client.placeholder #f4cd52 #281948 #242424 #8446d4 #281948
  187. client.background #f4cd52 #281948 #242424 #8446d4 #281948
  188. client.unfocused #281948 #281948 #f4cd52 #8446d4 #281948
  189. client.focused #6c71c4 #6c71c4 #281948 #11093e #6c71c4
  190. client.focused_inactive #281948 #6c71c4 #f4cd52 #11093e #a16b1c
  191. client.urgent #11093e #8446d4 #a16b1c #11093e #8446d4
  192.  
  193. ########### Colour Picker ###########
  194.  
  195. # #222222
  196. # #ffffff #a9a9a9 #c2c2b8
  197. # #760b0b #900000
  198. # #089635 #104022 #054d23 #033317 #02180b
  199. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4
  200. # #a16b1c #FFAF00 #e69722 #f4cd52
  201. # #cd7f32 Bronze
  202. # #c0c0c0 Silver
  203. # #d4af37 Gold
  204. # #899a99 Pewter
  205. # #dc143c Crimson
  206. # #e34234 Vermillion
  207. # #dda0ad Plum
  208. # #568203 Avocado
  209. # #2e5e5b Pine Green
  210. # #1f3d0c Deep Forest Green
  211. # #4f433f Tudor Brown
  212.  
  213. # Transparency values
  214. # 100% — FF
  215. # 95% — F2
  216. # 90% — E6
  217. # 85% — D9
  218. # 80% — CC
  219. # 75% — BF
  220. # 70% — B3
  221. # 65% — A6
  222. # 60% — 99
  223. # 55% — 8C
  224. # 50% — 80
  225. # 45% — 73
  226. # 40% — 66
  227. # 35% — 59
  228. # 30% — 4D
  229. # 25% — 40
  230. # 20% — 33
  231. # 15% — 26
  232. # 10% — 1A
  233. # 5% — 0D
  234. # 0% — 00
  235.  
  236. ############################################################################
  237. ########### Workspace Names and Assignments ############
  238. ############################################################################
  239.  
  240. ########### Workspaces named with variables avoids repetition ###########
  241.  
  242. set $ws1 "1 "
  243. set $ws2 "2 𑢰 ꗇ"
  244. #set $ws3 "3 🎞 🎜"
  245. set $ws3 "3 ꪜ ⴽ"
  246. set $ws4 "4 𑣦"
  247. #set $ws5 "5 📽"
  248. set $ws5 "5 𞢐"
  249. set $ws7 "7 "
  250. set $ws8 "8 "
  251. set $ws9 "9 𑣣"
  252. set $ws10 "10 𖭧"
  253.  
  254. ########### Loading Applications in Designated Workspaces ###########
  255.  
  256. assign [class="libreoffice"] $ws4
  257. assign [class="Gucharmap"] $ws4
  258. assign [class="Nemo"] $ws2
  259. assign [class="atom"] $ws2
  260. assign [class="Rhythmbox"] $ws3
  261. assign [class="vlc"] $ws3
  262. assign [class="firefox"] $ws1
  263. assign [class="kdenlive"] $ws5
  264. assign [class="GNU Image Manipulation Program"] $ws6
  265. assign [class="Google Earth Pro"] $ws7
  266. assign [class="Cherrytree"] $ws8
  267. assign [class="stacer"] $ws8
  268. assign [class="Meld"] $ws9
  269. assign [class="Notepadqq"] $ws10
  270. assign [class="Gufw.py"] $ws10
  271. assign [class="Timeshift-gtk"] $ws10
  272. assign [class="Transmission-git"] $ws10
  273. assign [class="Xscreensaver-demo"] $ws10
  274.  
  275. ########### Loading Applications at Startup ###########
  276.  
  277. ########### Background Applications ###########
  278.  
  279. exec_always compton -c
  280. exec --no-startup-id mousetrap -t 1
  281. exec_always xscreensaver
  282. exec --no-startup-id xscreensaver-demo
  283. # exec nitrogen --restore
  284.  
  285. ########### Typical Applications ###########
  286.  
  287. # exec atom (doesn't load into assigned $ws)
  288. exec cherrytree
  289. exec firefox
  290. # exec gimp (doesn't load into assigned $ws)
  291. # exec google-earth-pro
  292. # exec gucharmap
  293. # exec kdenlive
  294. exec libreoffice
  295. # exec meld
  296. exec nemo
  297. # exec rhythmbox
  298. # exec stacer
  299. exec transmission-git
  300. exec vlc
  301.  
  302. ########### Tray Applications ###########
  303.  
  304. # Applications that are not installed will not start
  305. # you may see a wheel - hashtag out things you do not want
  306.  
  307. # Authentication dialog
  308. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  309.  
  310. # Dropbox
  311. exec --no-startup-id dropbox start
  312.  
  313. # Megasync
  314. exec megasync
  315.  
  316. # My-Weather-Indicator
  317. exec my-weather-indicator
  318.  
  319. # Network
  320. exec --no-startup-id nm-applet
  321.  
  322. # Num Lock activated
  323. exec_always --no-startup-id numlockx on
  324.  
  325. # Parcellite
  326. exec parcellite
  327.  
  328. # Redshift
  329. exec redshift
  330.  
  331. # Screenkey
  332. # exec screenkey
  333.  
  334. # Updater
  335. exec --no-startup-id pamac-tray
  336.  
  337. # Volume
  338. #exec --no-startup-id pasystray
  339. exec --no-startup-id volumeicon
  340.  
  341. # Workrave
  342. exec workrave
  343.  
  344. # Clipman
  345. # exec --no-startup-id xfce4-clipman
  346.  
  347. # Conky
  348. # exec --no-startup-id conky -c ~/.config/i3/system-overview
  349.  
  350. # Polybar
  351. #exec_always --no-startup-id ~/.config/polybar/launch.sh &
  352.  
  353. ###########################################################################
  354. ########### Applications Keyboard Shortcuts ###########
  355. ###########################################################################
  356.  
  357. ########### 6 Menu Options ###########
  358.  
  359. # Start Rofi drun Mode
  360. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  361.  
  362. # Start Rofi Combi Mode
  363. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  364.  
  365. # Start Rofi Window Mode
  366. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons
  367.  
  368. # Start DMenu from .desktop applications only
  369. bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
  370.  
  371. # Start Gmrun
  372. bindsym mod1+F2 exec --no-startup-id gmrun
  373.  
  374. # Start xfce-appfinder
  375. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  376.  
  377. ########### Not Workspace Related ###########
  378.  
  379. # Terminal
  380. bindsym $mod+Return exec --no-startup-id termite;focus
  381. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  382. bindsym control+mod1+t exec --no-startup-id xfce4-terminal;focus
  383. bindsym control+mod1+Return exec --no-startup-id tilix;focus
  384. bindsym control+mod1+KP_Enter exec --no-startup-id termite;focus
  385.  
  386. # System monitor
  387. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  388.  
  389. # Settings
  390. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  391.  
  392. # Catfish
  393. bindsym control+mod1+c exec --no-startup-id catfish;focus
  394.  
  395. # Rofi theme selector
  396. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  397.  
  398. # Htop
  399. # arcolinux conflict
  400. # bindsym $mod+h exec --no-startup-id htop;focus
  401.  
  402. # Pavucontrol
  403. # arcolinux conflict
  404. #bindsym control+mod1+u exec --no-startup-id pavucontrol
  405.  
  406. # Start xfce-appfinder
  407. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  408.  
  409. # Pamac-manager
  410. bindsym control+mod1+p exec --no-startup-id pamac-manager
  411.  
  412. ########### Workspace Related ###########
  413.  
  414. # Workspace 1 related
  415. bindsym $mod+F1 exec --no-startup-id firefox;focus
  416.  
  417. # Workspace 2 related
  418. bindsym $mod+F2 exec --no-startup-id atom;focus
  419. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  420.  
  421. # Workspace 3 related
  422. bindsym $mod+F3 exec --nostartup-id Rhythmbox
  423. bindsym $mod+F8 exec --nostartup-id vlc
  424.  
  425. # Workspace 4 related
  426. bindsym $mod+F4 exec --no-startup-id libreoffice
  427.  
  428. # Workspace 5 related
  429. bindsym $mod+F5 exec --no-startup-id kdenlive
  430.  
  431. # Workspace 6 related
  432. bindsym $mod+F6 exec --no-startup-id gimp;focus
  433.  
  434. # Workspace 7 related
  435. bindsym $mod+F7 exec --no-startup-id google-earth-pro;focus
  436.  
  437. # Workspace 8 related
  438. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  439. bindsym $mod+F10 exec --no-startup-id Cherrytree;focus
  440. bindsym control+mod1+s exec --no-startup-id stacer;focus
  441.  
  442. # Workspace 9 related
  443. bindsym $mod+F9 exec --no-startup-id meld;focus
  444. bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  445.  
  446. # Workspace 10 related
  447.  
  448. #############################################################
  449. ########### Floating or Tiled ###########
  450. #############################################################
  451.  
  452. ########### Floating enabled / disabled; find class name with xprop; border option ###########
  453.  
  454. for_window [class="Bleachbit"] floating disable
  455. for_window [class="Brasero"] floating disable
  456. for_window [class="Cherrytree"] floating disable border pixel 8
  457. for_window [class="File-roller"] floating enable
  458. for_window [class="Galculator"] floating enable
  459. for_window [class="Gnome-disks"] floating disable
  460. for_window [class="^Gnome-font-viewer$"] floating enable
  461. for_window [class="^Gpick$"] floating enable
  462. for_window [class="Gucharmap"] floating enable
  463. for_window [class="Gufw.py"] floating disable
  464. for_window [class="Hexchat"] floating disable
  465. for_window [class="Imagewriter"] floating enable
  466. for_window [class="Font-manager"] floating enable
  467. # for_window [class="qt5ct|Lxappearance] floating disable
  468. # for_window [class="Nitrogen"] floating enable
  469. # for_window [class="Pavucontrol"] floating enable
  470. # for_window [class="Peek"] floating disable
  471. for_window [class="Hefftor_SkelApp.py"] floating enable
  472. for_window [class="stacer"] floating enable
  473. for_window [class="System-config-printer.py"] floating enable
  474. #for_window [class="Termite"] floating enable
  475. for_window [class="Timeshift-gtk"] floating disable
  476. for_window [class="Tilix"] floating enable border pixel 24
  477. for_window [class="Unetbootin.elf"] floating enable
  478. for_window [class="Usb-creator-gtk"] floating enable
  479. for_window [class="^Vlc$"] floating enable
  480. for_window [class="Xfce4-appfinder"] floating enable
  481. for_window [class="Xfce4-settings-manager"] floating disable
  482. for_window [class="Xfce4-taskmanager"] floating enable
  483. for_window [class="Xscreensaver-demo"] floating disble
  484.  
  485. for_window [class="Termite"] move scratchpad
  486. #for_window [class="Gufw.py"] move absolute position center
  487. #for_window [class="Gufw.py"] move scratchpad
  488. #for_window [class="Timeshift-gtk"] move scratchpad
  489. #for_window [class="Transmission"] move scratchpad
  490. #for_window [class="Xscreensaver-demo"] move scratchpad
  491.  
  492. for_window [instance="gimp"] floating disable
  493. for_window [instance="script-fu"] border normal
  494. for_window [instance="variety"] floating disable
  495.  
  496. for_window [title="Copying"] floating enable
  497. for_window [title="Deleting"] floating enable
  498. for_window [title="Moving"] floating enable
  499. for_window [title="^Terminator Preferences$"] floating enable
  500.  
  501. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  502. for_window [window_role="pop-up"] floating enable
  503. for_window [window_role="^Preferences$"] floating enable
  504. for_window [window_role="setup"] floating enable
  505.  
  506. ########### Application Specific Border Settings ###########
  507.  
  508. #for_window [class="Cherrytree"] border pixel 8
  509. #for_window [class="stacer"] border pixel 6
  510. #for_window [cleass="Imagewriter"] border pixel 12
  511. #for_window [class="Termite"] border pixel 12
  512. #for_window [class="vlc"] border pixel 16
  513.  
  514. ##########################################################################
  515. ########### Workspace Switching Functions ############
  516. ##########################################################################
  517.  
  518. # switch to workspace
  519. bindsym $mod+1 workspace $ws1
  520. bindsym $mod+2 workspace $ws2
  521. bindsym $mod+3 workspace $ws3
  522. bindsym $mod+4 workspace $ws4
  523. bindsym $mod+5 workspace $ws5
  524. bindsym $mod+6 workspace $ws6
  525. bindsym $mod+7 workspace $ws7
  526. bindsym $mod+8 workspace $ws8
  527. bindsym $mod+9 workspace $ws9
  528. bindsym $mod+0 workspace $ws10
  529.  
  530. # move focused container to workspace
  531. bindsym $mod+Shift+1 move container to workspace $ws1
  532. bindsym $mod+Shift+2 move container to workspace $ws2
  533. bindsym $mod+Shift+3 move container to workspace $ws3
  534. bindsym $mod+Shift+4 move container to workspace $ws4
  535. bindsym $mod+Shift+5 move container to workspace $ws5
  536. bindsym $mod+Shift+6 move container to workspace $ws6
  537. bindsym $mod+Shift+7 move container to workspace $ws7
  538. bindsym $mod+Shift+8 move container to workspace $ws8
  539. bindsym $mod+Shift+9 move container to workspace $ws9
  540. bindsym $mod+Shift+0 move container to workspace $ws10
  541.  
  542. #################################################################
  543. ########### Navigating Containers ###########
  544. #################################################################
  545.  
  546. # Use Mouse+$mod to drag floating windows to their new position
  547. floating_modifier $mod
  548.  
  549. # toggle tiling / floating
  550. bindsym $mod+Shift+space floating toggle
  551.  
  552. # change focus
  553. bindsym $mod+$left focus left
  554. bindsym $mod+$down focus down
  555. bindsym $mod+$up focus up
  556. bindsym $mod+$right focus right
  557.  
  558. # alternatively, you can use the cursor keys:
  559. bindsym $mod+Left focus left
  560. bindsym $mod+Down focus down
  561. bindsym $mod+Up focus up
  562. bindsym $mod+Right focus right
  563.  
  564. # move focused window
  565. bindsym $mod+Shift+$left move left
  566. bindsym $mod+Shift+$down move down
  567. bindsym $mod+Shift+$up move up
  568. bindsym $mod+Shift+$right move right
  569.  
  570. # alternatively, you can use the cursor keys:
  571. bindsym $mod+Shift+Left move left
  572. bindsym $mod+Shift+Down move down
  573. bindsym $mod+Shift+Up move up
  574. bindsym $mod+Shift+Right move right
  575.  
  576. #################################################################
  577. ########### Navigating Workspaces ###########
  578. #################################################################
  579.  
  580. # next/previous workspace
  581.  
  582. bindsym Mod1+Tab workspace next
  583. bindsym Mod1+Shift+Tab workspace prev
  584. bindsym $mod+Tab workspace back_and_forth
  585.  
  586. # navigate workspaces next / previous
  587. bindsym Mod1+Ctrl+Right workspace next
  588. bindsym Mod1+Ctrl+Left workspace prev
  589.  
  590. # switch to workspace with urgent window automatically
  591. for_window [urgent=latest] focus
  592.  
  593. # switch back to previous workspace by pressing
  594. # the same keybinding used to switch from it
  595. workspace_auto_back_and_forth yes
  596.  
  597. # enable urgent workspace message delay to see what window sent it
  598. force_display_urgency_hint 500 ms
  599.  
  600. #############################################################
  601. ########### Tiling Parameters ###########
  602. #############################################################
  603.  
  604. # orientation for new workspaces
  605. default_orientation horizontal
  606.  
  607. # split in horizontal orientation
  608. bindsym $mod+h split h
  609.  
  610. # split in vertical orientation
  611. bindsym $mod+v split v
  612.  
  613. # enter fullscreen mode for the focused container
  614. bindsym $mod+f fullscreen toggle
  615.  
  616. # change container layout (stacked, tabbed, toggle split)
  617. bindsym $mod+s layout stacking
  618. bindsym $mod+z layout tabbed
  619. bindsym $mod+e layout toggle split
  620.  
  621. # change focus between tiling / floating windows
  622. bindsym $mod+space focus mode_toggle
  623.  
  624. # focus the parent container
  625. bindsym $mod+a focus parent
  626.  
  627. # focus the child "HHVH"
  628. #bindsym $mod+d focus child
  629.  
  630. ######################################################################
  631. ########### Give Focus to Applications ###########
  632. ######################################################################
  633.  
  634. for_window [class="Gnome-terminal"] focus
  635. for_window [class="Termite"] focus
  636. for_window [class="Terminator"] focus
  637.  
  638. ##########################################################
  639. ########### Border Control ###########
  640. ##########################################################
  641.  
  642. # default_border normal | none | pixel
  643. default_border pixel 7
  644.  
  645. # default_floating_border normal | none| pixel
  646. default_floating_border pixel 16
  647.  
  648. ########### Border control ###########
  649. # hide_edge_borders none|vertical|horizontal|both|smart
  650. hide_edge_borders horizontal
  651. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  652.  
  653. ########### changing border style ###########
  654. bindsym $mod+t border normal
  655. bindsym $mod+y border 1pixel
  656. bindsym $mod+u border none
  657.  
  658. new_window pixel 12
  659. # new_window normal
  660. # new_window none
  661.  
  662. new_float pixel 16
  663. # new_float normal
  664. # new_float none
  665.  
  666. #############################################################################
  667. ########### Popups Control In Fullscreen Mode ###########
  668. #############################################################################
  669.  
  670. # popup_during_fullscreen smart|ignore|leave_fullscreen
  671. popup_during_fullscreen leave_fullscreen
  672.  
  673. ##########################################################
  674. ########### Resize Windows ###########
  675. ##########################################################
  676.  
  677. # resize window (you can also use the mouse for that)
  678.  
  679. bindsym $mod+r mode "resize"
  680.  
  681. mode "resize" {
  682. # These bindings trigger as soon as you enter the resize mode
  683.  
  684. # Pressing left will shrink the window’s width.
  685. # Pressing right will grow the window’s width.
  686. # Pressing up will shrink the window’s height.
  687. # Pressing down will grow the window’s height.
  688. bindsym $left resize shrink width 5 px or 5 ppt
  689. bindsym $down resize grow height 5 px or 5 ppt
  690. bindsym $up resize shrink height 5 px or 5 ppt
  691. bindsym $right resize grow width 5 px or 5 ppt
  692.  
  693. # same bindings, but for the arrow keys
  694. bindsym Left resize shrink width 5 px or 5 ppt
  695. bindsym Down resize grow height 5 px or 5 ppt
  696. bindsym Up resize shrink height 5 px or 5 ppt
  697. bindsym Right resize grow width 5 px or 5 ppt
  698.  
  699. # back to normal: Enter or Escape
  700. bindsym Return mode "default"
  701. bindsym Escape mode "default"
  702. }
  703.  
  704. ########### Sticky Floating Windows ###########
  705.  
  706. # make a terminal sticky that was started as a notepad
  707. for_window [instance=notepad] sticky enable
  708.  
  709. #########################################################
  710. ########### i3 Next Gaps ############
  711. #########################################################
  712.  
  713. # Settings for I3 next gap git
  714. # https://github.com/Airblader/i3/tree/gaps-next
  715. # delete or uncomment the following lines if you do not have it or do not want it
  716.  
  717. for_window [class="^.*"] border pixel 8
  718. gaps inner 4
  719. gaps outer 4
  720. smart_gaps on
  721. smart_borders on
  722.  
  723. ########### i3 gaps resizing ############
  724.  
  725. set $mode_gaps Gaps: (o) outer, (i) inner
  726. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  727. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  728. bindsym $mod+Shift+g mode "$mode_gaps"
  729.  
  730. mode "$mode_gaps" {
  731. bindsym o mode "$mode_gaps_outer"
  732. bindsym i mode "$mode_gaps_inner"
  733. bindsym Return mode "default"
  734. bindsym Escape mode "default"
  735. }
  736.  
  737. mode "$mode_gaps_inner" {
  738. bindsym plus gaps inner current plus 2
  739. bindsym minus gaps inner current minus 2
  740. bindsym 0 gaps inner current set 0
  741.  
  742. bindsym Shift+plus gaps inner all plus 2
  743. bindsym Shift+minus gaps inner all minus 2
  744. bindsym Shift+0 gaps inner all set 0
  745.  
  746. bindsym Return mode "default"
  747. bindsym Escape mode "default"
  748. }
  749. mode "$mode_gaps_outer" {
  750. bindsym plus gaps outer current plus 2
  751. bindsym minus gaps outer current minus 2
  752. bindsym 0 gaps outer current set 0
  753.  
  754. bindsym Shift+plus gaps outer all plus 2
  755. bindsym Shift+minus gaps outer all minus 2
  756. bindsym Shift+0 gaps outer all set 0
  757.  
  758. bindsym Return mode "default"
  759. bindsym Escape mode "default"
  760. }
  761.  
  762. ###################################################################
  763. ########### Variety for Wallpapers ############
  764. ###################################################################
  765.  
  766. #Variety keybindings mod1 = ALT
  767. # trash wallpaper
  768. bindsym mod1+t exec --no-startup-id variety -t
  769. # next wallpaper
  770. bindsym mod1+n exec --no-startup-id variety -n
  771. bindsym mod1+Right exec --no-startup-id variety -n
  772. # previous wallpaper
  773. bindsym mod1+p exec --no-startup-id variety -p
  774. bindsym mod1+Left exec --no-startup-id variety -p
  775. # favorite wallpaper
  776. bindsym mod1+f exec --no-startup-id variety -f
  777. # pause wallpaper
  778. bindsym mod1+Up exec --no-startup-id variety --pause
  779. # resume wallpaper
  780. bindsym mod1+Down exec --no-startup-id variety --resume
  781.  
  782. ########### Variety with Pywal ###########
  783.  
  784. # next wallpaper
  785. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  786. # previous wallpaper
  787. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  788. # trash wallpaper
  789. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  790. # Update Wallpaper
  791. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  792.  
  793. ##########################################################
  794. ########### Audio Settings ###########
  795. ##########################################################
  796.  
  797. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  798. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  799. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  800. #https://github.com/acrisci/playerctl/
  801. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  802. bindsym XF86AudioNext exec --no-startup-id playerctl next
  803. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  804. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  805.  
  806. ###############################################################
  807. ########### System Applications ###########
  808. ###############################################################
  809.  
  810. exec --no-startup-id xfce4-power-manager &
  811. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  812. # IF xfsettingsd is activated you can not change themes
  813. #exec --no-startup-id xfsettingsd &
  814. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  815.  
  816. ######################## THE END ########################
  817. ####################################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement