dotfiles/scripts/toggle-idle
2024-08-21 11:35:44 -05:00

7 lines
102 B
Bash

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