Advertisement
poetician

ArcoLinuxB Xtended i3wm [Rolling Tweaks]

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