Setting Volume Keyboard Shortcuts

How can I assign system wide up/down volume controls to Fn keys on a non-Apple keyboard?

If you use alsa, try make bind to volume keys such script:
$cat /usr/local/bin/volime-ctl
#!/bin/sh
MUTE="off"
if [ 'X'$1 == 'Xmute' ]; then
amixer -q set Master off
MUTE="on"
else
LEVEL=`cat /proc/acpi/ibm/volume | awk '/^level:/ {print $2}'`
VOLUME=`perl -e "printf (\"%2.0f\n\", $LEVEL/15*100);"`
fi
if [ $MUTE == 'on' ]; then
INFO=MUTED
ICON=audio-volume-muted
else
if [ $VOLUME -eq 0 ]; then
ICON=audio-volume-off
elif [ $VOLUME -lt 33 ]; then
ICON=audio-volume-low
elif [ $VOLUME -lt 66 ]; then
ICON=audio-volume-medium
else
ICON=audio-volume-high
fi
VOLUME="${VOLUME}%"
amixer -q sset Master $VOLUME on
fi
/usr/bin/notify-send --expire-time=2000 "Volume Control" "$VOLUME" -i $ICON
Many interesting you could found at http://www.thinkwiki.org/wiki/ThinkWiki
Last edited by kurych (2011-12-11 19:59:11)

Similar Messages

  • Function keys, Volume & Keyboard shortcuts make me sad

    As with many of you, I've just upgraded to 10.5, and I'm having infinite problems with volume control.
    I'm using one of the new slim apple keyboards (and oh its fine, but besides..) and the volume control is on the F key row at the top (as opposed to over the num pad, and yes I've attempted to just use the buttons above the num pad, but alas, nothing).
    The problem I'm having is that I can either have keyboard volume control, OR I can use the other F keys for various other functions and bindings, but not both.
    The option for this is (as expected) under *Keyboard & Mouse, Use all F1, F2, etc. keys as standard function keys*
    All I want is volume control and the ability to use the other keys for other applications, even if I had to install a program of some description in order to have this work
    The alternative is to find out how to set it up as an actual keyboard shortcuts through *Keyboard & Mouse, Keyboard Shortcuts*, but as volume control has no text, it becomes rather difficult to say what menu title it is.

    I have the keyboard hooked up to a MacBook Pro under 10.4.10. Now I can't use the function keys in combination with shift. For instance in Photoshop, the command fill with forground colour (=shift + F5) is not working. How can I fix this?

  • Volume keyboard shortcut not working (since upgrade to Snow Leopard)

    The following keyboard shortcut commands, when I have upgraded to OS 10.6 a couple of months ago, have stopped working:
    Command-Up Arrow
    Command-Down Arrow
    (They control the volume of the iTunes application itself)
    Apparently they still exist according to: http://www.apple.com/itunes/how-to/shortcuts.html
    I have the newest version of OS X and itunes, respectively: 10.6.2 and 9.0.2

    Try adding every drive to Spotlight's Privacy Pane in System Preferences>Spotlight, wait a few minutes & remove them, then wait a few hours/days to see if it's better.
    Though slower, in the intterim, you might try...
    EasyFind...
    http://www.macupdate.com/info.php/id/11076
    Find Any File...
    http://www.macupdate.com/info.php/id/30079/find-any-file
    I've actually disabled the worst Searh utility/Function I've ever seen on most of my Macs, just keep Spotlight active on a couple to try to assist with all it's problems.

  • How do I set up Keyboard shortcuts to match Windows Excel?

    At work I use MS Excel on Windows and I use the keyboard shortcuts a lot.
    eg. Alt+= for sum the cells above
    Alt+I, Alt+R for insert a row
    Alt+D for downfill
    How do I set this up on iWork numbers?
    Also, where could I go to find out how to do this on MS Excel 2008 for Mac?
    Thanks,

    As Yvan said, it is in the help files. The procedure is
    1) Open System Preferences and navigate to the Keyboard section then keyboard shortcuts.
    2) Hit the + to add a new shortcut
    3) Having it apply to All Applications is the default. You may want to use that because otherwise you'll have to do this once for Numbers and once for Excel. On the other hand, it might screw up an existing shortcut in another application if you are using a key combination assigned to something else in that application.
    4) Type in the menu title EXACTLY as it is in the menu. Capitalization and punctuation are important. You don't need to put Insert/Function/Sum, just Sum.
    5) Choose a key combination. Note that some key combinations cannot be reassigned. For instance, Alt+ (actually this is Option=) does not work; it inserts a not equal to symbol. Nor does Command+ (Command=) because it is assigned by Numbers to something else. Control+ will work. You can, however, make a different shortcut for the existing Command= shortcut (Format/Font/Bigger) so there is no conflict.
    6) Click Add.
    Message was edited by: Badunit

  • How do I set the keyboard shortcut for zoom tool to be r-clicking the mouse?

    I want to have the r-click of my mouse be the zoom tool like in Quark Xpress. Can I make the Z shortcut to choosing the Zoom tool instead a r-click? I know how to get into keyboard shortcuts - just dont know what to type in for the new shortcut to make it a r-click. right now its 2 steps to zoom rather than in quark 1. not that I want to go back. lol.
    also, while were talking about migration differences and extra steps, is there a way I can hide guides and set overprint preview in one step? (this is something I do often and was just a simple F7 in quark)
    so these are just 2 things that take 2 steps in ID but one in quark. not that I want to go back. lol

    OK, I've been doing this since CS2 with no need for a script. To hide guides and show preview...
    1) Go to 'Keyboard Shortcuts'
    2) Go to 'Product Area - Tools'. Yes, you'd think it would be in Views! But the buttons for this is at the bottom of the Tool Bar.
    3) Go to 'Commands: Toggle view setting between default and preview'
    4) Click your cursor inside 'New Shortcut' and hit the key you want or type it in. I choose the unused F2 key
    5) Click the 'Assign' button and you are set. Hit the key to switch back and forth.
    As for your mouse Zoom, use Power Zoom as described above or just hold down the Alt/Option button in 'Hand' mode and use the scroll wheel to zoom in and out. Not one step but it works!
    Now you won't miss Quark at all!

  • Volume Keyboard Shortcut

    Couldn't find answers.
    I have a Macmini and a windows keyboard with no volume control. Is there a keyboard shortcut for MAC OS X for volume control on normal keyboards?

    Apparently not, but I didn't peruse all the items in links at the bottom of http://support.apple.com/kb/HT1343

  • Trouble setting up keyboard shortcut close tab groups

    Have tried at least three different key combos using workspace, keyboard shortcuts.
    Have set them up successfully but they don't seem to want to close tab groups.
    I have set up other special keyboard shortcuts (like flatten image) which work great

    Does it work if you use Insert Menu Item and choose Window>Properties for an action?
    Then you could assign a function key for the action.

  • How do I set a keyboard shortcut to open a new terminal window?

    Service -> Keyboard Shortcuts allows me to open the first one, but I would like a keyboard shortcut to open new windows as well.

    Hi Raymond,
    Terminal already has a keyboard shortcut to open a new window (Command + N).
    gl,
    kel

  • How to set mac KEYBOARD shortcuts (for mac OS and windows OS)

    i am having a bit of an issue.
    i run windows 7 and mac os on the same computer on different hard drives in this computer. i also have a "mac" keyboard. i am not sure how this may be different from a "windows keyboard" but the point is i need to use this keyboard because it matches the one on my laptop which is a mac.
    when i switch to windows on this machine i always end up deleting information because the CMD + X and CMD + V cut and paste shortcuts on Mac OS are not the same in windows. windows requires (currently) CTRL + X and CTRL + V. so when i got to cut and paste in windows CTRL + X (this is my habitual way of working) and then i run a CTRL + V i end up writing /over/ the text i selected with a "x" and i end up pasting /over/ the text i selected to paste over with a "v". this is because instead of running a cut and paste, this set of shortcuts in windows simply enters "x" and "y" respectively since the shortcut is not active.
    does anyone know where i set these in windows OS and in mac OS?
    also, does anyone know if it is possible to set how many UNDOS i can do in either of these OS's or to know how many i can in fact undo?
    THANKS
    long story background:
    1. while i may move to a windows keyboard on the computer i am using (because the mac keyboards these days end up losing keys and they end up very wobbly) i cannot do this for the laptop machine so this may not make a lot of sense if i end up also running windows on the laptop which is my intention at some point.
    2. CTRL + X is a very long stretch on the mac keyboard so rather than switching mac shortcuts to accommodate windows shortcuts i am thinking to switch windows shortcuts to mac ATM.
    3. this is no small issue! i just went to copy and paste this text so i could save it for myself in order to explain to someone else and i ended up overwriting with a "c". if i had not thought fast and remembered to UNDO by hitting CTRL - X and not CMD - X i might have lost all my work.

    You don't necessarily need netcfg to get networking. But I used it before for my wireless on my laptop, so I just used the same on my desktop too. Also if you want to do things like this its easier rather than have to go digging around with macspoof and what not. your netcfg eth0 file could be something like
    PRE_UP='ip link set eth0 address XX:XX:XX:XX:XX:XX'
    CONNECTION='ethernet'
    DESCRIPTION='A basic dhcp ethernet connection using iproute'
    INTERFACE='eth0'
    IP='dhcp'
    If you use a different interface then obviously, you need to change it accordingly

  • Remap Volume Keyboard Shortcuts?

    Hello Apple Community. Anyone know how I can remap the volume up/down/mute keys with the standard function keys turned on? I'm using a Mac Pro and I want to be able to use the standard keys when I'm editing but I can't find a fast way on my keyboard to adjust the volume since there's no "fn" key like there is on my MacBook Pro. Anyone have any thoughts? I'd love to be able to set F10-12 to adjust the volume as standard fn keys instead of with Apple's super-duper presets. PLEASE HELP!
    -Rob

    I have the keyboard hooked up to a MacBook Pro under 10.4.10. Now I can't use the function keys in combination with shift. For instance in Photoshop, the command fill with forground colour (=shift + F5) is not working. How can I fix this?

  • How to set a keyboard shortcut for open with VLC player

    Hey everyone!
    I have reffered the earlier discussion upon creating a shortcut for the open with function and the below is the correct answer for it by using applescript editor submitted by Barney. However, I couldn't get past the 1st paragraph. It all just went over my head. Especially the "open (thefilelist) " part. Which filelist is being referred to here? All I want is a shortcut for opening files with .avi, .mpeg, and .3gp exts. with VLC player. Please help me out by providing the exact stuff I need to paste in the applescript.
    Thanks
    Ok, this one works both on the finder selection and as a droplet:
    property htmlList : {"htm", "html"}
    property htmleditor : "TextWrangler"
    property textList : {"txt", "text"}
    property texteditor : "TextEdit"
    --property myappextlist: {"ext1","ext2","ext3"}
    -- property myappsname: "myAppName" on run
    tell application "Finder"
    set the fileList to the selection
    repeat with aFile in fileList
    set theFile to aFile as string
    my myOpen(theFile)
    end repeat
    end tell
    end run on open (thefileList)
    repeat with i from 1 to number of items in thefileList
    set this_item to item i of thefileList
    my myOpen(this_item)
    end repeat
    end open on myOpen(aFileAlias)
    set theItemInfo to info for (alias aFileAlias)
    if not folder of theItemInfo then
    set theExtension to name extension of theItemInfo
    if theExtension is in htmlList then
    tell application htmleditor
    open aFileAlias
    activate
    end tell
    end if
    if theExtension is in textList then
    tell application texteditor
    open aFileAlias
    activate
    end tell
    end if
    -- if theExtension is in myappextlist then
    -- tell application myAppName
    -- open this_item
    -- activate
    -- end tell
    -- end if
    end if end myOpen

    Luds.R wrote:
    I have reffered the earlier discussion
    I have the feeling of dropping in in the middle of the conversation.
    Anyway, try this
    --script begins
    property myVLC : "/Applications/VLC/VLC.app"
    property myTypes : {"avi", "mpeg", "mpg", "3gp"}
    on run
              my vlcTest(myVLC)
              tell application "Finder" to set fileList to selection
              my vlcOpen(fileList)
    end run
    on open fileList
              my vlcTest(myVLC)
              my vlcOpen(fileList)
    end open
    on vlcTest(myVLC)
              try
      POSIX file myVLC as alias
              on error
                        display dialog "Sorry, could not locate VLC. Please add the correct POSIX path to the script." buttons {"Cancel"} default button 1
              end try
    end vlcTest
    on vlcOpen(fileList)
              tell application "Finder"
                        repeat with i in fileList
                                  if name extension of i is in myTypes then open i using (POSIX file myVLC)
                        end repeat
              end tell
    end vlcOpen
    --script ends

  • Setting up Keyboard Shortcuts - sending clip to timeline

    I want to send my clips to the timeline via keyboard right after i mark an IN and OUT in viewer window. I do not know what that function is called when i open keyboard layout. Any help would be appreciated. This shortcut would help me a great deal.

    Should work out of the box, F10.
    bogiesan

  • RE: Is it possible to set 2 commands to 1 keyboard shortcut

    I am wondering if it is possible to set  2 commands to 1 keyboard shortcut.
    I have a script that saves copies of InDesign pages to the desktop. I would love to set the keyboard shortcut for this script to be the same as the Save shortcut (Command S), which saves the InDesign pages into our content management system. However, I can't seem to get this to work.
    Any suggestions?

    No, you cannot get a kbsc to do two things at the same time.
    But…you can set it run a script.
    Bob

  • Advanced Keyboard Shortcuts

    FIRST OF ALL, I KNOW HOW TO CREATE A KEYBOARD SHORTCUT IN SYSTEM PREFERENCES.  This involves more detailed "routing" I guess you'd say.
    What I want:
    -To set a keyboard shortcut for a function in a specific app, that can be used no matter which app is in the foreground.  Think the play, forward and back buttons that control iTunes, even if you have Pages open and iTunes minimized.
    Here's a more detailed explanation:
    -I use Spotify for music on my computer.  If I'm in Spotify, I can press Command-Up or Command-Down to control Spotify's volume output.
    -When I'm in Final Cut Pro editing a video (which I do all day long), I sometimes need to hear the video clip's audio.  Other times, I don't need the audio.  When I don't need the video's audio, I want my Spotify music to play.  Sometimes I want Spotify to play quietly in the background of my video.  But every time I want to change Spotify's volume, I need to go back to Spotify and change the volume.  Sometimes a few times to get the volume right.
    Any ideas?

    This would be pretty straightforward with Applescript.
    You could put the Applescript in a Service and activate that with a Keyboard shortcut.
    BTW, the all caps thing is regarded as rude. It's like shouting. It's also harder to read.

  • How To Change Volume Control Shortcut 4 iTunes, since Spaces has taken it?

    I'm running Leopard on my Macbook and have been using iTunes for years, especially when i got back Airport Express a few months ago. I use the volume keyboard shortcut, "Apple Button and Page ^"
    But now that Spaces is on my Leopard/Macbook, that shortcut has been reserved for Spaces. I don't wish to change that cause i like it better for spaces, but how do i go about changing the setting of controling the iTunes volume?

    Help?
    I could really use some help on this.
    -

Maybe you are looking for

  • How to read Hyperlinks in pdf???

    hi developer's, I am in PDF processing... I am having doubt in that Processing. How to read Hyperlinks from PDF file? I can able to set the hyperlink.. But i cant able to get the hyperlinks.. The following example program will set the hyperlink to th

  • JDBC Connectivity to Oracle 8i Database

    I'am facing problem in connecting to Oracle 8i server using oci8 JDBC driver provided by Oracle. The statemnet that gives me error is -- Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + "MIS", "scott", "tiger"); This throws an ex

  • TrustedApplication for diff postoffices in a domain

    Hi, I am able to access Mailboxes for users belonging to only one post office in a domain via TrustedApplication. How can i access mailboxes for the users belonging to other post offices in the same domain via TrustedApplication. Regards, Shweta

  • Selecting an area when editing audio

    Dragging with the mouse to select a portion of an audio file to cut does not work for me. I can only drag for a short distance beyond the visible screen before dragging ceases. I can 'wiggle' it a little to jog it a little further but it always jumps

  • DVD Drawer Buzzes Very Loudly When Disk is Being Played...

    New T Sat L755-S5170...when a DVD or CD or program disk is inserted into drive drawer, and 'played', the drive drawer buzzes and vibrates very loudly. There is noticeable vibration on drawer edge, when I lightly hold the drawer, which slightly reduce