diff --git a/.config/sway/config.d/10-variables.conf b/.config/sway/config.d/10-variables.conf index 884891a..247f18f 100644 --- a/.config/sway/config.d/10-variables.conf +++ b/.config/sway/config.d/10-variables.conf @@ -7,7 +7,7 @@ set $right l set $menu dmenu_path | dmenu | xargs swaymsg exec -- set $term alacritty -set $browser firefox +set $browser librewolf set $files thunar set $wallpapers $HOME/.config/wallpapers set $lock swaylock -F -f -i $wallpapers/lock.png diff --git a/.config/sway/config.d/30-startup.conf b/.config/sway/config.d/30-startup.conf index 89c0525..ac1a791 100644 --- a/.config/sway/config.d/30-startup.conf +++ b/.config/sway/config.d/30-startup.conf @@ -1,11 +1,14 @@ +# fix slow startup time +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + # Lock after $screen_timeout # Turn off screen after $screem_timeout - 10 # Lock if screen off - -xwayland force - -# fix slow startup time -exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK +exec swayidle -w \ + timeout $(($screen_timeout + 10)) "$lock" \ + timeout $screen_timeout 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep "$lock" # GTK theme exec gsettings set org.gnome.desktop.interface gtk-theme "Materia-dark" @@ -21,11 +24,3 @@ exec /usr/libexec/polkit-gnome-authentication-agent-1 # before-sleep $lock exec gammastep exec nm-applet --indicator -exec flameshot - - -exec swayidle -w \ - timeout $(($screen_timeout + 10)) "$lock" \ - timeout $screen_timeout 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep "$lock"