set $mod Mod4 set $left h set $down j set $up k set $right l gaps inner 5 # Input configuration input * xkb_layout "us" input * xkb_variant "altgr-intl" # i3 basic operation (reload, menu, menu etc.) bindsym $mod+Shift+c reload bindsym $mod+Shift+e exit bindsym $mod+Return exec $term bindsym $mod+d exec $menu bindsym $mod+Alt+l exec swaylock # kill focused window bindsym $mod+Shift+q kill # # Moving around: # bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right # or use $mod+[up|down|left|right] bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move the focused window with the same, but add Shift bindsym $mod+Shift+$left move left bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right # ditto, with arrow 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 # Workspaces: # ----------- set $ws1 "1: " set $ws2 "2: " set $ws3 "3: " set $ws4 "4:  set $ws5 "5: " assign [app_id="^firefox$"] $ws3 assign [class="keepassxc"] $ws3 assign [app_id="org.remmina.*"] $ws5 for_window [app_id="^launcher$"] floating enable, border none # 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 6 bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 # 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 6 bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+8 move container to workspace 8 bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+0 move container to workspace 10 # Layout stuff # ----------- #split bindsym $mod+b splith bindsym $mod+v splitv # layout bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+f fullscreen # Toggle floating mode bindsym $mod+Shift+space floating toggle # Swap focus between the tiling area and the floating area bindsym $mod+space focus mode_toggle # move focus to the parent container bindsym $mod+a focus parent # Media keys # ---------- bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -5% bindsym XF86AudioMute exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle # More resize # ----------- bindsym $mod+r mode "resize" mode "resize" { 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 # ditto, with 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 # return to default mode bindsym Return mode "default" bindsym Escape mode "default" } # Workspaces # ---------- # Appareance # ---------- font pango:FuraCode Nerd Font Mono 10 default_border pixel 1 title_align center client.focused #f268b3 #a82d70 #ffffff #f268b3 #f268b3 client.unfocused #000000 #4d3d46 #cccccc #000000 #000000 # Status Bar: bar { swaybar_command waybar } # Include configuration by hostname include ~/.config/sway/conf.d/`hostname`.config # Automatic startup # ----------------- exec_always import-gsettings.sh \ icon-theme:gtk-icon-theme-name \ cursor-theme:gtk-cursor-theme-name \ gtk-theme:gtk-theme-name \ font-name:gtk-font-name exec swayidle \ timeout 300 'swaylock' \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock' exec mako