devinteske

FreeBSD Thinkpad Volume up/down in X

Jan 21st, 2016
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. $ uname -a
  2. FreeBSD lent.shxd.cx 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r293338: Wed Jan 13 21:26:36 PST 2016 root@lent.shxd.cx:/usr/obj/home/dteske/src/freebsd_svn/base/head/sys/GENERIC amd64
  3. $ pkg install -y xbindkeys
  4. # ...
  5.  
  6. Add "xbindkeys" on a line by itself to your ~/.xinitrc file:
  7.  
  8. Add the following to (or use the following for) ~/.xbindkeys file:
  9. === BEGIN FILE ===
  10. # Decrease volume
  11. "mixer vol -5:-5"
  12. XF86AudioLowerVolume
  13.  
  14. # Increase volume
  15. "mixer vol +5:+5"
  16. XF86AudioRaiseVolume
  17. === END FILE ===
  18.  
  19. If you install misc/xosd from ports and osd_mixer from http://pastebin.com/xqkTrjcv
  20. you can instead use the following which will give you an on-screen display of volume level:
  21. === BEGIN ALTERNATE ~/.xbindkeys FILE ===
  22. # Decrease volume (visually)
  23. "osd_mixer vol -5:-5"
  24. XF86AudioLowerVolume
  25.  
  26. # Increase volume (visually)
  27. "osd_mixer vol -5:-5"
  28. XF86AudioRaiseVolume
  29. === END FILE ===
Add Comment
Please, Sign In to add comment