Advertisement
Wrigs

i3 Config - Arco Linux

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