Advertisement
poetician

ArcoLinuxB i3wm in Extended Update

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