diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index 92be6d7..3cd8007 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -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 CTRL, C, exec, dunstctl close-all 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, S ,exec, hyprctl hyprsunset gamma -10 diff --git a/desktopenvs/hyprland/scripts/caffeine.sh b/desktopenvs/hyprland/scripts/caffeine.sh new file mode 100755 index 0000000..0fb1eb7 --- /dev/null +++ b/desktopenvs/hyprland/scripts/caffeine.sh @@ -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 + +