added caffeine mode

main
The_miro 2025-09-26 00:00:16 +02:00
parent dec1c91fc1
commit fd67b37c53
2 changed files with 18 additions and 0 deletions

View File

@ -273,6 +273,7 @@ bind= $mainMod CTRL, I, exec, ~/Dotfiles/desktopenvs/hyprland/scripts/getispeed.
#bind= $mainMod SHIFT, I, exec, env GTK_THEME=cyberqueer nm-connection-editor #bind= $mainMod SHIFT, I, exec, env GTK_THEME=cyberqueer nm-connection-editor
bind= $mainMod CTRL, C, exec, dunstctl close-all bind= $mainMod CTRL, C, exec, dunstctl close-all
bind= $mainMod CTRL, G, exec, ~/Dotfiles/desktopenvs/hyprland/scripts/onscreenkb.sh bind= $mainMod CTRL, G, exec, ~/Dotfiles/desktopenvs/hyprland/scripts/onscreenkb.sh
bind= $mainMod SHIFT, C, exec, ~/Dotfiles/desktopenvs/hyprland/scripts/caffeine.sh
bind= $mainMod CTRL, W ,exec, hyprctl hyprsunset gamma +10 bind= $mainMod CTRL, W ,exec, hyprctl hyprsunset gamma +10
bind= $mainMod CTRL, S ,exec, hyprctl hyprsunset gamma -10 bind= $mainMod CTRL, S ,exec, hyprctl hyprsunset gamma -10

View File

@ -0,0 +1,17 @@
#!/bin/bash
statecon=$( pidof hypridle | grep "[1234567890]" )
#echo $statecon
if [ "$statecon" != "" ]; then
notify-send -t 1000 "caffeine mode on"
killall hypridle
else
notify-send -t 1000 "caffeine mode off"
hyprctl dispatch exec hypridle
fi