summaryrefslogtreecommitdiff
path: root/gui-apps/myswaylock/files
diff options
context:
space:
mode:
Diffstat (limited to 'gui-apps/myswaylock/files')
-rwxr-xr-xgui-apps/myswaylock/files/myswaylock6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui-apps/myswaylock/files/myswaylock b/gui-apps/myswaylock/files/myswaylock
new file mode 100755
index 0000000..87cfaf0
--- /dev/null
+++ b/gui-apps/myswaylock/files/myswaylock
@@ -0,0 +1,6 @@
+#!/bin/sh
+BACKS="/usr/share/backgrounds"
+
+swaymsg input type:keyboard xkb_layout us
+
+exec swaylock -f -n -c 000000 -i "$(shuf -n1 -e "$BACKS"/*)"