home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,068 of 87,272   
   Joseph Rosevear to Jean F. Martinelle   
   Re: Assigning action to keys   
   20 Nov 22 21:13:39   
   
   From: Mail@JoesLife.org   
      
   On Mon, 14 Nov 2022 00:42:24 -0000 (UTC), Jean F. Martinelle wrote:   
      
   > I am running XFCE under Slackware 15.0. My keyboard has two keys that   
   > are obviously meant to mute and unmute the sound in my system. However,   
   > when I press them nothing happens.   
   >   
   > 	While this is hardly unexpected, I am sure there must be a way to   
   > redefine those keys from XFCE so that when they are pressed they will do   
   > what they are supposed to do.   
   >   
   > 	Can anybody supply pointers on how to pull this off?   
      
   I have already encountered and solved a similar problem in Fvwm2, not   
   XFCE.  Perhaps some of what I did will apply.  Here is the code I put   
   into my ~/.fvwm2rc file--the Fvwm2 configuration file:   
      
   # Mute   
   # Key F8        A       N       Exec :   
   Key XF86AudioMute       A       N       Exec :   
      
   # Volume down   
   Key F9  A       N       Exec /usr/local/bin/changevol down   
   Key XF86AudioLowerVolume        A       N       Exec /usr/local/bin/   
   changevol down   
      
   # Volume up   
   Key F10 A       N       Exec /usr/local/bin/changevol up   
   Key XF86AudioRaiseVolume        A       N       Exec /usr/local/bin/   
   changevol up   
      
   My purposes were different, as I turned off the mute capability.  Volume   
   up and down I treated by use of my own script /usr/local/bin/changevol--   
   let me know if you need the script.  I captured key presses of both the   
   built-in keys and F9 and F10, as some keyboards lack the built-in keys.   
      
   I hope this helps.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca