greetd-tlgreet/sway-wlgreet.conf

68 lines
1.4 KiB
Plaintext

# Sway Config: Greeter
#
# Thurstylark
#
#
# Settings
#
# Wallpapers dir
set $wallpapers-path /usr/share/backgrounds
# 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
#
# Set the wallpaper to a random file in the wallpapers dir
output * bg $$(find $wallpapers-path -type f \( -iname \*.jpg -o -iname \*.png \) -not -path $wallpapers-path/sway/\* | shuf -n 1) 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"