Advertisement
Guest User

ArcoLinux i3wm Config, 2019 -09-22

a guest
Sep 22nd, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.10 KB | None | 0 0
  1. #####################################################################################################################
  2. ################# Start of all the settings #################
  3. #####################################################################################################################
  4.  
  5.  
  6. # KEY DEFINITIONS TO REMEMBER
  7.  
  8. # $Mod = WINDOWS key or Super key or Mod4
  9. # Mod1 = ALT key
  10. # Control = CTRL key
  11. # Shift = SHIFT key
  12. # Escape = ESCAPE key
  13. # Return = ENTER or RETURN key
  14. # KP_Enter = Keypad Enter
  15. # Pause = PAUSE key
  16. # Print = PRINT key
  17. # Tab = TAB key
  18.  
  19. #####################################################################################################################
  20. ################# Define the $mod variable/key #################
  21. #####################################################################################################################
  22.  
  23. # Key to rule them all : Super(Windows) or Alt key?
  24.  
  25. # Mod4 = Windows or Super key on keyboard
  26. # Mod1 = Alt key on keyboard
  27.  
  28. #Set Alt key
  29. #set $mod Mod1
  30.  
  31. #set Super key
  32. set $mod Mod4
  33.  
  34. #####################################################################################################################
  35. ################# Define the movements keys - variables #################
  36. #####################################################################################################################
  37.  
  38. #This is setup for qwerty
  39. set $up l
  40. set $down k
  41. set $left j
  42. set $right semicolon
  43.  
  44. #This is setup for azerty
  45. #set $up l
  46. #set $down k
  47. #set $left j
  48. #set $right m
  49.  
  50. #################################################################
  51. # Define names for default workspaces #
  52. # Variables avoid repeating the names in multiple places #
  53. #################################################################
  54.  
  55. set $ws1 "1: Mozilla  "
  56. set $ws2 "2: Editing   "
  57. set $ws3 "3: Media 🎞 🎜"
  58. set $ws4 "4: Writer "
  59. set $ws5 "5: Kdenlive 📽"
  60. set $ws6 "6: Gimp "
  61. set $ws7 "7: Google Earth "
  62. set $ws8 "8:"
  63. set $ws9 "9:"
  64. set $ws10 "10:"
  65.  
  66. assign [class="Firefox"] "1: Mozilla  "
  67. assign [class="Thunderbird"] "1: Mozilla  "
  68. assign [class="Thunar"] "2: Editing   "
  69. #assign [class="Cherrytree"] "2: Editing   "
  70. assign [class="Rhythmbox"] "3: Media 🎞 🎜"
  71. assign [class="vlc"] "3: Media 🎞 🎜"
  72. assign [class="kdenlive"] "5: Kdenlive 📽"
  73. assign [class="libreoffice"] "4: Writer "
  74. assign [class="GNU Image Manipulation Program"] "6: Gimp "
  75. assign [class="Google Earth Pro"] "7: Google Earth "
  76.  
  77. #assign [class="cherrytree"] CherryTree
  78. #assign [class="Firefox"] Firefox 
  79. #assign [class="GNU Image Manipulation Program"] Gimp
  80. #assign [class="Google Earth Pro"] Google Earth
  81. #assign [class="Gucharmap"] CherryTree
  82. #assign [class="kdenlive"] Kdenlive
  83. #assign [class="libreoffice"] Writer
  84. #assign [class="Thunar"] File Manager
  85. #assign [class="Rhythmbox"] Media
  86. #assign [class="Shutter"] Shutter
  87. #assign [class="vlc"] Media
  88.  
  89. exec_always compton -f -c
  90. exec cherrytree
  91. exec firefox
  92. #exec gimp
  93. #exec google-earth
  94. #exec kdenlive
  95. exec libreoffice
  96. exec megasync
  97. exec parcellite
  98. exec redshift
  99. exec rhythmbox
  100. #exec screenkey
  101. #exec shutter
  102. exec thunar
  103. exec thunderbird
  104. exec timeshift
  105. exec vlc
  106. exec workrave
  107.  
  108. #####################################################################################################################
  109. ################# Single and Dual screen #################
  110. #####################################################################################################################
  111.  
  112. # setting variables for later use
  113. # use xrandr and/or arandr to know the names of your monitors
  114. # use this line to tell which monitor is on the right
  115. # xrandr --output DVI-I-2 --right-of DVI-I-1 --auto
  116. #exec --no-startup-id xrandr --output LVDS1 --mode 1366x768 --output DP3 --mode 1920x1080 --right-of LVDS1
  117. #exec --no-startup-id xrandr --output DVI-I-0 --right-of HDMI-0 --auto
  118. #exec --no-startup-id xrandr --output DVI-1 --right-of DVI-0 --auto
  119. #exec --no-startup-id xrandr --output DVI-D-1 --right-of DVI-I-1 --auto
  120. #exec --no-startup-id xrandr --output HDMI2 --right-of HDMI1 --auto
  121.  
  122. # Current setup is one monitor
  123.  
  124. # switch to workspace
  125. bindsym $mod+1 workspace $ws1
  126. bindsym $mod+2 workspace $ws2
  127. bindsym $mod+3 workspace $ws3
  128. bindsym $mod+4 workspace $ws4
  129. bindsym $mod+5 workspace $ws5
  130. bindsym $mod+6 workspace $ws6
  131. bindsym $mod+7 workspace $ws7
  132. bindsym $mod+8 workspace $ws8
  133. bindsym $mod+9 workspace $ws9
  134. bindsym $mod+0 workspace $ws10
  135.  
  136. # move focused container to workspace
  137. bindsym $mod+Shift+1 move container to workspace $ws1
  138. bindsym $mod+Shift+2 move container to workspace $ws2
  139. bindsym $mod+Shift+3 move container to workspace $ws3
  140. bindsym $mod+Shift+4 move container to workspace $ws4
  141. bindsym $mod+Shift+5 move container to workspace $ws5
  142. bindsym $mod+Shift+6 move container to workspace $ws6
  143. bindsym $mod+Shift+7 move container to workspace $ws7
  144. bindsym $mod+Shift+8 move container to workspace $ws8
  145. bindsym $mod+Shift+9 move container to workspace $ws9
  146. bindsym $mod+Shift+0 move container to workspace $ws10
  147.  
  148. #####################################################################################################################
  149. ################# 6 Menu Options #################
  150. #####################################################################################################################
  151.  
  152. # start dmenu
  153. #bindsym $mod+shift+d exec --no-startup-id dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'
  154.  
  155. # start menu from .destop files only
  156. bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
  157.  
  158. # gmrun
  159. bindsym mod1+F2 exec --no-startup-id gmrun
  160.  
  161. # start xfce-appfinder
  162. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  163.  
  164. # The preferred App launcher
  165. bindsym $mod+g exec rofi -show drun -theme arthur -lines 15 -eh 2 -width 60 -padding 60 -opacity "50" -bw 0 -bc "$base01" -bg "$base02" -fg "$base04" -hlbg "$base05" -columns 4 -font "Bauhaus 13" -hlfg "#9575cd"
  166.  
  167. # start rofi full
  168. bindsym $mod+F11 exec --no-startup-id rofi -show run -fullscreen -font "Noto Sans 13"
  169.  
  170. # start rofi small
  171. bindsym $mod+F12 exec --no-startup-id rofi -show run -font "Noto Sans 13"
  172.  
  173. #####################################################################################################################
  174. ################# How to exit, logoff, suspend, ... #################
  175. #####################################################################################################################
  176.  
  177. # exit i3 (logs you out of your X session)
  178. bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  179.  
  180.  
  181. #Press $mod (super) and X to exit - check toolbar for next choices
  182. bindsym $mod+X mode "$mode_system"
  183. bindsym control+mod1+Delete mode "$mode_system"
  184.  
  185. set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
  186. mode "$mode_system" {
  187. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  188. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  189. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  190. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  191. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  192. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  193.  
  194. # back to normal: Enter or Escape
  195. bindsym Return mode "default"
  196. bindsym Escape mode "default"
  197. }
  198.  
  199. #####################################################################################################################
  200. ################# Reload changed configuration #################
  201. #####################################################################################################################
  202.  
  203. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  204. bindsym $mod+Shift+r restart
  205.  
  206. # reload the default configuration file
  207. bindsym $mod+Shift+c reload
  208.  
  209. #####################################################################################################################
  210. ################# Stopping an application #################
  211. #####################################################################################################################
  212.  
  213. # kill focused window
  214. bindsym $mod+Shift+q kill
  215. bindsym $mod+q kill
  216.  
  217. #####################################################################################################################
  218. ################# Moving around in i3 #################
  219. #####################################################################################################################
  220.  
  221. # Use Mouse+$mod to drag floating windows to their wanted position
  222. floating_modifier $mod
  223.  
  224. # toggle tiling / floating
  225. bindsym $mod+Shift+space floating toggle
  226.  
  227. # change focus
  228. bindsym $mod+$left focus left
  229. bindsym $mod+$down focus down
  230. bindsym $mod+$up focus up
  231. bindsym $mod+$right focus right
  232.  
  233. # alternatively, you can use the cursor keys:
  234. bindsym $mod+Left focus left
  235. bindsym $mod+Down focus down
  236. bindsym $mod+Up focus up
  237. bindsym $mod+Right focus right
  238.  
  239. # move focused window
  240. bindsym $mod+Shift+$left move left
  241. bindsym $mod+Shift+$down move down
  242. bindsym $mod+Shift+$up move up
  243. bindsym $mod+Shift+$right move right
  244.  
  245. # alternatively, you can use the cursor keys:
  246. bindsym $mod+Shift+Left move left
  247. bindsym $mod+Shift+Down move down
  248. bindsym $mod+Shift+Up move up
  249. bindsym $mod+Shift+Right move right
  250.  
  251. #####################################################################################################################
  252. ################# Moving around workspaces #################
  253. #####################################################################################################################
  254.  
  255. # next/previous workspace
  256.  
  257. bindsym Mod1+Tab workspace next
  258. bindsym Mod1+Shift+Tab workspace prev
  259. bindsym $mod+Tab workspace back_and_forth
  260.  
  261. #navigate workspaces next / previous
  262. bindsym Mod1+Ctrl+Right workspace next
  263. bindsym Mod1+Ctrl+Left workspace prev
  264.  
  265. # switch to workspace with urgent window automatically
  266. for_window [urgent=latest] focus
  267.  
  268. #####################################################################################################################
  269. ################# Tiling parameters #################
  270. #####################################################################################################################
  271.  
  272. # orientation for new workspaces
  273. default_orientation horizontal
  274.  
  275. # split in horizontal orientation
  276. bindsym $mod+h split h
  277.  
  278. # split in vertical orientation
  279. bindsym $mod+v split v
  280.  
  281. # enter fullscreen mode for the focused container
  282. # Super + F in arcolinux is execute thunar
  283. bindsym $mod+f fullscreen toggle
  284.  
  285. # change container layout (stacked, tabbed, toggle split)
  286. # qwerty/azerty issue for letter z
  287. bindsym $mod+s layout stacking
  288. bindsym $mod+z layout tabbed
  289. bindsym $mod+e layout toggle split
  290.  
  291. # change focus between tiling / floating windows
  292. bindsym $mod+space focus mode_toggle
  293.  
  294. # focus the parent container
  295. bindsym $mod+a focus parent
  296.  
  297. # focus the child container
  298. #bindsym $mod+d focus child
  299.  
  300. #####################################################################################################################
  301. ################# Resize windows #################
  302. #####################################################################################################################
  303.  
  304. # resize window (you can also use the mouse for that)
  305.  
  306. bindsym $mod+r mode "resize"
  307.  
  308. mode "resize" {
  309. # These bindings trigger as soon as you enter the resize mode
  310.  
  311. # Pressing left will shrink the window’s width.
  312. # Pressing right will grow the window’s width.
  313. # Pressing up will shrink the window’s height.
  314. # Pressing down will grow the window’s height.
  315. bindsym $left resize shrink width 10 px or 10 ppt
  316. bindsym $down resize grow height 10 px or 10 ppt
  317. bindsym $up resize shrink height 10 px or 10 ppt
  318. bindsym $right resize grow width 10 px or 10 ppt
  319.  
  320. # same bindings, but for the arrow keys
  321. bindsym Left resize shrink width 10 px or 10 ppt
  322. bindsym Down resize grow height 10 px or 10 ppt
  323. bindsym Up resize shrink height 10 px or 10 ppt
  324. bindsym Right resize grow width 10 px or 10 ppt
  325.  
  326. # back to normal: Enter or Escape
  327. bindsym Return mode "default"
  328. bindsym Escape mode "default"
  329. }
  330.  
  331. #####################################################################################################################
  332. ################# Choose the font #################
  333. #####################################################################################################################
  334.  
  335. # Font for window titles. Will also be used by the bar unless a different font
  336. # is used in the bar {} block below.
  337. # choose your font
  338. #font pango:Noto Mono Regular 13
  339. font pango:Federation 10
  340.  
  341. #####################################################################################################################
  342. ################# Assign applications to workspaces #################
  343. #####################################################################################################################
  344.  
  345. # Assign application to start on a specific workspace
  346. # you can find the class with the program xprop in Terminal. Mouse over to the App and click.
  347.  
  348. # Workspace 1 browser related
  349. #assign [class="Firefox|Vivaldi-stable|Vivaldi-snapshot|Opera"] → 1
  350. #assign [class="Chromium|Google-chrome"] → 1
  351.  
  352. # Workspace 2 text editor related
  353. #assign [class="sublime-text|sublime_text|Sublime_text|subl|Subl|subl3|Subl3"] → 2
  354. #assign [class="Xed|xed|Brackets|Atom|Code|Geany"] → 2
  355.  
  356. # Workspace 3 Inkscape
  357. #assign [class="Inkscape"] → 3
  358.  
  359. # Workspace 4 Gimp
  360. #assign [class="Gimp"] → 4
  361.  
  362. # Workspace 5 Images and meld
  363. #assign [class="ristretto|Ristretto|shotwell|Shotwell|Xviewer|Nitrogen"] → 5
  364. #assign [class="feh|gthumb|Gthumb|eog|Eog|Pinta|pixeluvo|Pixeluvo"] → 5
  365. #assign [class="Meld"] → 5
  366.  
  367. # Workspace 6 all video related software
  368. #assign [class="Vlc|vlc"] → 6
  369.  
  370. # Workspace 7 virtual machines and settings
  371. #assign [class="Vmplayer|VirtualBox"] → 7
  372.  
  373. # Workspace 8 file managers
  374. #assign [class="Nemo|Thunar|Caja|nautilus|Nautilus"] → 8
  375.  
  376. # Workspace 9 email clients
  377. #assign [class="Geary|Evolution"] → 9
  378.  
  379. # Workspace 10 music related
  380. #assign [class="Spotify|spotify"] → 10
  381. #fix for spotify not moving to workspace 10
  382. #for_window [class="Spotify"] move to workspace 10
  383.  
  384. #####################################################################################################################
  385. ################# Execute applications at boot time #################
  386. #####################################################################################################################
  387.  
  388. # USER APPLICATIONS TO START AT BOOT
  389.  
  390. #browser
  391. #exec --no-startup-id vivaldi-stable
  392. #for_window [class="Vivaldi-stable"] focus
  393.  
  394. #text-editor
  395. #exec --no-startup-id geany
  396. #exec --no-startup-id atom
  397.  
  398. #file manager
  399. #exec --no-startup-id thunar
  400.  
  401. #Mail clients
  402. #exec --no-startup-id evolution
  403.  
  404. #Music
  405. #exec --no-startup-id spotify
  406. #for_window [class="Spotify"] focus
  407.  
  408. ####################################################################################################################
  409. ################ TRAY APPLICATIONS ################
  410. ####################################################################################################################
  411.  
  412. # applications that are not installed will not start
  413. # you may see a wheel - hashtag out things you do not want
  414.  
  415. #Authentication dialog
  416. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  417.  
  418. # Updater
  419. exec --no-startup-id pamac-tray
  420.  
  421. # bluetooth
  422. #exec --no-startup-id blueberry-tray
  423.  
  424. # network
  425. exec --no-startup-id nm-applet
  426.  
  427. # num lock activated
  428. exec_always --no-startup-id numlockx on
  429.  
  430. # dropbox
  431. #exec --no-startup-id dropbox start
  432.  
  433. # insync
  434. #exec --no-startup-id insync start
  435.  
  436. # volume
  437. #exec --no-startup-id pasystray
  438. exec --no-startup-id volumeicon
  439.  
  440. #variety
  441. exec --no-startup-id variety
  442.  
  443. # clipman
  444. #exec --no-startup-id xfce4-clipman
  445.  
  446. #Conky
  447. #exec --no-startup-id conky -c ~/.config/i3/system-overview
  448.  
  449. #Polybar
  450. #exec_always --no-startup-id ~/.config/polybar/launch.sh &
  451.  
  452. #####################################################################################################################
  453. ################# System applications #################
  454. #####################################################################################################################
  455.  
  456. exec --no-startup-id xfce4-power-manager &
  457. # ommitted next line to get super key to bring up the menu in xfce and avoid error then in i3
  458. # IF xfsettingsd is activated you can not change themes
  459. #exec --no-startup-id xfsettingsd &
  460. exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
  461.  
  462. #####################################################################################################################
  463. ################# Applications keyboard shortcuts #################
  464. #####################################################################################################################
  465.  
  466. #not workspace related
  467.  
  468. #conky
  469. bindsym $mod+c exec --no-startup-id conky-toggle
  470.  
  471. # terminal
  472. bindsym $mod+Return exec --no-startup-id termite;focus
  473. bindsym $mod+KP_Enter exec --no-startup-id termite;focus
  474. bindsym control+mod1+t exec --no-startup-id termite; focus
  475. bindsym control+mod1+Return exec --no-startup-id termite; focus
  476. bindsym control+mod1+KP_Enter exec --no-startup-id termite; focus
  477.  
  478. #System monitor
  479. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  480.  
  481. #settings
  482. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  483.  
  484. #catfish
  485. bindsym control+mod1+c exec --no-startup-id catfish;focus
  486.  
  487. #slimlock
  488. #arcolinux conflict
  489. #bindsym $mod+k exec slimlock
  490. #use super + X to get to slimlock
  491.  
  492. #rofi theme selector
  493. bindsym control+mod1+r exec --no-startup-id rofi-theme-selector
  494.  
  495. #arcolinux conflict
  496. #bindsym $mod+m exec --no-startup-id pragha;focus
  497.  
  498. #htop
  499. #arcolinux conflict
  500. #bindsym $mod+h exec --no-startup-id htop;focus
  501.  
  502. #pavucontrol
  503. #arcolinux conflict
  504. bindsym control+mod1+u exec --no-startup-id pavucontrol
  505.  
  506. # start xfce-appfinder
  507. #arcolinux does not seem to work
  508. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  509.  
  510. #pamac-manager
  511. bindsym control+mod1+p exec --no-startup-id pamac-manager
  512.  
  513. #xkill
  514. bindsym --release $mod+Escape exec xkill
  515.  
  516. #workspace related
  517.  
  518. #workspace 1 related
  519. bindsym $mod+F1 exec --no-startup-id exo-open --launch webbrowser;focus
  520. #qwerty/azerty conflict with w
  521. bindsym $mod+w exec --no-startup-id exo-open --launch webbrowser;focus
  522. bindsym control+mod1+f exec --no-startup-id firefox;focus
  523. bindsym control+mod1+v exec --no-startup-id vivaldi-stable;focus
  524. bindsym control+mod1+g exec --no-startup-id chromium;focus
  525.  
  526. #workspace 2 related
  527. #bindsym $mod+F2 exec --no-startup-id geany;focus
  528. bindsym $mod+F2 exec --no-startup-id atom;focus
  529. bindsym control+mod1+w exec --no-startup-id geany;focus
  530.  
  531. #workspace 3 related
  532. bindsym $mod+F3 exec --no-startup-id inkscape;focus
  533.  
  534. #workspace 4 related
  535. bindsym $mod+F4 exec --no-startup-id gimp;focus
  536.  
  537. #workspace 5 related
  538. bindsym $mod+F5 exec --no-startup-id meld;focus
  539. bindsym control+mod1+i exec --no-startup-id nitrogen;focus
  540.  
  541. #workspace 6 related
  542. bindsym $mod+F6 exec --no-startup-id vlc;focus
  543.  
  544. #workspace 7 related
  545. bindsym $mod+F7 exec --no-startup-id virtualbox;focus
  546.  
  547. #workspace 8 related
  548. for_window [class="Thunar"] focus
  549. bindsym $mod+F8 exec --no-startup-id thunar;focus
  550. bindsym $mod+Shift+Return exec --no-startup-id thunar;focus
  551. bindsym $mod+Shift+KP_Enter exec --no-startup-id thunar;focus
  552. bindsym control+mod1+b exec --no-startup-id thunar;focus
  553.  
  554. #workspace 9 related
  555. bindsym $mod+F9 exec --no-startup-id evolution;focus
  556. bindsym control+mod1+e exec --no-startup-id evolution;focus
  557. #bindsym $mod+F9 exec --no-startup-id geary;focus
  558. #bindsym control+mod1+e exec --no-startup-id geary;focus
  559.  
  560. #workspace 10 related
  561. bindsym $mod+F10 exec --no-startup-id spotify;focus
  562. bindsym control+mod1+s exec --no-startup-id spotify;focus
  563.  
  564. #####################################################################################################################
  565. ################# Screenshots #################
  566. #####################################################################################################################
  567.  
  568. bindsym Print exec --no-startup-id scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'
  569. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  570. bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i
  571. #bindsym shift+Print exec --no-startup-id shutter
  572.  
  573. #####################################################################################################################
  574. ################# Floating or tiled #################
  575. #####################################################################################################################
  576.  
  577. #floating enabled from some programs - find with xprop
  578.  
  579. for_window [class="Bleachbit"] floating disable
  580. for_window [class="Blueberry.py"] floating enable
  581. for_window [class="Brasero"] floating disable
  582. for_window [class="Galculator"] floating enable
  583. for_window [class="Gnome-disks"] floating disable
  584. for_window [class="^Gnome-font-viewer$"] floating enable
  585. for_window [class="^Gpick$"] floating enable
  586. for_window [class="Hexchat"] floating disable
  587. for_window [class="Imagewriter"] floating enable
  588. for_window [class="Font-manager"] floating enable
  589. #for_window [class="qt5ct|Lxappearance] floating enable
  590. for_window [class="Nitrogen"] floating disable
  591. for_window [class="Pavucontrol"] floating disable
  592. for_window [class="Peek"] floating enable
  593. for_window [class="^Skype$"] floating enable
  594. for_window [class="^Spotify$"] floating disable
  595. for_window [class="System-config-printer.py"] floating enable
  596. for_window [class="Unetbootin.elf"] floating enable
  597. for_window [class="Usb-creator-gtk"] floating enable
  598. for_window [class="^Vlc$"] floating disable
  599. for_window [class="Wine"] floating disable
  600. for_window [class="Xfburn"] 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.  
  610. for_window [title="Copying"] floating enable
  611. for_window [title="Deleting"] floating enable
  612. for_window [title="Moving"] floating enable
  613. for_window [title="^Terminator Preferences$"] floating enable
  614.  
  615. #for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  616. for_window [window_role="pop-up"] floating enable
  617. for_window [window_role="^Preferences$"] floating enable
  618. for_window [window_role="setup"] floating enable
  619.  
  620. #####################################################################################################################
  621. ################# Give focus to applications #################
  622. #####################################################################################################################
  623.  
  624. for_window [class="Gnome-terminal"] focus
  625. for_window [class="Termite"] focus
  626. for_window [class="Terminator"] focus
  627.  
  628. #####################################################################################################################
  629. ################# Variety for your wallpapers #################
  630. #####################################################################################################################
  631.  
  632. #Variety keybindings mod1 = ALT
  633. # trash wallpaper
  634. bindsym mod1+t exec --no-startup-id variety -t
  635. # next wallpaper
  636. bindsym mod1+n exec --no-startup-id variety -n
  637. bindsym mod1+Right exec --no-startup-id variety -n
  638. # previous wallpaper
  639. bindsym mod1+p exec --no-startup-id variety -p
  640. bindsym mod1+Left exec --no-startup-id variety -p
  641. # favorite wallpaper
  642. bindsym mod1+f exec --no-startup-id variety -f
  643. # pause wallpaper
  644. bindsym mod1+Up exec --no-startup-id variety --pause
  645. # resume wallpaper
  646. bindsym mod1+Down exec --no-startup-id variety --resume
  647.  
  648. #####################################################################################################################
  649. ################# Variety with pywal for your wallpapers #################
  650. #####################################################################################################################
  651.  
  652. # next wallpaper
  653. bindsym mod1+Shift+n exec --no-startup-id variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  654. # previous wallpaper
  655. bindsym mod1+Shift+p exec --no-startup-id variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  656. # trash wallpaper
  657. bindsym mod1+Shift+t exec --no-startup-id variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&
  658. # Update Wallpaper
  659. bindsym mod1+Shift+u exec --no-startup-id wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
  660.  
  661. #####################################################################################################################
  662. ################# Audio settings #################
  663. #####################################################################################################################
  664.  
  665. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  666. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  667. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  668. #https://github.com/acrisci/playerctl/
  669. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  670. bindsym XF86AudioNext exec --no-startup-id playerctl next
  671. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  672. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  673. #bindsym XF86AudioPlay exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
  674. #bindsym XF86AudioNext exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
  675. #bindsym XF86AudioPrev exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
  676. #bindsym XF86AudioStop exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
  677.  
  678. #####################################################################################################################
  679. ################# Xbacklight #################
  680. #####################################################################################################################
  681.  
  682. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 # increase screen brightness
  683. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease screen brightness
  684.  
  685. #####################################################################################################################
  686. ################# Bar toggle #################
  687. #####################################################################################################################
  688.  
  689. # bar toggle, hide or show
  690. bindsym $mod+b bar mode toggle
  691.  
  692. #####################################################################################################################
  693. ################# Border control #################
  694. #####################################################################################################################
  695.  
  696. # Border control
  697. hide_edge_borders both
  698. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  699.  
  700. #changing border style
  701. #super+t in arcolinux is starting terminal
  702. bindsym $mod+t border normal
  703. bindsym $mod+y border 1pixel
  704. bindsym $mod+u border none
  705.  
  706. #new_window pixel 1
  707. new_window normal
  708. #new_window none
  709.  
  710. #new_float pixel 1
  711. new_float normal
  712. #new_float none
  713.  
  714. #####################################################################################################################
  715. ################# Popups control #################
  716. #####################################################################################################################
  717.  
  718. #Popups during fullscreen mode
  719. popup_during_fullscreen smart
  720.  
  721. #####################################################################################################################
  722. ################# i3 gaps next #################
  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 0
  730. gaps inner 0
  731. gaps outer 0
  732. #smart_gaps on
  733. #smart_borders on
  734.  
  735. #####################################################################################################################
  736. ################# i3 gaps change #################
  737. #####################################################################################################################
  738.  
  739. set $mode_gaps Gaps: (o) outer, (i) inner
  740. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  741. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  742. bindsym $mod+Shift+g mode "$mode_gaps"
  743.  
  744. mode "$mode_gaps" {
  745. bindsym o mode "$mode_gaps_outer"
  746. bindsym i mode "$mode_gaps_inner"
  747. bindsym Return mode "default"
  748. bindsym Escape mode "default"
  749. }
  750.  
  751. mode "$mode_gaps_inner" {
  752. bindsym plus gaps inner current plus 1
  753. bindsym minus gaps inner current minus 1
  754. bindsym 0 gaps inner current set 0
  755.  
  756. bindsym Shift+plus gaps inner all plus 1
  757. bindsym Shift+minus gaps inner all minus 1
  758. bindsym Shift+0 gaps inner all set 0
  759.  
  760. bindsym Return mode "default"
  761. bindsym Escape mode "default"
  762. }
  763. mode "$mode_gaps_outer" {
  764. bindsym plus gaps outer current plus 1
  765. bindsym minus gaps outer current minus 1
  766. bindsym 0 gaps outer current set 0
  767.  
  768. bindsym Shift+plus gaps outer all plus 1
  769. bindsym Shift+minus gaps outer all minus 1
  770. bindsym Shift+0 gaps outer all set 0
  771.  
  772. bindsym Return mode "default"
  773. bindsym Escape mode "default"
  774. }
  775.  
  776. #####################################################################################################################
  777. ################# Compton of i3wm #################
  778. #####################################################################################################################
  779.  
  780. #if you want transparency on non-focused windows, ...
  781. exec_always --no-startup-id compton --config ~/.config/i3/compton.conf
  782.  
  783. #####################################################################################################################
  784. ################# Bar appearance #################
  785. #####################################################################################################################
  786.  
  787. bar {
  788.  
  789. height 25
  790. workspace_buttons yes
  791. font pango:Federation 11
  792.  
  793. position top
  794. #position bottom
  795.  
  796. #system icons
  797. #tray_output none
  798. #tray_output $firstMonitor
  799. #tray_output $secondMonitor
  800.  
  801. # OPTION 1 : i3status
  802.  
  803. # type status_command i3status without the config file and
  804. # you will get the standard i3status bar
  805. # Second one is the standard statusbar with my personal settings
  806.  
  807. #status_command i3status
  808. #status_command i3status -c ~/.config/i3/i3status.conf
  809.  
  810. # OPTION 2 : i3blocks
  811.  
  812. # https://github.com/vivien/i3blocks
  813. # another way to provide text in the statusbar
  814. # put hastag in front if not installed
  815.  
  816. #status_command i3blocks
  817. status_command i3blocks -c ~/.config/i3/i3blocks.conf
  818. #status_command i3blocks -c ~/.config/i3/i3blocks-rainbow.conf
  819. #status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  820. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  821.  
  822. # OPTION 3 : conky
  823.  
  824. # You can also replace the istatus bar with a conky
  825. # start-conky-i3statusbar.sh is started and conky will follow
  826. # documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  827. # conky configuration is in conky-i3statusbar
  828.  
  829. #status_command ~/.config/i3/start-conky-i3statusbar.sh
  830.  
  831. # OPTION 4 : polybar
  832.  
  833. # polybar is launched elsewhere - search for the word
  834. # from the opening of the "bar {...}" till the end has to go or hashtagged out
  835. # in order for the system trayicons to show up in polybar
  836.  
  837. #<><><><><> Color Scheme <><><><><>#
  838.  
  839. # bg in between green sl gold sep rich green
  840. # fws b deep purple b gold t deep purple
  841. # aws b purple b nearly balck green t middle taupe grey
  842. # iws b gold b in beween green t middle taupe grey
  843. # uws b middle taupe grey b deep purple t gold
  844. colors {
  845. background #033317
  846. statusline #f4cd52
  847. separator #089635
  848. # border backgr. text
  849.  
  850. focused_workspace #261496 #f4cd52 #261496
  851. active_workspace #8446d4 #02180b #a9a9a9
  852. inactive_workspace #f4cd52 #033317 #a9a9a9
  853. urgent_workspace #a9a9a9 #261496 #f4cd52
  854. }
  855.  
  856. }
  857.  
  858. # Deep green background with gold text - not focus nearly black green background with taupe text
  859. # Windows decoration colors
  860. # class border backgr. text indicator
  861. client.placeholder #242424 #02180b #242424
  862. client.background #242424 #033317 #242424
  863. client.focused #4A4A4A #033317 #f4cd52 #4A4A4A
  864. client.unfocused #222222 #02180b #aaaaaa #222222
  865. client.focused_inactive #222222 #02180b #f4cd52 #222222
  866. client.urgent #d42121 #d42121 #f7f7f7 #d42121
  867.  
  868. #>>>>>>>>>> Colour picker with general description <<<<<<<<<<<<<<<<<<<<<<<#
  869.  
  870.  
  871. # #222222 dark grey
  872. # #ffffff nearly white grey
  873. # #a9a9a9 middle taupe grey
  874. # #c2c2b8 #Taupe
  875. # #760b0b #Dark Brown
  876. # #f4cd52 #Gold
  877. # #8446d4 #Purple
  878. # #089635 #Rich Green
  879. # #104022 #Richer Green
  880. # #261496 #Deep Purple
  881. # #a16b1c #Muddy Gold
  882. # #054d23 #Darker green
  883. # #033317 #In between
  884. # #02180b #Nearly black green
  885.  
  886. # Transparency values:
  887. #100% — FF
  888. #95% — F2
  889. #90% — E6
  890. #85% — D9
  891. #80% — CC
  892. #75% — BF
  893. #70% — B3
  894. #65% — A6
  895. #60% — 99
  896. #55% — 8C
  897. #50% — 80
  898. #45% — 73
  899. #40% — 66
  900. #35% — 59
  901. #30% — 4D
  902. #25% — 40
  903. #20% — 33
  904. #15% — 26
  905. #10% — 1A
  906. #5% — 0D
  907. #0% — 00
  908.  
  909. #################################################################
  910. ################### BAR APPEARANCE ARCHIVE ######################
  911. #################################################################
  912.  
  913. # Orange background with black text - not focus grey background - white text
  914. # Windows decoration colors
  915. # class border backgr. text indicator
  916. # client.background color #222222
  917. # client.focused #FFAF00 #FFAF00 #333333 #00AA00
  918. # client.unfocused #222222 #222222 #aaaaaa #2e9ef4
  919. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  920. # client.urgent #2f343a #900000 #ffffff #900000
  921.  
  922.  
  923. # DarkGrey background with white text - not focus grey background - black text
  924. # Windows decoration colors
  925. # https://i3wm.org/docs/userguide.html#_changing_colors
  926. # client.background color
  927. # class border backgr. text indicator
  928. # client.focused #4c7899 #285577 #ffffff #2e9ef4
  929. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  930. # client.unfocused #333333 #222222 #888888 #292d2e
  931. # client.urgent #2f343a #900000 #ffffff #900000
  932. # client.placeholder #000000 #0c0c0c #ffffff #000000
  933.  
  934. # colors {
  935. # background #222222
  936. # statusline #eeeeee
  937. # separator #666666
  938. # border backgr. text
  939. # focused_workspace #4c7899 #285577 #ffffff
  940. # active_workspace #333333 #5f676a #ffffff
  941. # inactive_workspace #333333 #222222 #888888
  942. # urgent_workspace #2f343a #900000 #ffffff
  943. # }
  944.  
  945. # Alternatives
  946. # BLue and grey Colors
  947. # https://github.com/Gravemind/ArchLinux/blob/master/.i3/config
  948. # class border backgr. text indicator
  949. # client.focused #000000 #285577 #dddddd #0099ff
  950. # client.focused_inactive #000000 #333333 #888888 #484e50
  951. # client.unfocused #000000 #000000 #555555 #292d2e
  952. # client.urgent #2f343a #900000 #ffffff #900000
  953.  
  954. # blue background with white text
  955. # Windows decoration colors
  956. # class border backgr. text indicator
  957. # client.background color #222222
  958. # client.focused #4c7899 #285577 #ffffff #2e9ef4
  959. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  960. # client.unfocused #333333 #222222 #888888 #292d2e
  961. # client.urgent #2f343a #900000 #ffffff #900000
  962.  
  963. # Blue-green background - orange text
  964. # Windows decoration colors
  965. # http://www.fastlinux.eu/_archiv/index.php?page=linux047
  966. # class border backgr. text
  967. # client.focused #2B6473 #2B6473 #FFA000
  968. # client.focused_inactive #004050 #004050 #FFA000
  969. # client.unfocused #004050 #004050 #cccccc
  970. # client.urgent #900000 #900000 #ffffff
  971.  
  972.  
  973. # Red background - black text
  974. # Windows decoration colors
  975. # https://github.com/Blueblur/dotfiles/blob/master/.i3/config
  976. # class border backgr. text indicator
  977. # client.focused #d64937 #d64937 #2D2D2D #2e9ef4
  978. # client.focused_inactive #2d2d2d #2d2d2d #dcdcdc #484e50
  979. # client.unfocused #2D2D2D #2d2d2d #dcdcdc #292d2e
  980. # client.urgent #2D2D2D #2D2D2D #dcdcdc #900000
  981.  
  982. #####################################################################################################################
  983. ################# Scratchpad #################
  984. #####################################################################################################################
  985.  
  986. # move the currently focused window to the scratchpad
  987. bindsym Mod1+Shift+minus move scratchpad
  988.  
  989. # Show the next scratchpad window or hide the focused scratchpad window.
  990. # If there are multiple scratchpad windows, this command cycles through them.
  991. bindsym Mod1+minus scratchpad show
  992.  
  993. #####################################################################################################################
  994. #####################################################################################################################
  995. ######################################## THE END ###########################################
  996. #####################################################################################################################
  997. #####################################################################################################################
  998.  
  999. #####################################################################################################################
  1000. ################# Mouse settings in i3 #################
  1001. #####################################################################################################################
  1002.  
  1003. # NOT USED
  1004.  
  1005. # mouse settings
  1006. # The middle button over a titlebar kills the window
  1007. # bindsym --release button2 kill
  1008.  
  1009. # The middle button and a modifer over any part of the window kills the window
  1010. # bindsym --whole-window $mod+button2 kill
  1011.  
  1012. # The right button toggles floating
  1013. # bindsym button3 floating toggle
  1014. # bindsym $mod+button3 floating toggle
  1015.  
  1016. # The side buttons move the window around
  1017. # bindsym button9 move left
  1018. # bindsym button8 move right
  1019.  
  1020. #####################################################################################################################
  1021. ################# Keyboard control #################
  1022. #####################################################################################################################
  1023.  
  1024. # NOT USED
  1025.  
  1026. # Settings of arcolinux will be applied
  1027. #exec --no-startup-id setxkbmap be
  1028. #exec --no-startup-id setxkbmap us
  1029.  
  1030. #####################################################################################################################
  1031. ################# Unclutter #################
  1032. #####################################################################################################################
  1033.  
  1034. # NOT USED
  1035.  
  1036. # get the mouse out of the way with unclutter
  1037. #exec --no-startup-id unclutter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement