added compatibility with sway

This commit is contained in:
Jürg Hallenbarter
2026-02-09 11:42:36 +00:00
parent 91b07e4589
commit 1a8b6dc83b
12 changed files with 341 additions and 132 deletions

9
scripts/lock.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [ -n "$SWAYSOCK" ]; then
# Sway
swaylock
else
# i3
i3lock
fi