aboutsummaryrefslogtreecommitdiff
path: root/bin/lockscr1
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lockscr1')
-rwxr-xr-xbin/lockscr114
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/lockscr1 b/bin/lockscr1
index 990515a..cf2b37d 100755
--- a/bin/lockscr1
+++ b/bin/lockscr1
@@ -1,26 +1,14 @@
#! /bin/bash
-unlock() {
- setxkbmap -rules /usr/share/X11/xkb/rules/evdev
- dunstctl set-paused false
-
- bspc wm -r
-}
-
main() {
clear
tty-clock -r -D -B -s -S
- su $USER sh -c '' && unlock || main
+ su $USER sh -c '' || main
}
trap "" 1 2 3 15 20 SIGTSTP
-xkbcomp ~/.local/bspwm-setup/lockscreen.xkb $DISPLAY 2>/dev/null
-
-killall -qw sxhkd polybar
-dunstctl set-paused true
-
sleep 1
main