Advertisement
poetician

ArcoLinuxB i3wm After Re-Installation

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