Advertisement
poetician

ArcoLinuxB Xtended i3wm [Incremental Update]

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