# set mod key to super ("windows key") set $mod Mod4 # drag floating windows with mouse+mod floating_modifier $mod # volumes bindsym $mod+plus exec notify-send " $(vol Master 5%+) (+5%)" bindsym $mod+minus exec notify-send " $(vol Master 5%-) (-5%)" bindsym $mod+backslash exec notify-send " $(vol Master toggle)" bindsym $mod+Shift+plus exec notify-send " $(vol Capture 5%+) (+5%)" bindsym $mod+Shift+minus exec notify-send " $(vol Capture 5%-) (-5%)" bindsym $mod+Shift+backslash exec notify-send " $(vol Capture toggle)" # start a terminal bindsym $mod+Return exec alacritty --config-file "$XDG_CONFIG_HOME/alacritty" bindsym $mod+Shift+Return exec alacritty --config-file "$XDG_CONFIG_HOME/alacritty" --class "floatTerm" # kill focused window bindsym $mod+Shift+q kill # rofi menu bindsym $mod+d exec rofi -show drun -show-icons -config "$XDG_CONFIG_HOME/rofi" bindsym $mod+n exec spass sel rofi -dmenu -p "logins:" -config "$XDG_CONFIG_HOME/rofi" # gaps gaps outer 2 gaps inner 4 bindsym $mod+bracketright gaps inner current plus 5 bindsym $mod+bracketleft gaps inner current minus 5 bindsym $mod+BackSpace gaps inner current set 4 # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right 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+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right 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 horizontal/vertical orientation bindsym $mod+g split h bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout 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 # workspaces set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # move workspaces between screens bindsym $mod+p move workspace to output right # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # resize mode bindsym $mod+r mode "resize" mode "resize" { bindsym h resize shrink width 10 px or 10 ppt bindsym j resize grow height 10 px or 10 ppt bindsym k resize shrink height 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt 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 # exit mode bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } # status bar bar { # font font pango:LinLibertineBold, FontAwesome 11 # applet tray tray_output DVI-D-0 # commands i3bar_command i3bar --transparency status_command status # styling height 25 workspace_min_width 55 separator_symbol " :||: " # colors colors { background #2f3534d0 statusline #4eb6c4 separator #ed63e1 #border background text focused_workspace #2f3534c0 #f04d7ac0 #ffffffc0 inactive_workspace #2f3534d0 #222222d0 #888888d0 urgent_workspace #2f343ac0 #2fd6b5c0 #ffffffc0 binding_mode #2f343ac0 #900000c0 #ffffffc0 } } # keybinds bindsym $mod+x exec i3lock -tefi "$XDG_DATA_HOME/wall.png" bindsym $mod+c exec maim -s ~/capture-$(date +%s).png bindsym $mod+y exec mpv /dev/video0 --no-cache --profile=low-latency --untimed --no-osc --x11-name=webcam bindsym $mod+m exec mpv $(xclip -o) --cache=yes bindsym $mod+t exec killall screenkey || screenkey & bindsym $mod+b exec brave # floating windows for_window [class="floatTerm"] floating toggle for_window [class="mpv" instance="webcam$"] floating toggle for_window [class="Gnome-calculator"] floating enable # window borders font pango:LinLibertine 0 for_window [class=".*"] border normal 0 #border background text indicator child border client.focused #a39c13 #a38c13 #a38c13 #a39c13 #a39c13 client.unfocused #316d9b #316d9b #316d9b #316d9b #316d9b client.focused_inactive #316d9b #316d9b #316d9b #316d9b #316d9b client.urgent #2f343a #2f343a #2f343a #2f343a #2f343a