dotfiles/pkgs/scripts/hyprshade.sh
delta 27c9f432a5 linux-cachyos 6.9 kernel
unbound dns caching
some hyprland bash scripts
fix graphical glitches on laptop
tailsacle no accept dns
2024-06-18 22:29:17 +03:00

30 lines
599 B
Bash
Executable file

#!/usr/bin/env bash
# Define the options
options=(
"off"
"blue-light-filter"
"extradark"
"noblue-light"
"noblue-smart"
"noblue"
)
# Prompt user to select an option using dmenu
selected_option=$(printf "%s\n" "${options[@]}" | fzfmenuft)
# Check if selected option is empty (user canceled)
if [[ -z "$selected_option" ]]; then
exit 1
fi
# Construct the hyprshade command based on selected option
if [[ "$selected_option" == "off" ]]; then
command="hyprshade off"
else
command="hyprshade on $selected_option"
fi
# Execute the constructed command
eval $command