aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-08-03 11:02:04 +0100
committerJustine Smithies <justine@smithies.me.uk>2024-08-03 11:02:04 +0100
commit8688fe4817b726d6ffa1927ba38718bb9f02dce1 (patch)
tree3f752cab9bcb189fb70edcf4d2d3bf196ffff790 /.config/eww/scripts
parentcf6d409c41a4f7fd234afb76c625bd6b9eb0abc6 (diff)
Using fyi notification client now
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/brightnesscontrol2
-rwxr-xr-x.config/eww/scripts/volumecontrol4
2 files changed, 3 insertions, 3 deletions
diff --git a/.config/eww/scripts/brightnesscontrol b/.config/eww/scripts/brightnesscontrol
index 177def6..293e383 100755
--- a/.config/eww/scripts/brightnesscontrol
+++ b/.config/eww/scripts/brightnesscontrol
@@ -17,7 +17,7 @@ function send_notification {
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" 0 $((brightness / 10 )) | sed 's/[0-9]//g')
# Send the notification
- notify-send -i "$icon" --hint=string:x-canonical-private-synchronous:brightness -u normal "$bar $brightness"
+ fyi -i "$icon" --hint=string:x-canonical-private-synchronous:brightness -u normal "$bar $brightness"
}
case $1 in
diff --git a/.config/eww/scripts/volumecontrol b/.config/eww/scripts/volumecontrol
index ff25c21..45db7fd 100755
--- a/.config/eww/scripts/volumecontrol
+++ b/.config/eww/scripts/volumecontrol
@@ -48,7 +48,7 @@ function send_notification {
fi
bar=$(seq -s "─" $(($volume/5)) | sed 's/[0-9]//g')
# Send the notification
-notify-send --hint=string:x-canonical-private-synchronous:volumecontrol -u normal "$icon $bar $volume"
+fyi --hint=string:x-canonical-private-synchronous:volumecontrol -u normal "$icon $bar $volume"
}
case $1 in
@@ -76,7 +76,7 @@ case $1 in
pactl set-sink-mute @DEFAULT_SINK@ toggle
if is_mute ; then
icon="󰝟"
- notify-send --hint=string:x-canonical-private-synchronous:volumecontrol -u normal "$icon Audio Muted"
+ fyi --hint=string:x-canonical-private-synchronous:volumecontrol -u normal "$icon Audio Muted"
else
send_notification
# canberra-gtk-play -i audio-volume-change