Create volume notification osd

Forum rules
Before you post please read how to get help

Create volume notification osd

Postby speeedfire on Thu Mar 06, 2014 11:33 am

I wanna call the cinnamon volume nofitication-osd.
My idea:
I use crtl + [+] or ctrl + [-] for volume up and volume down and show notification.

Code: Select all
#volume up
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +1%"

#volume down
sh -c "pactl set-sink-mute 0 false ; pactl -- set-sink-volume 0 -1%"



How to call notification?
speeedfire
Level 1
Level 1
 
Posts: 2
Joined: Thu Mar 06, 2014 11:28 am

Linux Mint is funded by ads and donations.
 

Re: Create volume notification osd

Postby tigrezno on Wed Mar 19, 2014 6:28 pm

You can install the "xosd-bin" package, that includes a command named "osd_cat" for scripts

Its output is shown on the screen like an osd (I've used it in the past and works well)

For the "volume up" script you can show a text like "volume up" or just get the output from pactl and filter the current value for volume "volume: 35%"
tigrezno
Level 1
Level 1
 
Posts: 12
Joined: Sat Mar 08, 2014 1:58 pm

Re: Create volume notification osd

Postby speeedfire on Thu Mar 20, 2014 10:58 am

tigrezno wrote:You can install the "xosd-bin" package, that includes a command named "osd_cat" for scripts

Its output is shown on the screen like an osd (I've used it in the past and works well)

For the "volume up" script you can show a text like "volume up" or just get the output from pactl and filter the current value for volume "volume: 35%"


Not bad, but i wanna the cinnamon osd. :)
speeedfire
Level 1
Level 1
 
Posts: 2
Joined: Thu Mar 06, 2014 11:28 am

Re: Create volume notification osd

Postby tigrezno on Thu Mar 20, 2014 3:38 pm

Then use the "notify-send" command and it will appear as any other notification on the screen
tigrezno
Level 1
Level 1
 
Posts: 12
Joined: Sat Mar 08, 2014 1:58 pm

Re: Create volume notification osd

Postby ericramos1990 on Wed Mar 26, 2014 12:53 pm

Any way to replicate this:
Attachments
volexample.png
volexample.png (9.92 KiB) Viewed 506 times
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 153
Joined: Sun Jul 21, 2013 11:54 am


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest