Advertisement
poetician

ArcoLinuxB Xtended i3wm [config design update]

Dec 12th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.53 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. ########### Title Font and Alignment ###########
  102.  
  103. # Font for window titles. Will also be used by the bar unless a different font
  104. # is used in the bar {} block below.
  105. font pango: Federation 13
  106. title_align center
  107.  
  108. ########### Wallpaper Settings ###########
  109.  
  110. # Sets wallpaper to load at startup
  111. #exec --no-startup-id feh --bg-fill ~/Pictures/Salon.jpg
  112. exec --no-startup-id variety
  113.  
  114. ########################################################################
  115. ########### Bar and Workspace Appearance ###########
  116. ########################################################################
  117.  
  118. bar {
  119.  
  120. height 33
  121. workspace_buttons yes
  122. font pango: Bauhaus 11
  123.  
  124. position top
  125. #position bottom
  126.  
  127. # OPTION 1 : i3status
  128.  
  129. # type status_command i3status without the config file and
  130. # you will get the standard i3status bar
  131. # Second one is the standard statusbar with my personal settings
  132.  
  133. #status_command i3status
  134. #status_command i3status -c ~/.config/i3/i3status.conf
  135.  
  136. # OPTION 2 : i3blocks
  137.  
  138. # https://github.com/vivien/i3blocks
  139. # another way to provide text in the statusbar
  140. # put hastag in front if not installed
  141.  
  142. #status_command i3blocks
  143. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  144. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  145. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  146. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  147.  
  148. # OPTION 3 : conky
  149.  
  150. # You can also replace the istatus bar with a conky
  151. # start-conky-i3statusbar.sh is started and conky will follow
  152. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  153. # conky configuration is in conky-i3statusbar
  154.  
  155. status_command ~/.config/i3/start-conky-i3statusbar.sh
  156.  
  157. # OPTION 4 : polybar
  158.  
  159. # polybar is launched elsewhere - search for the word
  160. # from the opening of the "bar {...}" till the end has to go or hashtagged out
  161. # in order for the system trayicons to show up in polybar
  162.  
  163. colors {
  164. background #281948
  165. statusline #f4cd52
  166. separator #e69722
  167. # border backgr. text
  168. focused_workspace #6c71c4 #6c71c4 #281948
  169. active_workspace #6c71c4 #6c71c4 #281948
  170. inactive_workspace #281948 #281948 #a16b1c
  171. urgent_workspace #281948 #11093e #f4cd52
  172. }
  173.  
  174. }
  175.  
  176. # class border backgr. text indicator
  177. client.placeholder #f4cd52 #281948 #242424
  178. client.background #f4cd52 #281948 #242424
  179. client.unfocused #281948 #281948 #f4cd52 #ffffff
  180. client.focused #6c71c4 #6c71c4 #281948 #222222
  181. client.focused_inactive #281948 #6c71c4 #f4cd52 #222222
  182. client.urgent #11093e #8446d4 #a16b1c #11093e
  183.  
  184.  
  185. ########### Colour Picker ###########
  186.  
  187. # #222222
  188. # #ffffff #a9a9a9 #c2c2b8
  189. # #760b0b #900000
  190. # #089635 #104022 #054d23 #033317 #02180b
  191. # #281948 #110034 #11093e #261496 #8446d4 #6c71c4
  192. # #a16b1c #FFAF00 #e69722 #f4cd52
  193. # #cd7f32 Bronze
  194. # #c0c0c0 Silver
  195. # #d4af37 Gold
  196. # #899a99 Pewter
  197. # #dc143c Crimson
  198. # #e34234 Vermillion
  199. # #dda0ad Plum
  200. # #568203 Avocado
  201. # #2e5e5b Pine Green
  202. # #1f3d0c Deep Forest Green
  203. # #4f433f Tudor Brown
  204.  
  205. ############################################################################
  206. ########### Workspace Names and Assignments ############
  207. ############################################################################
  208.  
  209. ########### Workspaces named with variables avoids repetition ###########
  210.  
  211. set $ws1 "1 "
  212. set $ws2 "2 𑢰 ꗇ"
  213. #set $ws3 "3 🎞 🎜"
  214. set $ws3 "3 ꪜ ⴽ"
  215. set $ws4 "4 𑣦"
  216. #set $ws5 "5 📽"
  217. set $ws5 "5 𞢐"
  218. set $ws7 "7 "
  219. set $ws8 "8 "
  220. set $ws9 "9 𑣣"
  221. set $ws10 "10 𖭧"
  222.  
  223. ########### Loading Applications in Designated Workspaces ###########
  224.  
  225. assign [class="libreoffice"] $ws4
  226. assign [class="Gucharmap"] $ws4
  227. assign [class="Nemo"] $ws2
  228. assign [class="atom"] $ws2
  229. assign [class="Rhythmbox"] $ws3
  230. assign [class="vlc"] $ws3
  231. assign [class="firefox"] $ws1
  232. assign [class="kdenlive"] $ws5
  233. assign [class="GNU Image Manipulation Program"] $ws6
  234. assign [class="Google Earth Pro"] $ws7
  235. assign [class="Cherrytree"] $ws8
  236. assign [class="stacer"] $ws8
  237. assign [class="Meld"] $ws9
  238.  
  239. ########### Loading Applications at Startup ###########
  240.  
  241. exec_always compton -c
  242. exec --no-startup-id mousetrap -t 2
  243. exec redshift
  244. exec_always xscreensaver
  245. exec xscreensaver-demo
  246. # exec nitrogen --restore
  247. # exec atom (doesn't load into assigned $ws)
  248. exec cherrytree
  249. exec dropbox
  250. exec firefox
  251. # exec gimp (doesn't load into assigned $ws)
  252. # exec google-earth-pro
  253. # exec gucharmap
  254. # exec kdenlive
  255. exec libreoffice
  256. exec megasync
  257. # exec meld
  258. exec nemo
  259. # exec rhythmbox
  260. exec vlc
  261. exec workrave
  262. # exec screenkey
  263. # exec stacer
  264.  
  265. ########### Tray Applications ###########
  266.  
  267. # Applications that are not installed will not start
  268. # you may see a wheel - hashtag out things you do not want
  269.  
  270. # Authentication dialog
  271. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  272.  
  273. # Dropbox
  274. #exec --no-startup-id dropbox start
  275.  
  276. # Network
  277. exec --no-startup-id nm-applet
  278.  
  279. # Num Lock activated
  280. exec_always --no-startup-id numlockx on
  281.  
  282. # Parcellite
  283. exec parcellite
  284.  
  285. # Updater
  286. exec --no-startup-id pamac-tray
  287.  
  288. # Volume
  289. #exec --no-startup-id pasystray
  290. exec --no-startup-id volumeicon
  291.  
  292. # Clipman
  293. #exec --no-startup-id xfce4-clipman
  294.  
  295. # Conky
  296. #exec --no-startup-id conky -c ~/.config/i3/system-overview
  297.  
  298. # Polybar
  299. #exec_always --no-startup-id ~/.config/polybar/launch.sh &
  300.  
  301. ###########################################################################
  302. ########### Applications Keyboard Shortcuts ###########
  303. ###########################################################################
  304.  
  305. ########### 6 Menu Options ###########
  306.  
  307. # Start Rofi drun Mode
  308. bindsym $mod+g exec rofi -show drun -show-icons -theme arthur -lines 12 -columns 3 -eh 2 -width 74 -padding 200 -opacity "40"
  309.  
  310. # Start Rofi Combi Mode
  311. bindsym $mod+F11 exec --no-startup-id rofi -show combi -show-icons -font "Federation 11"
  312.  
  313. # Start Rofi Window Mode
  314. bindsym $mod+F12 exec --no-startup-id rofi -show window -show-icons
  315.  
  316. # Start Menu from .desktop apps only
  317. bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
  318.  
  319. # Gmrun
  320. bindsym mod1+F2 exec --no-startup-id gmrun
  321.  
  322. #Start xfce-appfinder
  323. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  324.  
  325. ########### Not Workspace Related ###########
  326.  
  327. # terminal
  328. bindsym $mod+Return exec --no-startup-id termite;focus
  329. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  330. bindsym control+mod1+t exec --no-startup-id xfce4-terminal; focus
  331. bindsym control+mod1+Return exec --no-startup-id termite; focus
  332. bindsym control+mod1+KP_Enter exec --no-startup-id termite; focus
  333.  
  334. # System monitor
  335. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  336.  
  337. # Settings
  338. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  339.  
  340. # Catfish
  341. bindsym control+mod1+c exec --no-startup-id catfish;focus
  342.  
  343. # Rofi theme selector
  344. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  345.  
  346. # Htop
  347. # arcolinux conflict
  348. # bindsym $mod+h exec --no-startup-id htop;focus
  349.  
  350. # Pavucontrol
  351. # arcolinux conflict
  352. #bindsym control+mod1+u exec --no-startup-id pavucontrol
  353.  
  354. # start xfce-appfinder
  355. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  356.  
  357. # Pamac-manager
  358. bindsym control+mod1+p exec --no-startup-id pamac-manager
  359.  
  360. ########### Workspace Related ###########
  361.  
  362. #workspace 1 related
  363. bindsym $mod+F1 exec --no-startup-id firefox;focus
  364.  
  365. #workspace 2 related
  366. bindsym $mod+F2 exec --no-startup-id atom;focus
  367. bindsym $mod+F8 exec --no-startup-id nemo;focus
  368. bindsym $mod+Shift+Return exec --no-startup-id nemo;focus
  369.  
  370. #Workspace 3 related
  371. bindsym $mod+F3 exec --nostartup-id Rhythmbox
  372. #bindsym $mod+F7 exec --nostartup-id vlc
  373.  
  374. #workspace 4 related
  375. bindsym $mod+F4 exec --no-startup-id libreoffice
  376.  
  377. #workspace 5 related
  378. bindsym $mod+F5 exec --no-startup-id kdenlive
  379.  
  380. #workspace 6 related
  381. bindsym $mod+F6 exec --no-startup-id gimp;focus
  382.  
  383. #workspace 7 related
  384. bindsym $mod+F7 exec --no-startup-id google earth pro;focus
  385.  
  386. #workspace 8 related
  387. bindsym control+mod1+b exec --no-startup-id Thunar;focus
  388. bindsym $mod+F10 exec --no-startup-id stacer;focus
  389. bindsym control+mod1+s exec --no-startup-id stacer;focus
  390.  
  391. #workspace 9 related
  392. bindsym $mod+F9 exec --no-startup-id meld;focus
  393. bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  394.  
  395. #workspace 10 related
  396.  
  397. #############################################################
  398. ########### Floating or Tiled ###########
  399. #############################################################
  400.  
  401. ########### floating enabled / disabled; find class name with xprop; border option ###########
  402.  
  403. for_window [class="Bleachbit"] floating disable
  404. for_window [class="Brasero"] floating disable
  405. for_window [class="Cherrytree"] floating disable border pixel 8
  406. for_window [class="Galculator"] floating enable
  407. for_window [class="Gnome-disks"] floating disable
  408. for_window [class="^Gnome-font-viewer$"] floating enable
  409. for_window [class="^Gpick$"] floating enable
  410. for_window [class="Gucharmap"] floating enable
  411. for_window [class="Gufw.py"] floating enable border pixel 20
  412. for_window [class="Hexchat"] floating disable
  413. for_window [class="Imagewriter"] floating enable
  414. for_window [class="Font-manager"] floating enable
  415. # for_window [class="qt5ct|Lxappearance] floating disable
  416. # for_window [class="Nitrogen"] floating enable
  417. # for_window [class="Pavucontrol"] floating enable
  418. # for_window [class="Peek"] floating disable
  419. for_window [class="stacer"] floating enable
  420. for_window [class="System-config-printer.py"] floating enable
  421. for_window [class="Termite"] floating enable
  422. for_window [class="Unetbootin.elf"] floating enable
  423. for_window [class="Usb-creator-gtk"] floating enable
  424. for_window [class="^Vlc$"] floating enable
  425. for_window [class="Xfce4-appfinder"] floating enable
  426. for_window [class="Xfce4-settings-manager"] floating disable
  427. for_window [class="Xfce4-taskmanager"] floating enable
  428. for_window [class="Xscreensaver-demo"] floating enable
  429.  
  430. for_window [instance="gimp"] floating disable
  431. for_window [instance="script-fu"] border normal
  432. for_window [instance="variety"] floating disable
  433.  
  434. for_window [title="Copying"] floating enable
  435. for_window [title="Deleting"] floating enable
  436. for_window [title="Moving"] floating enable
  437. for_window [title="^Terminator Preferences$"] floating enable
  438.  
  439. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  440. for_window [window_role="pop-up"] floating enable
  441. for_window [window_role="^Preferences$"] floating enable
  442. for_window [window_role="setup"] floating enable
  443.  
  444. ########### Application Specific Border Settings ###########
  445.  
  446. #for_window [class="Cherrytree"] border pixel 8
  447. #for_window [class="stacer"] border pixel 6
  448. #for_window [cleass="Imagewriter"] border pixel 12
  449. #for_window [class="Termite"] border pixel 12
  450. #for_window [class="vlc"] border pixel 8
  451.  
  452. ########################################################
  453. ########### Screenshots ############
  454. ########################################################
  455.  
  456. bindsym Print exec --no-startup-id scrot '_-%Y-%m-%d-%s_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  457. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  458.  
  459. ##########################################################################
  460. ########### Workspace Switching Functions ############
  461. ##########################################################################
  462.  
  463. # switch to workspace
  464. bindsym $mod+1 workspace $ws1
  465. bindsym $mod+2 workspace $ws2
  466. bindsym $mod+3 workspace $ws3
  467. bindsym $mod+4 workspace $ws4
  468. bindsym $mod+5 workspace $ws5
  469. bindsym $mod+6 workspace $ws6
  470. bindsym $mod+7 workspace $ws7
  471. bindsym $mod+8 workspace $ws8
  472. bindsym $mod+9 workspace $ws9
  473. bindsym $mod+0 workspace $ws10
  474.  
  475. # move focused container to workspace
  476. bindsym $mod+Shift+1 move container to workspace $ws1
  477. bindsym $mod+Shift+2 move container to workspace $ws2
  478. bindsym $mod+Shift+3 move container to workspace $ws3
  479. bindsym $mod+Shift+4 move container to workspace $ws4
  480. bindsym $mod+Shift+5 move container to workspace $ws5
  481. bindsym $mod+Shift+6 move container to workspace $ws6
  482. bindsym $mod+Shift+7 move container to workspace $ws7
  483. bindsym $mod+Shift+8 move container to workspace $ws8
  484. bindsym $mod+Shift+9 move container to workspace $ws9
  485. bindsym $mod+Shift+0 move container to workspace $ws10
  486.  
  487. #################################################################
  488. ########### Navigating Containers ###########
  489. #################################################################
  490.  
  491. # Use Mouse+$mod to drag floating windows to their new position
  492. floating_modifier $mod
  493.  
  494. # toggle tiling / floating
  495. bindsym $mod+Shift+space floating toggle
  496.  
  497. # change focus
  498. bindsym $mod+$left focus left
  499. bindsym $mod+$down focus down
  500. bindsym $mod+$up focus up
  501. bindsym $mod+$right focus right
  502.  
  503. # alternatively, you can use the cursor keys:
  504. bindsym $mod+Left focus left
  505. bindsym $mod+Down focus down
  506. bindsym $mod+Up focus up
  507. bindsym $mod+Right focus right
  508.  
  509. # move focused window
  510. bindsym $mod+Shift+$left move left
  511. bindsym $mod+Shift+$down move down
  512. bindsym $mod+Shift+$up move up
  513. bindsym $mod+Shift+$right move right
  514.  
  515. # alternatively, you can use the cursor keys:
  516. bindsym $mod+Shift+Left move left
  517. bindsym $mod+Shift+Down move down
  518. bindsym $mod+Shift+Up move up
  519. bindsym $mod+Shift+Right move right
  520.  
  521. #################################################################
  522. ########### Navigating Workspaces ###########
  523. #################################################################
  524.  
  525. # next/previous workspace
  526.  
  527. bindsym Mod1+Tab workspace next
  528. bindsym Mod1+Shift+Tab workspace prev
  529. bindsym $mod+Tab workspace back_and_forth
  530.  
  531. # navigate workspaces next / previous
  532. bindsym Mod1+Ctrl+Right workspace next
  533. bindsym Mod1+Ctrl+Left workspace prev
  534.  
  535. # switch to workspace with urgent window automatically
  536. for_window [urgent=latest] focus
  537.  
  538. #############################################################
  539. ########### Tiling Parameters ###########
  540. #############################################################
  541.  
  542. # orientation for new workspaces
  543. default_orientation horizontal
  544.  
  545. # split in horizontal orientation
  546. bindsym $mod+h split h
  547.  
  548. # split in vertical orientation
  549. bindsym $mod+v split v
  550.  
  551. # enter fullscreen mode for the focused container
  552. bindsym $mod+f fullscreen toggle
  553.  
  554. # change container layout (stacked, tabbed, toggle split)
  555. bindsym $mod+s layout stacking
  556. bindsym $mod+z layout tabbed
  557. bindsym $mod+e layout toggle split
  558.  
  559. # change focus between tiling / floating windows
  560. bindsym $mod+space focus mode_toggle
  561.  
  562. # focus the parent container
  563. bindsym $mod+a focus parent
  564.  
  565. # focus the child container
  566. #bindsym $mod+d focus child
  567.  
  568. ######################################################################
  569. ########### Give Focus to Applications ###########
  570. ######################################################################
  571.  
  572. for_window [class="Gnome-terminal"] focus
  573. for_window [class="Termite"] focus
  574. for_window [class="Terminator"] focus
  575.  
  576. ##########################################################
  577. ########### Border Control ###########
  578. ##########################################################
  579.  
  580. # default_border normal | none | pixel
  581. default_border pixel 7
  582. # default_floating_border normal | none| pixel
  583. default_floating_border pixel 7
  584.  
  585. ########### Border control ###########
  586. # hide_edge_borders none|vertical|horizontal|both|smart
  587. hide_edge_borders both
  588. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  589.  
  590. ########### changing border style ###########
  591. bindsym $mod+t border normal
  592. bindsym $mod+y border 1pixel
  593. bindsym $mod+u border none
  594.  
  595. new_window pixel 7
  596. # new_window normal
  597. # new_window none
  598.  
  599. new_float pixel 7
  600. # new_float normal
  601. # new_float none
  602.  
  603. ###########################################################
  604. ########### Popups Control ###########
  605. ###########################################################
  606.  
  607. # Popups during fullscreen mode
  608. popup_during_fullscreen smart
  609.  
  610. ##########################################################
  611. ########### Resize Windows ###########
  612. ##########################################################
  613.  
  614. # resize window (you can also use the mouse for that)
  615.  
  616. bindsym $mod+r mode "resize"
  617.  
  618. mode "resize" {
  619. # These bindings trigger as soon as you enter the resize mode
  620.  
  621. # Pressing left will shrink the window’s width.
  622. # Pressing right will grow the window’s width.
  623. # Pressing up will shrink the window’s height.
  624. # Pressing down will grow the window’s height.
  625. bindsym $left resize shrink width 5 px or 5 ppt
  626. bindsym $down resize grow height 5 px or 5 ppt
  627. bindsym $up resize shrink height 5 px or 5 ppt
  628. bindsym $right resize grow width 5 px or 5 ppt
  629.  
  630. # same bindings, but for the arrow keys
  631. bindsym Left resize shrink width 5 px or 5 ppt
  632. bindsym Down resize grow height 5 px or 5 ppt
  633. bindsym Up resize shrink height 5 px or 5 ppt
  634. bindsym Right resize grow width 5 px or 5 ppt
  635.  
  636. # back to normal: Enter or Escape
  637. bindsym Return mode "default"
  638. bindsym Escape mode "default"
  639. }
  640.  
  641. #########################################################
  642. ########### i3 Next Gaps ############
  643. #########################################################
  644.  
  645. # Settings for I3 next gap git
  646. # https://github.com/Airblader/i3/tree/gaps-next
  647. # delete or uncomment the following lines if you do not have it or do not want it
  648.  
  649. for_window [class="^.*"] border pixel 8
  650. gaps inner 4
  651. gaps outer 4
  652. smart_gaps on
  653. smart_borders on
  654.  
  655. ########### i3 gaps resizing ############
  656.  
  657. set $mode_gaps Gaps: (o) outer, (i) inner
  658. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  659. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  660. bindsym $mod+Shift+g mode "$mode_gaps"
  661.  
  662. mode "$mode_gaps" {
  663. bindsym o mode "$mode_gaps_outer"
  664. bindsym i mode "$mode_gaps_inner"
  665. bindsym Return mode "default"
  666. bindsym Escape mode "default"
  667. }
  668.  
  669. mode "$mode_gaps_inner" {
  670. bindsym plus gaps inner current plus 2
  671. bindsym minus gaps inner current minus 2
  672. bindsym 0 gaps inner current set 0
  673.  
  674. bindsym Shift+plus gaps inner all plus 2
  675. bindsym Shift+minus gaps inner all minus 2
  676. bindsym Shift+0 gaps inner all set 0
  677.  
  678. bindsym Return mode "default"
  679. bindsym Escape mode "default"
  680. }
  681. mode "$mode_gaps_outer" {
  682. bindsym plus gaps outer current plus 2
  683. bindsym minus gaps outer current minus 2
  684. bindsym 0 gaps outer current set 0
  685.  
  686. bindsym Shift+plus gaps outer all plus 2
  687. bindsym Shift+minus gaps outer all minus 2
  688. bindsym Shift+0 gaps outer all set 0
  689.  
  690. bindsym Return mode "default"
  691. bindsym Escape mode "default"
  692. }
  693.  
  694. ###################################################################
  695. ########### Variety for Wallpapers ############
  696. ###################################################################
  697.  
  698. #Variety keybindings mod1 = ALT
  699. # trash wallpaper
  700. bindsym mod1+t exec --no-startup-id variety -t
  701. # next wallpaper
  702. bindsym mod1+n exec --no-startup-id variety -n
  703. bindsym mod1+Right exec --no-startup-id variety -n
  704. # previous wallpaper
  705. bindsym mod1+p exec --no-startup-id variety -p
  706. bindsym mod1+Left exec --no-startup-id variety -p
  707. # favorite wallpaper
  708. bindsym mod1+f exec --no-startup-id variety -f
  709. # pause wallpaper
  710. bindsym mod1+Up exec --no-startup-id variety --pause
  711. # resume wallpaper
  712. bindsym mod1+Down exec --no-startup-id variety --resume
  713.  
  714. ########### Variety with Pywal ###########
  715.  
  716. # next wallpaper
  717. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  718. # previous wallpaper
  719. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  720. # trash wallpaper
  721. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  722. # Update Wallpaper
  723. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  724.  
  725. ##########################################################
  726. ########### Audio Settings ###########
  727. ##########################################################
  728.  
  729. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  730. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  731. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  732. #https://github.com/acrisci/playerctl/
  733. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  734. bindsym XF86AudioNext exec --no-startup-id playerctl next
  735. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  736. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  737.  
  738. ###############################################################
  739. ########### System Applications ###########
  740. ###############################################################
  741.  
  742. exec --no-startup-id xfce4-power-manager &
  743. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  744. # IF xfsettingsd is activated you can not change themes
  745. #exec --no-startup-id xfsettingsd &
  746. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  747.  
  748. ######################## THE END ########################
  749. ####################################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement