2020-06-20 05:44:36 +00:00
|
|
|
# Sway Config: Greeter
|
|
|
|
#
|
|
|
|
# Thurstylark
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Settings
|
|
|
|
#
|
|
|
|
|
|
|
|
# Wallpapers dir
|
2020-09-11 01:01:29 +00:00
|
|
|
set $wallpapers-path /usr/share/backgrounds/
|
2020-06-20 05:44:36 +00:00
|
|
|
|
2020-06-20 05:55:42 +00:00
|
|
|
# Fallback color if no wallpapers exist
|
|
|
|
set $fallback-color "#333333"
|
|
|
|
|
2020-06-20 05:44:36 +00:00
|
|
|
# Cursor hide delay (in ms)
|
|
|
|
set $cursor-delay "100"
|
|
|
|
|
|
|
|
# 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
|
2020-09-11 01:01:29 +00:00
|
|
|
output * bg `find $wallpapers-path -type f -name *.jpg | shuf -n 1` fill $fallback-color
|
2020-06-20 05:44:36 +00:00
|
|
|
|
|
|
|
# Touchpad options
|
|
|
|
input $touchpad {
|
|
|
|
pointer_accel 0.5
|
|
|
|
}
|
|
|
|
|
|
|
|
# Disable Trackpoint
|
|
|
|
input $trackpoint events disabled
|
|
|
|
|
|
|
|
# Hide cursor after delay
|
|
|
|
seat * hide_cursor $cursor-delay
|
|
|
|
|
|
|
|
# Start waybar
|
|
|
|
exec "waybar --config $waybar-config --style $waybar-css"
|
|
|
|
|
|
|
|
# The greeter itself
|
|
|
|
exec "wlgreet --command $wlgreet-command --config $wlgreet-config; swaymsg exit"
|