Updates
This commit is contained in:
parent
6fa297d705
commit
e00c9635cd
@ -1,6 +1 @@
|
|||||||
# Define the hyprshade filter
|
hyprshade_filter="blue-light-filter"
|
||||||
# - blue-light-filter
|
|
||||||
# - vibrance
|
|
||||||
# - off
|
|
||||||
# get available filters with hyprshade ls
|
|
||||||
hyprshade_filter="grayscale"
|
|
@ -10,16 +10,7 @@
|
|||||||
if [[ "$1" == "rofi" ]]; then
|
if [[ "$1" == "rofi" ]]; then
|
||||||
|
|
||||||
# Open rofi to select the Hyprshade filter for toggle
|
# Open rofi to select the Hyprshade filter for toggle
|
||||||
|
options="$(hyprshade ls)\noff"
|
||||||
# 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"
|
|
||||||
|
|
||||||
# Open rofi
|
# 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")
|
choice=$(echo -e "$options" | rofi -dmenu -replace -config ~/dotfiles/rofi/config-hyprshade.rasi -i -no-show-icons -l 4 -width 30 -p "Hyprshade")
|
||||||
@ -43,8 +34,10 @@ else
|
|||||||
if [ -z $(hyprshade current) ] ;then
|
if [ -z $(hyprshade current) ] ;then
|
||||||
echo ":: hyprshade is not running"
|
echo ":: hyprshade is not running"
|
||||||
hyprshade on $hyprshade_filter
|
hyprshade on $hyprshade_filter
|
||||||
|
notify-send "Hyprshade activated" "with $(hyprshade current)"
|
||||||
echo ":: hyprshade started with $(hyprshade current)"
|
echo ":: hyprshade started with $(hyprshade current)"
|
||||||
else
|
else
|
||||||
|
notify-send "Hyprshade deactivated"
|
||||||
echo ":: Current hyprshade $(hyprshade current)"
|
echo ":: Current hyprshade $(hyprshade current)"
|
||||||
echo ":: Switching hyprshade off"
|
echo ":: Switching hyprshade off"
|
||||||
hyprshade off
|
hyprshade off
|
||||||
|
@ -199,8 +199,8 @@
|
|||||||
// Hyprshade
|
// Hyprshade
|
||||||
"custom/hyprshade": {
|
"custom/hyprshade": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"on-click": "sleep 0.1; ~/dotfiles/hypr/scripts/hyprshade.sh",
|
"on-click": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh",
|
||||||
"on-click-right": "sleep 0.1; ~/dotfiles/hypr/scripts/hyprshade.sh rofi",
|
"on-click-right": "sleep 0.5; ~/dotfiles/hypr/scripts/hyprshade.sh rofi",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user