added caffeine mode
parent
dec1c91fc1
commit
fd67b37c53
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue