set $super Mod4 set $alt Mod1 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. ISO 10646 = Unicode font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 new_window none new_float none hide_edge_borders none for_window [class="^.*"] border pixel 0 assign [class="Liferea"] 5 assign [class="Spotify"] 6 assign [class="discord"] 9 assign [class="Element"] 9 assign [class="Signal"] 9 assign [class="Slack"] 9 assign [class="TelegramDesktop"] 9 focus_follows_mouse yes mouse_warping output focus_on_window_activation smart # use Mouse+$super to drag floating windows to their wanted position floating_modifier $super # start a terminal bindsym $super+Return exec alacritty # kill focused window bindsym $super+Shift+q kill # start "dmenu" (a program launcher) bindsym $super+space exec --no-startup-id xboomx # change focus bindsym $super+h focus left bindsym $super+j focus down bindsym $super+k focus up bindsym $super+l focus right # alternatively, you can use the cursor keys: bindsym $super+Left focus left bindsym $super+Down focus down bindsym $super+Up focus up bindsym $super+Right focus right # move focused window bindsym $super+Shift+h move left bindsym $super+Shift+j move down bindsym $super+Shift+k move up bindsym $super+Shift+l move right # alternatively, you can use the cursor keys: bindsym $super+Shift+Left move left bindsym $super+Shift+Down move down bindsym $super+Shift+Up move up bindsym $super+Shift+Right move right # split in horizontal (split is vertical) orientation bindsym $super+z split h # split in vertical (split is horizontal) orientation bindsym $super+v split v # enter fullscreen mode for the focused container bindsym $super+f fullscreen # change container layout (stacked, tabbed, toggle split) bindsym $super+s floating enable bindsym $super+t floating disable bindsym $super+$alt+s layout stacking bindsym $super+$alt+t layout tabbed bindsym $super+e layout toggle split bindsym $super+y sticky toggle # change focus between tiling / floating windows bindsym $super+Shift+space focus mode_toggle # focus the parent container bindsym $super+p focus parent # focus the child container bindsym $super+c focus child # move the currently focused window to the scratchpad bindsym $super+Shift+minus move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym $super+minus scratchpad show # switch to workspace number bindsym $super+1 workspace number 1 bindsym $super+2 workspace number 2 bindsym $super+3 workspace number 3 bindsym $super+4 workspace number 4 bindsym $super+5 workspace number 5 bindsym $super+6 workspace number 6 bindsym $super+7 workspace number 7 bindsym $super+8 workspace number 8 bindsym $super+9 workspace number 9 bindsym $super+0 workspace number 10 # move focused container to workspace number bindsym $super+Shift+1 move container to workspace number 1; workspace number 1 bindsym $super+Shift+2 move container to workspace number 2; workspace number 2 bindsym $super+Shift+3 move container to workspace number 3; workspace number 3 bindsym $super+Shift+4 move container to workspace number 4; workspace number 4 bindsym $super+Shift+5 move container to workspace number 5; workspace number 5 bindsym $super+Shift+6 move container to workspace number 6; workspace number 6 bindsym $super+Shift+7 move container to workspace number 7; workspace number 7 bindsym $super+Shift+8 move container to workspace number 8; workspace number 8 bindsym $super+Shift+9 move container to workspace number 9; workspace number 9 bindsym $super+Shift+0 move container to workspace number 10; workspace number 10 # magic workspace movement bindsym $super+grave workspace back_and_forth bindsym $super+bracketleft workspace prev_on_output bindsym $super+bracketright workspace next_on_output # screen management bindsym $super+comma focus output left bindsym $super+period focus output right bindsym $super+Shift+comma move workspace to output left bindsym $super+Shift+period move workspace to output right # volume bindsym XF86AudioLowerVolume exec --no-startup-id /usr/bin/pulseaudio-ctl down bindsym XF86AudioRaiseVolume exec --no-startup-id /usr/bin/pulseaudio-ctl up bindsym XF86AudioMute exec --no-startup-id /usr/bin/pulseaudio-ctl mute bindsym XF86AudioMicMute exec --no-startup-id /usr/bin/pulseaudio-ctl mute-input # Useful shortcuts bindsym $super+x exec --no-startup-id xsel-clear # reload the configuration file bindsym $super+Escape reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $super+Shift+Escape restart # exit i3 (logs you out of your X session) bindsym $super+$alt+Escape exec 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 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 # 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 Control+g mode "default" } bindsym $super+r mode "resize" bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioPrev exec --no-startup-id playerctl previous bindsym XF86AudioNext exec --no-startup-id playerctl next set $Locker lock bindsym $super+Shift+semicolon exec --no-startup-id $Locker, mode "default" gaps inner 5 smart_gaps on # startup exec --no-startup-id nitrogen --restore exec --no-startup-id polybar eDP1 exec --no-startup-id unclutter exec --no-startup-id autorandr --change exec --no-startup-id qutebrowser exec --no-startup-id signal-desktop exec --no-startup-id discord exec --no-startup-id element-desktop exec --no-startup-id slack exec --no-startup-id notion