You are not logged in.

#1 2020-09-02 21:33:28

leminhman0312
Banned
Registered: 2020-07-12
Posts: 24

[SOLVED] Show volume notification with visual feedback on i3

.

Last edited by leminhman0312 (2024-09-22 15:44:08)

Offline

#2 2020-09-03 06:08:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,687

Re: [SOLVED] Show volume notification with visual feedback on i3

Not sure whether and how xfce4-notifyd supports some extra actions built-in, but you could have a look at eg.

https://github.com/dastorm/volume-notif … /volume.sh
https://www.reddit.com/r/unixporn/comme … ith_dunst/
https://gist.github.com/sebastiencs/5d7 … 2e783fbd6a

Offline

#3 2020-09-03 18:33:29

leminhman0312
Banned
Registered: 2020-07-12
Posts: 24

Re: [SOLVED] Show volume notification with visual feedback on i3

.

Last edited by leminhman0312 (2024-09-22 15:44:23)

Offline

#4 2020-09-03 19:20:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,687

Re: [SOLVED] Show volume notification with visual feedback on i3

I could not get a slide bar

Why not?
I linked some scripts, there's a script in the dunst link, I've actually a personal implementation…

#!/bin/sh
if [ $1 = 0 ]; then
    bar="?   Mute"
else
    bar="♫  "
    ((chunks=${1}/10))
    for ((i=0;i<chunks;++i)); do
        bar="${bar} ●"
    done
    if (($1-10*chunks > 4)); then
        bar="${bar} ◉"
        ((++chunks))
    fi
    for ((i=chunks;i<10;++i)); do
        bar="${bar} ○"
    done
    #bar="${bar} (${1}%)"
fi
dunstify "$bar" -u low -t 1000 -h int:value:"$1" -h string:synchronous:"$bar" --replace=555

(expects an integer parameter [0,100] that I filter out of "amixer sset" when changing the volume)

Something™ should work for you, no?

Offline

Board footer

Powered by FluxBB