12 lines
160 B
Plaintext
12 lines
160 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
swayidlectl() {
|
||
|
systemctl --user $1 swayidle.service
|
||
|
}
|
||
|
|
||
|
if swayidlectl status > /dev/null; then
|
||
|
swayidlectl stop
|
||
|
else
|
||
|
swayidlectl start
|
||
|
fi
|