nixos-config/scripts/_sway_idle_toggle
2023-05-04 19:32:12 -03:00

12 lines
160 B
Bash

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