You are not logged in.

#1 2009-04-23 17:43:40

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Openbox and system sounds?

Here is a weird question:

Is it possible to set system sounds in Openbox or other WM's the way one can set them in the bigger DE's?

So far from googling and looking through the forums/wiki, the only think I have found was using sox in start up/shutdown scripts to make the sound play. While that works for start up and shutdown stuff, It would be kinda neat to have it play some more audio amusements for things like roll up/down or desktop switching.

If there isn't I may have to write one just for that purpose to test out some of my new programing skills. (ya, they are newbie skills, so I have to buff them somehow!)


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#2 2009-04-23 18:31:45

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: Openbox and system sounds?

For me that would just be annoying, I'm surfing the net, listening to my music, and every time i closed a window, desktop switch, etc.. I have to hear a special sound? nay, not for me.

Offline

#3 2009-04-23 18:41:14

fuscia
Member
Registered: 2008-04-21
Posts: 398

Re: Openbox and system sounds?

a mild electric shock, through the mouse, might be kinda cool.

Offline

#4 2009-04-26 19:09:39

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Openbox and system sounds?

The shock might be amusing.

Personally I rarely ever listen to music on my laptop. The sound is too tinny for most of my musical score.

I was simply curious about adding system sounds to the *Boxes. I sorta figured it wasn't available right yet. I may have to code something once I finish out this next week of school.

I had forgotten just how exciting summers were till I went back to college.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#5 2013-02-13 18:58:33

Raymih
Member
Registered: 2013-02-13
Posts: 1

Re: Openbox and system sounds?

if you wanted a sound to play whenever you close a window, then you could edit your obenbox rc.xml under the <mouse> section:
    <context name="Close">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="Left" action="Click">
        <action name="Close"/>
        <action name="Execute">
          <command>play -q /path/to/sound/clip.mp3</command>
        </action>
      </mousebind>
    </context>

Offline

Board footer

Powered by FluxBB