set $mod Mod4 set $left h set $down j set $up k set $right l set $term alacritty set $emacs emacsclient -c set $menu fuzzel -r0 -b 282828f2 -C 458588f2 -B 3 -s 458588f2 -S 282828FF --font "Terminus:size=12" -p "run: " set $laptop-display eDP-1 set $generic-display HDMI-A-1 set $primary-home-display 'Iiyama North America PLE2407HDSD 0x01010101' set $secondary-home-display 'Dell Inc. DELL E190S M8VPV186CELI' set $primary-display-layout 'Samsung Electric Company C34H89x HTJM200007' $primary-home-display $generic-display $laptop-display set $secondary-display-layout $secondary-home-display $laptop-display # output * bg SPOILER_33.png fill output * bg #002b36 solid_color output $laptop-display resolution 1920x1080 position 1920,0 output $generic-display resolution 1920x1080 position 0,0 output $primary-home-display resolution 1920x1080 position 0,0 output $secondary-home-display resolution 1280x1024 position 1920,0 set $opacity 0.9 client.focused #002b36 #586e75 #eee8d5 #268bd2 client.focused_inactive #002b36 #073642 #93a1a1 #268bd2 client.unfocused #002b36 #073642 #93a1a1 #268bd2 client.urgent #002b36 #dc322f #fdf6e3 #002b36 input type:keyboard { xkb_layout pl,us } input type:touchpad { tap enabled middle_emulation enabled } bindsym $mod+Shift+s output $laptop-display toggle set $swaylock 'swaylock -f -c 000000 --font "Terminus"' exec swayidle -w \ timeout 280 $swaylock \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ before-sleep $swaylock # inhibit_idle fullscreen bindsym $mod+Escape exec $swaylock bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ bindsym XF86MonBrightnessDown exec brightnessctl set 5%- bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPause exec playerctl pause bindsym print exec grimshot --notify copy area bindsym $mod+print exec grimshot --notify copy output bindsym $mod+Ctrl+print grimshot save area - | swappy -f - bindsym $mod+Return exec $term bindsym $mod+Shift+q kill floating_modifier $mod normal bindsym $mod+Shift+c reload bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' 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 workspace 1 output $primary-display-layout workspace 2 output $primary-display-layout workspace 3 output $secondary-display-layout workspace 4 output $secondary-display-layout workspace 9 output $primary-display-layout workspace 10 output $secondary-display-layout 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+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 assign [app_id="(firefox-default|Firefox|qutebrowser|Chromium-browser)"] 2 assign [instance="(chromium-browser)"] 2 assign [instance="(spotify)"] 3 assign [app_id=".blueman-manager-real"] 3 assign [app_id="pavucontrol"] 3 assign [app_id="(org.telegram.desktop)"] 4 assign [app_id="vesktop"] 4 assign [app_id="com.ktechpit.whatsie"] 4 assign [instance="(discord)"] 4 # for_window [app_id="vesktop"] opacity $opacity bindsym $mod+b splith bindsym $mod+v splitv bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+f fullscreen bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+a focus parent bindsym $mod+Shift+minus move scratchpad bindsym $mod+minus 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 Control+g mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" set $default swaymsg mode default mode "menu" { bindsym --no-repeat e exec '$default; $emacs;' bindsym --no-repeat w exec "$default; whois-at-hsp -n" bindsym Return mode "default" bindsym Control+g mode "default" bindsym Escape mode "default" } bindsym $mod+o mode "menu" workspace_layout tabbed # default_border normal 3 # gaps outer 0 # gaps inner 6 # corner_radius 4 # blur_xray disable # blur enable # layer_effects "waybar" blur enable font Terminus (TTF) 12 bindsym $mod+p exec $menu # Taken from dawivil dotfiles. exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway # exec udiskie -t exec mako --font "Terminus (TTF)" --outer-margin=5 --margin=3 --border-size=3 --default-timeout=7000 --background="#282828e0" exec nm-applet --indicator exec blueman-applet exec waybar exec udiskie -t exec wlsunset -l 51.919438 -L 19.145136