SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-01-03 04:42:21

ShazbotMcNasty
Member
Registered: 2009-05-07
Posts: 11

How to bind volume keys with xbindkeys

Last edited by ShazbotMcNasty (2010-07-14 21:01:24)


Yup....

Offline

Help fund CrunchBang, donate to the project!

#2 2010-01-03 12:09:27

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 600
Website

Re: How to bind volume keys with xbindkeys

Hello,

why do you use xbindkeys when you can do the same thing in your rc.xml with openbox ?

I use something like this :

    <keybind key="W-Up">
      <action name="Execute">
        <execute>aumix -v +10</execute>
      </action>
    </keybind>

    <keybind key="W-Down">
      <action name="Execute">
        <execute>aumix -v -10</execute>
      </action>
    </keybind>

Offline

#3 2010-01-04 15:28:13

jk26926
Member
Registered: 2008-12-12
Posts: 32

Re: How to bind volume keys with xbindkeys

some of us still like the GUI. I personally have borked my machine more than once by missing a keystroke while editing a .xml. Sure I backed up the file and was able to un-break it but not every one is that good from the command line.

Offline

#4 2010-01-04 15:33:04

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 600
Website

Re: How to bind volume keys with xbindkeys

Hello jk26926,

I have a question .. What happen if you use a key bind with xbindkeys that is already in your rc.xml ?

and for keybind / openbox , you have obkey ( but I never use it .. )

Last edited by ADcomp (2010-01-04 15:34:38)

Offline

#5 2010-01-04 16:27:41

paulsenior
#! CrunchBanger
From: Muenster, Germany
Registered: 2009-02-12
Posts: 100

Re: How to bind volume keys with xbindkeys

Hello there, did you tried

xbindkeys -k

?

That works very well, and then you just have to edit it into your xbindkeysrc
The result maybe looks something like this:

  "no command"
      m:0x10 + c:122
      NoSymbol

And now just edit it with your commands:

  "amixer sset toggle"
      m:0x10 + c:122
      NoSymbol

@ADcomp:
On my machine it starts both keybinds(from rc.xml and xbindkeysrc), veryusefull sometimes wink

Last edited by paulsenior (2010-01-04 16:29:09)


From Germany --> Bad English smile

Offline

#6 2010-01-04 16:43:14

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 600
Website

Re: How to bind volume keys with xbindkeys

@ paulsenior :  ok .. Thanks  smile

Offline

#7 2011-02-17 12:22:03

bozhkov
#! Junkie
Registered: 2009-12-29
Posts: 464

Re: How to bind volume keys with xbindkeys

Offline

#8 2011-10-09 13:51:39

bootstrap
Member
Registered: 2011-10-04
Posts: 29
Website

Re: How to bind volume keys with xbindkeys

Offline

#9 2011-10-09 14:49:29

thevdude
#! Junkie
From: Pittsburgh, PA
Registered: 2011-09-01
Posts: 469

Re: How to bind volume keys with xbindkeys

Offline

#10 2011-10-25 01:40:49

Kevins4
Member
Registered: 2011-09-30
Posts: 24

Re: How to bind volume keys with xbindkeys

Offline

#11 2013-10-23 07:48:21

He_!
Member
Registered: 2013-05-19
Posts: 31

Re: How to bind volume keys with xbindkeys

#!/bin/bash

pkill -15 xfce4-notifyd;

VOLUMENOW=`amixer get Master | grep "Front Left:" | awk '{print $5}'`

amixer sset Master 3%+ unmute;
 
#notify-send "$VOLUMENOW";

notify-send -i /usr/share/icons/elementaryXubuntu-dark/notifications/48/audio-volume-medium.svg Vol "<b>$VOLUMENOW</b>";


sleep 2;
pkill -15 xfce4-notifyd;

Last edited by He_! (2013-10-25 15:02:00)

Offline

#12 2013-10-23 11:55:25

He_!
Member
Registered: 2013-05-19
Posts: 31

Re: How to bind volume keys with xbindkeys

I just found that instead of using

 amixer sset Master 3%+ unmute 

this can be used instead:

pactl set-sink-volume 0 +3%

Its advantage and disadvantage is that it does not stop increasing at 100%

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo