fix swayidle
This commit is contained in:
parent
a5c383ed14
commit
468a0d2850
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ let
|
|||
systemctl suspend
|
||||
'';
|
||||
_sway_idle_toggle = pkgs.writeShellScriptBin "_sway_idle_toggle" ''
|
||||
if pidof swayidle > /dev/null; then
|
||||
if systemctl --user status swayidle > /dev/null; then
|
||||
systemctl --user stop swayidle.service
|
||||
else
|
||||
systemctl --user start swayidle.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue