Skip to content

Commit e6c1363

Browse files
committed
fix: wonky scroll for waybar brightness and volume by incresing timeout
1 parent d3222f4 commit e6c1363

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Configs/.local/lib/hyde/brightnesscontrol.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ send_notification() {
3333
# shellcheck disable=SC2154
3434
ico="${iconsDir}/Wallbash-Icon/media/knob-${angle}.svg"
3535
bar=$(seq -s "." $((brightness / 15)) | sed 's/[0-9]//g')
36-
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 7 -t 800 -i "${ico}" "${brightness}${bar}" "${brightinfo}"
36+
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 7 -t 2000 -i "${ico}" "${brightness}${bar}" "${brightinfo}"
3737
}
3838

3939
get_brightness() {

Configs/.local/lib/hyde/volumecontrol.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ notify_vol() {
5555
[ "$angle" -gt 100 ] && angle=100
5656
ico="${icodir}/${iconStyle}-${angle}.svg"
5757
bar=$(seq -s "." $((vol / 15)) | sed 's/[0-9]//g')
58-
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 800 -i "${ico}" "${vol}${bar}" "${nsink}"
58+
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 2000 -i "${ico}" "${vol}${bar}" "${nsink}"
5959
}
6060

6161
notify_mute() {
6262
mute=$(pamixer "${srce}" --get-mute | cat)
6363
[ "${srce}" == "--default-source" ] && dvce="microphone" || dvce="speaker"
6464
if [ "${mute}" == "true" ]; then
65-
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 800 -i "${icodir}/muted-${dvce}.svg" "muted" "${nsink}"
65+
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 2000 -i "${icodir}/muted-${dvce}.svg" "muted" "${nsink}"
6666
else
67-
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 800 -i "${icodir}/unmuted-${dvce}.svg" "unmuted" "${nsink}"
67+
[[ "${isNotify}" == true ]] && notify-send -a "HyDE Notify" -r 8 -t 2000 -i "${icodir}/unmuted-${dvce}.svg" "unmuted" "${nsink}"
6868
fi
6969
}
7070

0 commit comments

Comments
 (0)