dotfiles/scripts/toggle-idle

8 lines
102 B
Bash

#!/bin/sh
currentdir=$(pgrep hypridle)
if [[ $idle > 0 ]]; then
kill $idle
else
hypridle &
fi