This commit is contained in:
Stephan Raabe
2024-05-27 14:37:48 +02:00
parent 6fa297d705
commit e00c9635cd
3 changed files with 7 additions and 19 deletions

View File

@@ -10,17 +10,8 @@
if [[ "$1" == "rofi" ]]; then
# Open rofi to select the Hyprshade filter for toggle
# List all available shaders
option1="blue-light-filter"
option2="vibrance"
option3="invert-colors"
option4="off"
options="$option1\n"
options="$options$option2\n"
options="$options$option3\n$option4"
options="$(hyprshade ls)\noff"
# Open rofi
choice=$(echo -e "$options" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-hyprshade.rasi -i -no-show-icons -l 4 -width 30 -p "Hyprshade")
if [ ! -z $choice ] ;then
@@ -43,8 +34,10 @@ else
if [ -z $(hyprshade current) ] ;then
echo ":: hyprshade is not running"
hyprshade on $hyprshade_filter
notify-send "Hyprshade activated" "with $(hyprshade current)"
echo ":: hyprshade started with $(hyprshade current)"
else
notify-send "Hyprshade deactivated"
echo ":: Current hyprshade $(hyprshade current)"
echo ":: Switching hyprshade off"
hyprshade off