Make set-initial-kanshi-state only work on laptops

This commit is contained in:
2025-11-30 15:22:15 -08:00
parent e2e8e5e05d
commit d0fd18d254

View File

@ -1,5 +1,8 @@
#!/usr/bin/zsh #!/usr/bin/zsh
# Only run on laptops
[[ "${HOST}" = *-laptop ]] || exit 0
# Wait for the socket # Wait for the socket
if ! [[ -S /run/user/1000/fr.emersion.kanshi.wayland-1 ]]; then if ! [[ -S /run/user/1000/fr.emersion.kanshi.wayland-1 ]]; then
printf 'Waiting for socket .' 1>&2 printf 'Waiting for socket .' 1>&2