# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:Anonymous Pro 10 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, its unicode glyph coverage is limited, the old # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn’t scale on retina/hidpi displays. # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec --no-startup-id xterm # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+p exec --no-startup-id dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # added workspace dolladollabills set $WS1 "I: " set $WS2 "II: " set $WS3 "III: " set $WS4 "IV: " set $WS5 "V: " set $WS6 "VI: " set $WS7 "VII: " set $WS8 "VIII: " set $WS9 "IX: " set $WS10 "X: " # switch to workspace bindsym $mod+1 workspace $WS1 bindsym $mod+2 workspace $WS2 bindsym $mod+3 workspace $WS3 bindsym $mod+4 workspace $WS4 bindsym $mod+5 workspace $WS5 bindsym $mod+6 workspace $WS6 bindsym $mod+7 workspace $WS7 bindsym $mod+8 workspace $WS8 bindsym $mod+9 workspace $WS9 bindsym $mod+0 workspace $WS10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $WS1 bindsym $mod+Shift+2 move container to workspace $WS2 bindsym $mod+Shift+3 move container to workspace $WS3 bindsym $mod+Shift+4 move container to workspace $WS4 bindsym $mod+Shift+5 move container to workspace $WS5 bindsym $mod+Shift+6 move container to workspace $WS6 bindsym $mod+Shift+7 move container to workspace $WS7 bindsym $mod+Shift+8 move container to workspace $WS8 bindsym $mod+Shift+9 move container to workspace $WS9 bindsym $mod+Shift+0 move container to workspace $WS10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "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'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { status_command i3blocks -c /home/mindaugas/.config/i3/i3blocks.conf colors { # Whole color settings background $black statusline $bright-blue # Colors border backgr. text focused_workspace $bright-purple $black $purple active_workspace $bright-purple $black $purple inactive_workspace $bright-blue $black $blue urgent_workspace $red $black $red } height 25 position top } #Scortcuts bindsym $mod+F1 exec --no-startup-id /usr/bin/firefox bindsym $mod+F2 exec --no-startup-id /usr/bin/chromium bindsym $mod+F3 exec --no-startup-id /usr/bin/audacious bindsym $mod+Shift+Return exec --no-startup-id /usr/bin/thunar bindsym $mod+F4 exec --no-startup-id /usr/bin/claws-mail bindsym $mod+F5 exec --no-startup-id /usr/bin/smplayer bindsym $mod+F6 exec --no-startup-id /usr/bin/clipit bindsym $mod+F7 exec --no-startup-id /usr/bin/lxtask bindsym $mod+F8 exec --no-startup-id /usr/bin/geany bindsym $mod+F9 exec --no-startup-id /usr/bin/pavucontrol bindsym $mod+F10 exec --no-startup-id /usr/bin/rox-filer bindsym $mod+F11 exec --no-startup-id /usr/bin/uget-gtk #Power set $Locker i3lock && sleep 1 set $mode_system System (x) lock, (e) logout, (r) reboot, (w) shutdown mode "$mode_system" { bindsym x exec --no-startup-id $Locker, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym w exec --no-startup-id systemctl poweroff -i, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+Pause mode "$mode_system" #Autostart exec --no-startup-id feh --bg-fill /home/mindaugas/Paveikslėliai/Wallpapers/desertsunset.png exec --no-startup-id setxkbmap -layout 'us, lt, ru' -option 'grp:alt_shift_toggle' & exec --no-startup-id gxkb #exec --no-startup-id compton --config ~/.config/i3/compton.conf bindsym $mod+Shift+x exec --no-startup-id $HOME/.bin/scripts/lockmyi3 exec --no-startup-id xautolock -time 10 -locker '$HOME/.bin/scripts/lockmyi3' #Screenshots with scrot bindsym Print exec --no-startup-id scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' ################### SHORTCUTS WORKSPACES ###################### # next/previous workspace bindsym Mod1+Tab workspace next bindsym Mod1+q+Tab workspace prev bindsym $mod+Tab workspace back_and_forth #Scratchpad # Make the currently focused window a scratchpad bindsym $mod+Shift+minus move scratchpad # Show the first scratchpad window bindsym $mod+minus scratchpad show #Rofi #bindsym $mod+shift+f exec "rofi -show run" bindsym $mod+d exec rofi -show run ################### ASSIGN ###################### # Assign application to start on a specific workspace # you can find the class with the program xprop assign [class="xterm|XTerm"] → I:  assign [class="Firefox|Chromium"] → II:  assign [class="Audacious"] → III:  assign [class="SMPlayer|smplayer"] → IV:  assign [class="Gimp"] → V:  assign [class="geany|Geany"] → VI:  assign [class="lxtask|Lxtask"] → VII:  assign [class="thunar|Thunar"] → VIII:  assign [class="claws-mail|Claws-mail"] → IX: assign [class="qbittorrent|qBittorrent"] → X: #Borders #hide_edge_borders both #Focus bindsym $mod+Shift+f [class="Firefox"] focus bindsym $mod+Shift+g [class="Geany"] focus bindsym $mod+Shift+h [class="Chromium"] focus for_window [class="Firefox"] focus for_window [class="Chromium"] focus for_window [class="geany|Geany"] focus for_window [class="lxtask|Lxtask"] focus for_window [class="thunar|Thunar"] focus for_window [class="Gimp"] focus for_window [class="claws-mail|Claws-mail"] focus for_window [class="urxvt|URxvt"] focus for_window [class="xterm|XTerm"] focus #Key indicators #bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks #bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks # Hybrid colors set $black #000000 set $white #babdb6 set $green #80852d set $blue #82b8f2 set $purple #ad7fa8 set $red #ff8888 set $cyan #6b9b8b set $yellow #ffaa55 set $bright-black #555753 set $bright-red #e5505f set $bright-green #b7e234 set $bright-yellow #e8621d set $bright-blue #0088CC set $bright-purple #cb99e1 set $bright-cyan #34E2E2 set $bright-white #e9e9e9 #class border backgr. text indicator client.focused $purple $purple #white $bright-yellow client.unfocused $bright-black $bright-black $bright-black $bright-yellow client.focused_inactive $cyan $cyan $cyan $bright-yellow client.urgent $red $red $red $red ########################################################################### ################### I 3 G A P S N E X T ############################## ########################################################################### # Settings for I3 next gap git # https://github.com/Airblader/i3/tree/gaps-next # Archlinux via aur installation # http://dotx.me/snippets-i3-gaps/ # delete or uncomment the following lines if you do not have it or do not # want it # packer i3-gaps-next-git --noedit for_window [class="^.*"] border pixel 10 for_window [class="urxvt|URxvt"] border pixel 5 gaps inner 20 gaps outer 20 #smart_gaps on #smart_borders on ########################################################################### ################### I3 GAPS CHANGE ############################## ########################################################################### set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) bindsym $mod+Shift+z mode "$mode_gaps" mode "$mode_gaps" { bindsym o mode "$mode_gaps_outer" bindsym i mode "$mode_gaps_inner" bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_inner" { bindsym plus gaps inner current plus 5 bindsym minus gaps inner current minus 5 bindsym 0 gaps inner current set 0 bindsym Shift+plus gaps inner all plus 5 bindsym Shift+minus gaps inner all minus 5 bindsym Shift+0 gaps inner all set 0 bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_outer" { bindsym plus gaps outer current plus 5 bindsym minus gaps outer current minus 5 bindsym 0 gaps outer current set 0 bindsym Shift+plus gaps outer all plus 5 bindsym Shift+minus gaps outer all minus 5 bindsym Shift+0 gaps outer all set 0 bindsym Return mode "default" bindsym Escape mode "default" }