Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.24 KB | None | 0 0
  1. #####################################################################################################################
  2. #####################################################################################################################
  3. ################# Start of all the settings #################
  4. #####################################################################################################################
  5. #####################################################################################################################
  6.  
  7. # KEY DEFINITIONS TO REMEMBER
  8.  
  9. # $Mod = WINDOWS key or Super key or Mod4
  10. # Mod1 = ALT key
  11. # Control = CTRL key
  12. # Shift = SHIFT key
  13. # Escape = ESCAPE key
  14. # Return = ENTER or RETURN key
  15. # Pause = PAUSE key
  16. # Print = PRINT key
  17. # Tab = TAB key
  18.  
  19.  
  20. #####################################################################################################################
  21. ################# Define the $mod variable/key #################
  22. #####################################################################################################################
  23.  
  24. # Key to rule them all : Super(Windows) or Alt key?
  25.  
  26. # Mod4 = Windows or Super key on keyboard
  27. # Mod1 = Alt key on keyboard
  28.  
  29. #Set Alt key
  30. set $mod Mod1
  31.  
  32. #set Super key
  33. #set $mod Mod4
  34.  
  35. #####################################################################################################################
  36. ################# Define the movements keys - variables #################
  37. #####################################################################################################################
  38.  
  39.  
  40. #This is setup for qwerty
  41. set $up l
  42. set $down k
  43. set $left j
  44. set $right semicolon
  45.  
  46. #This is setup for azerty
  47. #set $up l
  48. #set $down k
  49. #set $left j
  50. #set $right m
  51.  
  52.  
  53.  
  54. #####################################################################################################################
  55. ################# Single and Dual screen #################
  56. #####################################################################################################################
  57.  
  58.  
  59. # setting variables for later use
  60. # use xrandr and/or arandr to know the names of your monitors
  61. # use this line to tell which monitor is on the right
  62. # xrandr --output DVI-I-2 --right-of DVI-I-1 --auto
  63. exec --no-startup-id xrandr --output DVI-I-1 --right-of HDMI-1 --auto
  64.  
  65.  
  66. # my current setup
  67. set $firstMonitor HDMI-1
  68. set $secondMonitor DVI-I-1
  69.  
  70. #set $firstMonitor LVDS1
  71. #set $secondMonitor LVDS1
  72.  
  73. #set $firstMonitor DVI-I-2
  74. #set $secondMonitor VGA-0
  75.  
  76. #set $firstMonitor DVI-I-2
  77. #set $secondMonitor DVI-I-3
  78.  
  79. #set $firstMonitor DVI-0
  80. #set $secondMonitor DVI-1
  81.  
  82. workspace 1 output $firstMonitor
  83. workspace 2 output $firstMonitor
  84. workspace 3 output $firstMonitor
  85. workspace 4 output $firstMonitor
  86. workspace 5 output $firstMonitor
  87. workspace 6 output $secondMonitor
  88. workspace 7 output $secondMonitor
  89. workspace 8 output $secondMonitor
  90. workspace 9 output $secondMonitor
  91. workspace 10 output $secondMonitor
  92.  
  93. # switch to workspace
  94. bindsym $mod+1 workspace 1
  95. bindsym $mod+2 workspace 2
  96. bindsym $mod+3 workspace 3
  97. bindsym $mod+4 workspace 4
  98. bindsym $mod+5 workspace 5
  99. bindsym $mod+6 workspace 6
  100. bindsym $mod+7 workspace 7
  101. bindsym $mod+8 workspace 8
  102. bindsym $mod+9 workspace 9
  103. bindsym $mod+0 workspace 10
  104.  
  105. # move focused container to workspace
  106. bindsym $mod+Shift+1 move container to workspace 1; workspace 1
  107. bindsym $mod+Shift+2 move container to workspace 2; workspace 2
  108. bindsym $mod+Shift+3 move container to workspace 3; workspace 3
  109. bindsym $mod+Shift+4 move container to workspace 4; workspace 4
  110. bindsym $mod+Shift+5 move container to workspace 5; workspace 5
  111. bindsym $mod+Shift+6 move container to workspace 6; workspace 6
  112. bindsym $mod+Shift+7 move container to workspace 7; workspace 7
  113. bindsym $mod+Shift+8 move container to workspace 8; workspace 8
  114. bindsym $mod+Shift+9 move container to workspace 9; workspace 9
  115. bindsym $mod+Shift+0 move container to workspace 10; workspace 10
  116.  
  117.  
  118.  
  119. #####################################################################################################################
  120. ################# 5 menu's in ArchLabs #################
  121. #####################################################################################################################
  122.  
  123. # start dmenu
  124. bindsym $mod+shift+d exec --no-startup-id dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'
  125.  
  126. # start xfce-appfinder
  127. bindsym mod1+F3 exec --no-startup-id xfce4-appfinder
  128.  
  129. # start rofi full
  130. bindsym $mod+F11 exec --no-startup-id rofi -show run -fullscreen -font "Noto Sans 13"
  131.  
  132. # start rofi small
  133. bindsym $mod+F12 exec --no-startup-id rofi -show run -font "Noto Sans 13"
  134.  
  135. # gmrun
  136. bindsym mod1+F2 exec --no-startup-id gmrun
  137.  
  138. bindsym $mod+d exec "rofi -show drun -lines 10 -opacity 10 "
  139.  
  140.  
  141.  
  142.  
  143. #####################################################################################################################
  144. ################# how to exit, logoff, suspend, ... #################
  145. #####################################################################################################################
  146.  
  147.  
  148. # exit i3 (logs you out of your X session)
  149. 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'"
  150.  
  151.  
  152. #Press $mod (super) and X to exit - check toolbar for next choices
  153. bindsym $mod+X mode "$mode_system"
  154.  
  155. set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown
  156. mode "$mode_system" {
  157. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  158. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  159. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  160. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  161. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  162. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  163.  
  164. # back to normal: Enter or Escape
  165. bindsym Return mode "default"
  166. bindsym Escape mode "default"
  167. }
  168.  
  169.  
  170.  
  171. #####################################################################################################################
  172. ################# reload changed configuration #################
  173. #####################################################################################################################
  174.  
  175.  
  176. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  177. bindsym $mod+Shift+r restart
  178.  
  179. # reload the configuration file
  180. bindsym $mod+Shift+c reload
  181.  
  182. #####################################################################################################################
  183. ################# Stopping an application #################
  184. #####################################################################################################################
  185.  
  186. # kill focused window
  187. bindsym $mod+Shift+q kill
  188.  
  189. #####################################################################################################################
  190. ################# Moving around in i3 #################
  191. #####################################################################################################################
  192.  
  193. # Use Mouse+$mod to drag floating windows to their wanted position
  194. floating_modifier $mod
  195.  
  196. # toggle tiling / floating
  197. bindsym $mod+Shift+space floating toggle
  198.  
  199. # change focus
  200. bindsym $mod+$left focus left
  201. bindsym $mod+$down focus down
  202. bindsym $mod+$up focus up
  203. bindsym $mod+$right focus right
  204.  
  205. # alternatively, you can use the cursor keys:
  206. bindsym $mod+Left focus left
  207. bindsym $mod+Down focus down
  208. bindsym $mod+Up focus up
  209. bindsym $mod+Right focus right
  210.  
  211. # move focused window
  212. bindsym $mod+Shift+$left move left
  213. bindsym $mod+Shift+$down move down
  214. bindsym $mod+Shift+$up move up
  215. bindsym $mod+Shift+$right move right
  216.  
  217. # alternatively, you can use the cursor keys:
  218. bindsym $mod+Shift+Left move left
  219. bindsym $mod+Shift+Down move down
  220. bindsym $mod+Shift+Up move up
  221. bindsym $mod+Shift+Right move right
  222.  
  223. #####################################################################################################################
  224. ################# moving around workspaces #################
  225. #####################################################################################################################
  226.  
  227. # next/previous workspace
  228.  
  229. bindsym Mod1+Tab workspace next
  230. bindsym Mod1+Shift+Tab workspace prev
  231. #bindsym $mod+Tab workspace back_and_forth
  232.  
  233. #navigate workspaces next / previous
  234. bindsym Mod1+Ctrl+Right workspace next
  235. bindsym Mod1+Ctrl+Left workspace prev
  236.  
  237. # switch to workspace with urgent window automatically
  238. for_window [urgent=latest] focus
  239.  
  240. #####################################################################################################################
  241. ################# Tiling parameters #################
  242. #####################################################################################################################
  243.  
  244. # orientation for new workspaces
  245. default_orientation horizontal
  246.  
  247. # split in horizontal orientation
  248. bindsym $mod+h split h
  249.  
  250. # split in vertical orientation
  251. bindsym $mod+v split v
  252.  
  253. # enter fullscreen mode for the focused container
  254. # Super + F in archlabs is execute thunar
  255. bindsym $mod+f fullscreen toggle
  256.  
  257. # change container layout (stacked, tabbed, toggle split)
  258. # qwerty/azerty issue for letter z
  259. bindsym $mod+s layout stacking
  260. bindsym $mod+z layout tabbed
  261. bindsym $mod+e layout toggle split
  262.  
  263.  
  264. # change focus between tiling / floating windows
  265. bindsym $mod+space focus mode_toggle
  266.  
  267. # focus the parent container
  268. bindsym $mod+a focus parent
  269.  
  270. # focus the child container
  271. #bindsym $mod+d focus child
  272.  
  273. #####################################################################################################################
  274. ################# resize #################
  275. #####################################################################################################################
  276.  
  277. # resize window (you can also use the mouse for that)
  278.  
  279. bindsym $mod+r mode "resize"
  280.  
  281. mode "resize" {
  282. # These bindings trigger as soon as you enter the resize mode
  283.  
  284. # Pressing left will shrink the window’s width.
  285. # Pressing right will grow the window’s width.
  286. # Pressing up will shrink the window’s height.
  287. # Pressing down will grow the window’s height.
  288. bindsym $left resize shrink width 10 px or 10 ppt
  289. bindsym $down resize grow height 10 px or 10 ppt
  290. bindsym $up resize shrink height 10 px or 10 ppt
  291. bindsym $right resize grow width 10 px or 10 ppt
  292.  
  293. # same bindings, but for the arrow keys
  294. bindsym Left resize shrink width 10 px or 10 ppt
  295. bindsym Down resize grow height 10 px or 10 ppt
  296. bindsym Up resize shrink height 10 px or 10 ppt
  297. bindsym Right resize grow width 10 px or 10 ppt
  298.  
  299. # back to normal: Enter or Escape
  300. bindsym Return mode "default"
  301. bindsym Escape mode "default"
  302. }
  303.  
  304. #####################################################################################################################
  305. ################# choose the font #################
  306. #####################################################################################################################
  307.  
  308. # Font for window titles. Will also be used by the bar unless a different font
  309. # is used in the bar {} block below.
  310. # choose your font
  311. font pango:Noto Mono Regular 13
  312.  
  313. #####################################################################################################################
  314. ################# assign applications to workspaces #################
  315. #####################################################################################################################
  316.  
  317. # Assign application to start on a specific workspace
  318. # you can find the class with the program xprop
  319.  
  320. # Workspace 1 browser related
  321. assign [class="Firefox|Vivaldi-stable|Vivaldi-snapshot|Opera"] → 1
  322.  
  323. # Workspace 2 text editor related
  324. assign [class="Xed|xed|Brackets|Atom|Code|Geany"] → 2
  325.  
  326. # Workspace 3 Inkscape
  327. assign [class="Inkscape"] → 3
  328.  
  329. # Workspace 4 Gimp
  330. assign [class="Gimp"] → 4
  331.  
  332. # Workspace 5 Images and meld
  333. assign [class="ristretto|Ristretto|shotwell|Shotwell|Xviewer|Nitrogen"] → 5
  334. assign [class="feh|gthumb|Gthumb|eog|Eog|Pinta|pixeluvo|Pixeluvo"] → 5
  335. assign [class="Meld"] → 5
  336.  
  337. # Workspace 6 all video related software
  338. assign [class="Vlc|vlc"] → 6
  339.  
  340. # Workspace 7 virtual machines and settings
  341. assign [class="Vmplayer|VirtualBox"] → 7
  342.  
  343. # Workspace 8 file managers
  344. assign [class="Nemo|Caja|nautilus|Nautilus"] → 8
  345.  
  346. # Workspace 9 email clients
  347. assign [class="Geary|Evolution"] → 9
  348.  
  349. # Workspace 10 music related
  350. assign [class="Spotify|spotify"] → 10
  351. #fix for spotify not moving to workspace 10
  352. for_window [class="Spotify"] move to workspace 10
  353.  
  354. #####################################################################################################################
  355. ################# execute applications at boot time #################
  356. #####################################################################################################################
  357.  
  358. # USER APPLICATIONS TO START AT BOOT
  359.  
  360. #start compton
  361. exec_always --no-startup-id compton
  362.  
  363. #polybar
  364. exec --no-startup-id polybar left
  365. exec --no-startup-id polybar right
  366.  
  367.  
  368. # TRAY APPLICATIONS
  369.  
  370. # applications that are not installed will not start
  371. # you may see a wheel - hashtag out things you do not want
  372.  
  373. #Authentication dialog
  374. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  375.  
  376. # Updater
  377. exec --no-startup-id pamac-tray
  378.  
  379. # bluetooth
  380. #exec --no-startup-id blueberry-tray
  381.  
  382. # network
  383. exec --no-startup-id nm-applet
  384.  
  385. # num lock activated
  386. exec_always --no-startup-id numlockx on
  387.  
  388.  
  389. # volume
  390. #exec --no-startup-id pasystray
  391. exec --no-startup-id volumeicon
  392.  
  393. # clipit
  394. exec --no-startup-id clipit
  395.  
  396. #Conky
  397. exec --no-startup-id conky -c ~/.config/i3/system-overview
  398.  
  399. #Nitrogen
  400. exec_always --no-startup-id nitrogen --set-zoom-fill /home/cobra/Pictures/wallpapers/planet.jpg
  401.  
  402. #####################################################################################################################
  403. ################# applications keyboard shortcuts #################
  404. #####################################################################################################################
  405.  
  406. #not workspace related
  407.  
  408. # terminal
  409. bindsym $mod+Return exec --no-startup-id urxvt;focus
  410. bindsym control+mod1+t exec --no-startup-id urxvt; focus
  411.  
  412. #System monitor
  413. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  414.  
  415. #settings
  416. bindsym control+mod1+m exec --no-startup-id xfce4-settings-manager
  417.  
  418. #catfish
  419. bindsym control+mod1+c exec --no-startup-id catfish;focus
  420.  
  421. #pavucontrol
  422. #archlabs conflict
  423. bindsym control+mod1+u exec --no-startup-id pavucontrol
  424.  
  425. # start xfce-appfinder
  426. #archlabs does not seem to work
  427. bindsym control+mod1+a exec --no-startup-id xfce4-appfinder
  428.  
  429. #workspace 1 related
  430. bindsym $mod+F1 exec --no-startup-id exo-open --launch webbrowser;workspace 1;focus
  431. #qwerty/azerty conflict with w
  432. bindsym $mod+w exec --no-startup-id exo-open --launch webbrowser;workspace 1;focus
  433. bindsym $mod+m exec --no-startup-id firefox;workspace 1; focus
  434. bindsym control+mod1+g exec --no-startup-id chromium;workspace 1;focus
  435.  
  436. #workspace 2 related
  437. #bindsym $mod+F2 exec --no-startup-id geany;workspace 2;focus
  438. bindsym control+mod1+w exec --no-startup-id geany;workspace 2;focus
  439.  
  440. #workspace 3 related
  441. #bindsym $mod+F3 exec --no-startup-id inkscape;workspace 3;focus
  442.  
  443. #workspace 4 related
  444. bindsym $mod+F4 exec --no-startup-id gimp;workspace 4;focus
  445.  
  446. #workspace 5 related
  447. bindsym $mod+F5 exec --no-startup-id meld;workspace 5;focus
  448. bindsym control+mod1+i exec --no-startup-id nitrogen;workspace 5;focus
  449.  
  450. #workspace 6 related
  451. bindsym $mod+F6 exec --no-startup-id vlc;workspace 6;focus
  452.  
  453. #workspace 7 related
  454. bindsym $mod+F7 exec --no-startup-id virtualbox;workspace 7;focus
  455.  
  456. #workspace 8 related
  457. for_window [class="Thunar"] focus
  458. bindsym $mod+n exec --no-startup-id thunar;workspace 8;focus
  459. bindsym $mod+Shift+Return exec --no-startup-id thunar; workspace 8;focus
  460. bindsym control+mod1+b exec --no-startup-id thunar;workspace 8;focus
  461.  
  462. #workspace 9 related
  463. bindsym $mod+F9 exec --no-startup-id evolution;workspace 9;focus
  464. bindsym control+mod1+e exec --no-startup-id evolution;workspace 9;focus
  465. #bindsym $mod+F9 exec --no-startup-id geary;workspace 9;focus
  466. #bindsym control+mod1+e exec --no-startup-id geary;workspace 9;focus
  467.  
  468. #workspace 10 related
  469. bindsym $mod+F10 exec --no-startup-id spotify;workspace 10;focus
  470. bindsym control+mod1+s exec --no-startup-id spotify;workspace 10;focus
  471.  
  472. #####################################################################################################################
  473. ################# screenshots #################
  474. #####################################################################################################################
  475.  
  476. bindsym Print exec --no-startup-id scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/'
  477. bindsym Control+Print exec --no-startup-id xfce4-screenshooter
  478. bindsym Control+Shift+Print exec --no-startup-id gnome-screenshot -i
  479. #bindsym shift+Print exec --no-startup-id shutter
  480.  
  481. #####################################################################################################################
  482. ################# floating or tiled #################
  483. #####################################################################################################################
  484.  
  485. #floating enabled from some programs - find with xprop
  486.  
  487. for_window [class="Bleachbit"] floating disable
  488. for_window [class="Blueberry.py"] floating enable
  489. for_window [class="Brasero"] floating disable
  490. for_window [class="Galculator"] floating enable
  491. for_window [class="Gnome-disks"] floating disable
  492. for_window [class="^Gnome-font-viewer$"] floating enable
  493. for_window [class="^Gpick$"] floating enable
  494. for_window [class="Hexchat"] floating disable
  495. for_window [class="Imagewriter"] floating enable
  496. for_window [class="Font-manager"] floating enable
  497. for_window [class="Nitrogen"] floating disable
  498. for_window [class="Pavucontrol"] floating disable
  499. for_window [class="^Skype$"] floating enable
  500. for_window [class="^Spotify$"] floating disable
  501. for_window [class="System-config-printer.py"] floating enable
  502. for_window [class="Unetbootin.elf"] floating enable
  503. for_window [class="Usb-creator-gtk"] floating enable
  504. for_window [class="^Vlc$"] floating disable
  505. for_window [class="Wine"] floating disable
  506. for_window [class="Xfburn"] floating disable
  507. for_window [class="Xfce4-appfinder"] floating enable
  508. for_window [class="Xfce4-settings-manager"] floating disable
  509. for_window [class="Xfce4-taskmanager"] floating enable
  510.  
  511. for_window [instance="gimp"] floating disable
  512. for_window [instance="script-fu"] border normal
  513. for_window [instance="variety"] floating disable
  514.  
  515. for_window [title="Copying"] floating enable
  516. for_window [title="Deleting"] floating enable
  517. for_window [title="Moving"] floating enable
  518. for_window [title="^Terminator Preferences$"] floating enable
  519.  
  520. for_window [window_role="^gimp-toolbox-color-dialog$"] floating enable
  521. for_window [window_role="pop-up"] floating enable
  522. for_window [window_role="^Preferences$"] floating enable
  523. for_window [window_role="setup"] floating enable
  524.  
  525. #####################################################################################################################
  526. ################# give focus to applications #################
  527. #####################################################################################################################
  528.  
  529. for_window [class="Gnome-terminal"] focus
  530. for_window [class="Termite"] focus
  531. for_window [class="Terminator"] focus
  532.  
  533. #####################################################################################################################
  534. ################# audio settings #################
  535. #####################################################################################################################
  536.  
  537.  
  538. bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master '5%+'"
  539. bindsym XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master '5%-'"
  540. bindsym XF86AudioMute exec --no-startup-id "amixer -D pulse set Master toggle"
  541. #https://github.com/acrisci/playerctl/
  542. bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
  543. bindsym XF86AudioNext exec --no-startup-id playerctl next
  544. bindsym XF86AudioPrev exec --no-startup-id playerctl previous
  545. bindsym XF86AudioStop exec --no-startup-id playerctl stop
  546. #bindsym XF86AudioPlay exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
  547. #bindsym XF86AudioNext exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
  548. #bindsym XF86AudioPrev exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
  549. #bindsym XF86AudioStop exec --no-startup-id "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"
  550.  
  551. #####################################################################################################################
  552. ################# xbacklight #################
  553. #####################################################################################################################
  554.  
  555. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 # increase screen brightness
  556. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease screen brightness
  557.  
  558. #####################################################################################################################
  559. ################# bar toggle #################
  560. #####################################################################################################################
  561.  
  562. # bar toggle, hide or show
  563. bindsym $mod+b bar mode toggle
  564.  
  565. #####################################################################################################################
  566. ################# border control #################
  567. #####################################################################################################################
  568.  
  569. # Border control
  570. hide_edge_borders both
  571. bindsym $mod+shift+b exec --no-startup-id i3-msg border toggle
  572.  
  573. #changing border style
  574. #super+t in archlabs is starting terminal
  575. bindsym $mod+t border normal
  576. bindsym $mod+y border 1pixel
  577. bindsym $mod+u border none
  578.  
  579. #new_window pixel 1
  580. new_window normal
  581. #new_window none
  582.  
  583. #new_float pixel 1
  584. new_float normal
  585. #new_float none
  586.  
  587. #####################################################################################################################
  588. ################# Popups control #################
  589. #####################################################################################################################
  590.  
  591. #Popups during fullscreen mode
  592. popup_during_fullscreen smart
  593.  
  594. #####################################################################################################################
  595. ################# i3 gaps next #################
  596. #####################################################################################################################
  597.  
  598. # Settings for I3 next gap git
  599. # https://github.com/Airblader/i3/tree/gaps-next
  600. # delete or uncomment the following lines if you do not have it or do not
  601. # want it
  602.  
  603. for_window [class="^.*"] border pixel 0
  604. gaps inner 20
  605. gaps outer 27
  606. #smart_gaps on
  607. #smart_borders on
  608.  
  609. #####################################################################################################################
  610. ################# i3 gaps change #################
  611. #####################################################################################################################
  612.  
  613. set $mode_gaps Gaps: (o) outer, (i) inner
  614. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  615. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  616. bindsym $mod+Shift+g mode "$mode_gaps"
  617.  
  618. mode "$mode_gaps" {
  619. bindsym o mode "$mode_gaps_outer"
  620. bindsym i mode "$mode_gaps_inner"
  621. bindsym Return mode "default"
  622. bindsym Escape mode "default"
  623. }
  624.  
  625. mode "$mode_gaps_inner" {
  626. bindsym plus gaps inner current plus 5
  627. bindsym minus gaps inner current minus 5
  628. bindsym 0 gaps inner current set 0
  629.  
  630. bindsym Shift+plus gaps inner all plus 5
  631. bindsym Shift+minus gaps inner all minus 5
  632. bindsym Shift+0 gaps inner all set 0
  633.  
  634. bindsym Return mode "default"
  635. bindsym Escape mode "default"
  636. }
  637. mode "$mode_gaps_outer" {
  638. bindsym plus gaps outer current plus 5
  639. bindsym minus gaps outer current minus 5
  640. bindsym 0 gaps outer current set 0
  641.  
  642. bindsym Shift+plus gaps outer all plus 5
  643. bindsym Shift+minus gaps outer all minus 5
  644. bindsym Shift+0 gaps outer all set 0
  645.  
  646. bindsym Return mode "default"
  647. bindsym Escape mode "default"
  648. }
  649.  
  650. #####################################################################################################################
  651. ################# compton of i3wm #################
  652. #####################################################################################################################
  653.  
  654. #if you want transparency on non-focused windows, ...
  655. #exec_always --no-startup-id compton --config ~/.config/i3/compton.conf
  656.  
  657. #####################################################################################################################
  658. #####################################################################################################################
  659. #####################################################################################################################
  660. ################# bar appearance #################
  661. #####################################################################################################################
  662. #####################################################################################################################
  663. #####################################################################################################################
  664.  
  665. #bar {
  666.  
  667. #height 22
  668. #workspace_buttons yes
  669. #font pango:Noto Sans 12
  670. ##you can know the name via xrandr
  671. ##output DVI-0
  672.  
  673. ## OPTION 1 : i3status
  674.  
  675. ## type status_command i3status without the config file and
  676. ## you will get the standard i3status bar
  677. ## Second one is the standard statusbar with my personal settings
  678.  
  679. ##status_command i3status
  680. ##status_command i3status -c ~/.config/i3/i3status.conf
  681.  
  682.  
  683. ## OPTION 2 : i3blocks
  684.  
  685. ## https://github.com/vivien/i3blocks
  686. ## another way to provide text in the statusbar
  687. ## put hastag in front if not installed
  688.  
  689. ##status_command i3blocks
  690. #status_command i3blocks -c ~/.config/i3/i3blocks.conf
  691. ##status_command i3blocks -c ~/.config/i3/i3blocks-original.conf
  692. ##status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  693.  
  694.  
  695. ## OPTION 3 : conky
  696.  
  697. ## You can also replace the istatus bar with a conky
  698. ## start-conky-i3statusbar.sh is started and conky will follow
  699. ## documentation : https://i3wm.org/docs/user-contributed/conky-i3bar.html
  700. ## conky configuration is in conky-i3statusbar
  701.  
  702. ##status_command ~/.config/i3/start-conky-i3statusbar.sh
  703.  
  704.  
  705. #colors {
  706. #background #c7a57c
  707. #statusline #131620
  708. #separator #666666
  709. ## border backgr. text
  710. #focused_workspace #a9a9a9 #222222 #a9a9a9
  711. #active_workspace #a9a9a9 #222222 #a9a9a9
  712. #inactive_workspace #a9a9a9 #5f676a #a9a9a9
  713. #urgent_workspace #4A4A4A #4A4A4A #a9a9a9
  714. #}
  715.  
  716. #}
  717.  
  718.  
  719. # DarkGrey background with white text - not focus grey background - black text
  720. # Windows decoration colors
  721.  
  722. # class border bground text indicator child_border
  723. #client.focused #131620 #070015 #c7a57c #FFFFFF #c7a57c
  724. #client.focused_inactive #333333 #070015 #c7a57c #FFFFFF #5F676A
  725. #client.unfocused #333333 #070015 #c7a57c #FFFFFF #222222
  726. #client.urgent #6f1515 #00FF9F #c7a57c #FFFFFF #6f1515
  727. #client.placeholder #000000 #070015 #c7a576 #FFFFFF #0C0C0C
  728.  
  729.  
  730. #################################################################
  731. ################### BAR APPEARANCE ARCHIVE ######################
  732. #################################################################
  733.  
  734. # Orange background with black text - not focus grey background - white text
  735. # Windows decoration colors
  736. # class border backgr. text indicator
  737. # client.background color #222222
  738. # client.focused #FFAF00 #FFAF00 #333333 #00AA00
  739. # client.unfocused #222222 #222222 #aaaaaa #2e9ef4
  740. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  741. # client.urgent #2f343a #900000 #ffffff #900000
  742.  
  743.  
  744. # DarkGrey background with white text - not focus grey background - black text
  745. # Windows decoration colors
  746. # https://i3wm.org/docs/userguide.html#_changing_colors
  747. # client.background color
  748. # class border backgr. text indicator
  749. # client.focused #4c7899 #285577 #ffffff #2e9ef4
  750. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  751. # client.unfocused #333333 #222222 #888888 #292d2e
  752. # client.urgent #2f343a #900000 #ffffff #900000
  753. # client.placeholder #000000 #0c0c0c #ffffff #000000
  754.  
  755. # colors {
  756. # background #222222
  757. # statusline #eeeeee
  758. # separator #666666
  759. # border backgr. text
  760. # focused_workspace #4c7899 #285577 #ffffff
  761. # active_workspace #333333 #5f676a #ffffff
  762. # inactive_workspace #333333 #222222 #888888
  763. # urgent_workspace #2f343a #900000 #ffffff
  764. # }
  765.  
  766. # Alternatives
  767. # BLue and grey Colors
  768. # https://github.com/Gravemind/ArchLinux/blob/master/.i3/config
  769. # class border backgr. text indicator
  770. # client.focused #000000 #285577 #dddddd #0099ff
  771. # client.focused_inactive #000000 #333333 #888888 #484e50
  772. # client.unfocused #000000 #000000 #555555 #292d2e
  773. # client.urgent #2f343a #900000 #ffffff #900000
  774.  
  775. # blue background with white text
  776. # Windows decoration colors
  777. # class border backgr. text indicator
  778. # client.background color #222222
  779. # client.focused #4c7899 #285577 #ffffff #2e9ef4
  780. # client.focused_inactive #333333 #5f676a #ffffff #484e50
  781. # client.unfocused #333333 #222222 #888888 #292d2e
  782. # client.urgent #2f343a #900000 #ffffff #900000
  783.  
  784. # Blue-green background - orange text
  785. # Windows decoration colors
  786. # http://www.fastlinux.eu/_archiv/index.php?page=linux047
  787. # class border backgr. text
  788. # client.focused #2B6473 #2B6473 #FFA000
  789. # client.focused_inactive #004050 #004050 #FFA000
  790. # client.unfocused #004050 #004050 #cccccc
  791. # client.urgent #900000 #900000 #ffffff
  792.  
  793.  
  794. # Red background - black text
  795. # Windows decoration colors
  796. # https://github.com/Blueblur/dotfiles/blob/master/.i3/config
  797. # class border backgr. text indicator
  798. # client.focused #d64937 #d64937 #2D2D2D #2e9ef4
  799. # client.focused_inactive #2d2d2d #2d2d2d #dcdcdc #484e50
  800. # client.unfocused #2D2D2D #2d2d2d #dcdcdc #292d2e
  801. # client.urgent #2D2D2D #2D2D2D #dcdcdc #900000
  802.  
  803.  
  804.  
  805.  
  806. #####################################################################################################################
  807. #####################################################################################################################
  808. #####################################################################################################################
  809. #####################################################################################################################
  810. #####################################################################################################################
  811. ######################################## THE END ###########################################
  812. #####################################################################################################################
  813. #####################################################################################################################
  814. #####################################################################################################################
  815. #####################################################################################################################
  816. #####################################################################################################################
  817.  
  818.  
  819.  
  820.  
  821.  
  822. #####################################################################################################################
  823. ################# Scratchpad #################
  824. #####################################################################################################################
  825.  
  826. # NOT USED
  827.  
  828. # move the currently focused window to the scratchpad
  829. # bindsym Mod1+Shift+minus move scratchpad
  830.  
  831. # Show the next scratchpad window or hide the focused scratchpad window.
  832. # If there are multiple scratchpad windows, this command cycles through them.
  833. # bindsym Mod1+minus scratchpad show
  834.  
  835. #####################################################################################################################
  836. ################# mouse settings in i3 #################
  837. #####################################################################################################################
  838.  
  839. # NOT USED
  840.  
  841. # mouse settings
  842. # The middle button over a titlebar kills the window
  843. # bindsym --release button2 kill
  844.  
  845. # The middle button and a modifer over any part of the window kills the window
  846. # bindsym --whole-window $mod+button2 kill
  847.  
  848. # The right button toggles floating
  849. # bindsym button3 floating toggle
  850. # bindsym $mod+button3 floating toggle
  851.  
  852. # The side buttons move the window around
  853. # bindsym button9 move left
  854. # bindsym button8 move right
  855.  
  856.  
  857. #####################################################################################################################
  858. ################# keyboard control #################
  859. #####################################################################################################################
  860.  
  861. # NOT USED
  862.  
  863. # Settings of ArchLabs will be applied
  864. #exec --no-startup-id setxkbmap be
  865. #exec --no-startup-id setxkbmap us
  866.  
  867.  
  868.  
  869. #####################################################################################################################
  870. ################# unclutter #################
  871. #####################################################################################################################
  872.  
  873. # NOT USED
  874.  
  875. # get the mouse out of the way with unclutter
  876. #exec --no-startup-id unclutter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement