This commit is contained in:
Stephan Raabe
2024-05-15 17:42:32 +02:00
parent e1e9431555
commit 27646d04c5
6 changed files with 38 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
bind = $mainMod CTRL, S, exec, ~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage
bind = $mainMod CTRL, P, exec, hyprpicker -a
bind = $mainMod SHIFT, S, exec, ~/dotfiles/hypr/scripts/hyprshade.sh
# Workspaces
bind = $mainMod, 1, workspace, 1
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
hyprshade_filter="blue-light-filter"
if [ -f ~/dotfiles/.settings/hyprshade.sh ] ;then
source ~/dotfiles/.settings/hyprshade.sh
fi
if [ "$hyprshade_filter" != "off" ] ;then
if [ -z $(hyprshade current) ] ;then
echo ":: hyprshade is not running"
hyprshade on $hyprshade_filter
echo ":: hyprshade started with $(hyprshade current)"
else
echo ":: Current hyprshade $(hyprshade current)"
echo ":: Switching hyprshade off"
hyprshade off
fi
else
if [ -z $(hyprshade current) ] ;then
hyprshade off
fi
echo ":: hyprshade turned off"
fi