blob: f6e88433c731eb584e099b6c4d74f7506e9b9e03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
if [ -s /tmp/lwa.lock ]; then
# On my system, lwa-hot-corners sometimes creates many instances of itself
# This way, I kill the unnecessary processes
# WORKS ONLY when I give the script $PPID as first argument (refer to .lwarc)
kill -KILL $1
exit
fi
echo "Running" > /tmp/lwa.lock
if xprop -root _NET_SHOWING_DESKTOP | egrep '= 1' > /dev/null; then
wmctrl -k off
else
wmctrl -k on
fi
sleep 0.2
rm /tmp/lwa.lock
|