# Sway Config: Greeter # # Thurstylark # # # Settings # # Use script to grab a random wallpaper from tl-wallpaper collection set $wallpaper-path $$(/usr/share/backgrounds/thurstylark/tl-wallpaper-shuf.bash) # Fallback color if no wallpapers exist set $fallback-color "#333333" # Cursor hide delay (in ms) set $cursor-delay "100" # Display sleep idle time set $dispsleep-time "10" # Display sleep and wake commands set $dispsleep 'swaymsg "output * dpms off"' set $dispwake 'swaymsg "output * dpms on"' # The input devices worth paying attention to set $touchpad "2:7:SynPS/2_Synaptics_Touchpad" set $trackpoint "2:10:TPPS/2_IBM_TrackPoint" # wlgreet config location set $wlgreet-config /etc/greetd/tlgreet/wlgreet.toml # wlgreet command set $wlgreet-command sway # waybar config location set $waybar-config /etc/greetd/tlgreet/waybar.conf set $waybar-css /etc/greetd/tlgreet/waybar.css # # Setup # # Exit on Mod4+Shift+R, effectively restarting the greeter bindsym Mod4+Shift+r exit # Set the wallpaper to a random file in the wallpapers dir output * bg $wallpaper-path fill $fallback-color # Touchpad options input $touchpad { pointer_accel 0.5 } # Disable Trackpoint input $trackpoint events disabled # Hide cursor after delay seat * hide_cursor $cursor-delay # Display sleep setup exec swayidle timeout $dispsleep-time $dispsleep resume $dispwake # Start waybar exec "waybar --config $waybar-config --style $waybar-css" # The greeter itself exec "wlgreet --command $wlgreet-command --config $wlgreet-config; swaymsg exit"