Advertisement
poetician

ArcoLinuxB Xtended i3wm [Restored Updated]

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