This commit is contained in:
Hadi
2024-09-20 13:35:40 +02:00
parent f49ac89514
commit 22c67467c0
4 changed files with 15 additions and 18 deletions

View File

@@ -10,11 +10,11 @@ let
caffeine = pkgs.writeShellScriptBin "caffeine" ''
if [[ $(pidof "hypridle") ]]; then
pkill hypridle
systemctl --user stop hypridle.service
title="󰅶 Caffeine Activated"
description="Caffeine is now active! Your screen will not turn off automatically."
else
${pkgs.hyprland}/bin/hyprctl dispatch exec ${pkgs.hypridle}/bin/hypridle
systemctl --user start hypridle.service
title="󰾪 Caffeine Deactivated"
description="Caffeine is now deactivated! Your screen will turn off automatically."
fi