aboutsummaryrefslogtreecommitdiff
path: root/bin/lock-screen
blob: 8bb2533510e639f4db33a786eec4ead8a7366bb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash

main() {
	tty-clock -r -D -B -s -S
	su $USER sh -c '' && (setxkbmap -rules /usr/share/X11/xkb/rules/evdev; bspc wm -r) || main
}

trap "" 1 2 3 15 20 SIGTSTP

xkbcomp ~/.local/bspwm-setup/lockscreen.xkb $DISPLAY

killall -qw sxhkd polybar
bspc node -t fullscreen

sleep 1

main