set $font Source Code Pro Medium 10.5 font pango:$font # super set $mod Mod4 # alt set $mod2 Mod1 # hyper # set $mod3 Mod3 set $left h set $down j set $up k set $right l set $term foot set $menu dmenu_path | wmenu -f '$font' | xargs swaymsg exec -- set $lock swaylock -f -c 000000 exec swayidle -w \ timeout 600 '$lock' \ timeout 610 'swaymsg "output * power off"' \ resume 'swaymsg "output * power on"' \ before-sleep '$lock' input * { repeat_delay 200 repeat_rate 45 xkb_layout us,ir # xkb_layout us(colemak_dh),ir } floating_modifier $mod normal bindsym $mod+Return exec $term bindsym $mod+Shift+Return exec $term -a 'footfl' for_window [app_id="footfl"] floating enable bindsym $mod+space exec $menu bindsym $mod+backslash exec passmenu --type -f '$font' bindsym $mod+Shift+w kill bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart set $mode_system System (l)ock | (e)xit sway | (s)uspend | (h)ibernate | (r)eboot | (S)hutdown mode "$mode_system" { bindsym l exec $lock, mode "default" bindsym e exec swaymsg exit, mode "default" bindsym s exec sudo pm-suspend, mode "default" # bindsym h exec systemctl hibernate, mode "default" bindsym r exec sudo reboot, mode "default" bindsym Shift+s exec sudo poweroff, mode "default" bindsym Return mode "default" bindsym Escape mode "default" bindsym q mode "default" } bindsym $mod+Shift+e mode "$mode_system" bindsym $mod+apostrophe exec dmenu-light bindsym XF86MonBrightnessUp exec light -A 5 bindsym XF86MonBrightnessDown exec light -U 5 bindsym $mod+semicolon exec dmenu-pavols set $sinkup pactl set-sink-volume @DEFAULT_SINK@ +5% set $sinkdown pactl set-sink-volume @DEFAULT_SINK@ -5% set $sinkmute pactl set-sink-mute @DEFAULT_SINK@ toggle set $sourceup pactl set-source-volume @DEFAULT_SOURCE@ +5% set $sourcedown pactl set-source-volume @DEFAULT_SOURCE@ -5% set $sourcemute pactl set-source-mute @DEFAULT_SOURCE@ toggle bindsym XF86AudioRaiseVolume exec $sinkup bindsym XF86AudioLowerVolume exec $sinkdown bindsym XF86AudioMute exec $sinkmute bindsym $mod+XF86AudioRaiseVolume exec $sourceup bindsym $mod+XF86AudioLowerVolume exec $sourcedown bindsym $mod+XF86AudioMute exec $sourcemute bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus 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 bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 bindsym $mod+4 workspace number 4 bindsym $mod+5 workspace number 5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 bindsym $mod+9 workspace number 9 bindsym $mod+0 workspace number 10 bindsym $mod+bracketleft workspace prev bindsym $mod+bracketright workspace next bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+4 move container to workspace number 4 bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+0 move container to workspace number 10 bindsym $mod+Shift+bracketleft move container to workspace prev bindsym $mod+Shift+bracketright move container to workspace next # bspwm-esque workspace switch and container move bindsym $mod2+bracketleft exec b-ws-util sway switch prev bindsym $mod2+bracketright exec b-ws-util sway switch next bindsym $mod2+Shift+bracketleft exec b-ws-util sway move prev follow bindsym $mod2+Shift+bracketright exec b-ws-util sway move next follow bindsym $mod+Shift+backslash splith bindsym $mod+minus splitv bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+f fullscreen bindsym $mod+period floating toggle bindsym $mod+comma focus mode_toggle bindsym $mod+a focus parent bindsym $mod+Shift+a focus child bindsym $mod+Shift+s sticky toggle bindsym $mod+Shift+o move scratchpad bindsym $mod+o scratchpad show mode "resize" { bindsym $left resize shrink width 10px bindsym $down resize grow height 10px bindsym $up resize shrink height 10px bindsym $right resize grow width 10px bindsym Return mode "default" bindsym Escape mode "default" bindsym q mode "default" } bindsym $mod+r mode "resize" mode notifications { bindsym Return exec makoctl invoke; exec makoctl dismiss; mode default bindsym d exec makoctl dismiss bindsym Shift+d exec makoctl dismiss -a; mode default bindsym r exec makoctl restore bindsym Escape mode default bindsym q mode default } bindsym $mod+n mode notifications mode passthrough { bindsym $mod+p mode "default" } bindsym $mod+p mode passthrough bar { position bottom # status_command while date +'%a, %d %b %Y %T %z'; do sleep 1; done status_command b-bar colors { statusline #ffffff background #000000 inactive_workspace #32323200 #32323200 #5c5c5c } } seat seat0 hide_cursor 10000 seat seat0 xcursor_theme DMZ-White default_border pixel 4 hide_edge_borders smart for_window [window_role="pop-up"] floating enable for_window [app_id="mumble"] floating enable, inhibit_idle open for_window [app_id="nm-connection-editor"] floating enable for_window [app_id="virt-manager"] floating enable for_window [class="Vncviewer"] floating enable for_window [class="TigerVNC Viewer"] floating enable for_window [app_id="thunar"] floating enable for_window [app_id="pavucontrol"] floating enable for_window [app_id="^[Ff]irefox.*" title="^Picture-in-Picture$"] \ floating enable, move position 68 ppt 67 ppt, sticky enable for_window [app_id="^[Ff]irefox.*" title="Choose User Profile"] \ floating enable for_window [app_id="^[Ff]irefox.*" title="Sharing Indicator"] \ floating enable, kill for_window [class="Chromium"] inhibit_idle open exec mako >/tmp/mako.log 2>&1 exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK exec gsettings set 'org.gnome.desktop.interface' cursor-theme 'DMZ-White' exec gsettings set 'org.gnome.desktop.interface' font-name 'Sans 10' exec b-pacify # exec [ -x "$(command -v nm-applet)" ] && nm-applet --indicator include ~/.config/sway/"$(hostname)"