poetician

ArcoLinux i3 Default

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