Advertisement
poetician

ArcoLinuxB i3wm (Further Minor Update)

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