nnscripts

no-nonsense shell script colection for Linux-based environments
git clone git://git.luxferre.top/nnscripts.git
Log | Files | Refs | README | LICENSE

nnkeys.conf (712B)


      1 # an example config file for nnkeys.sh script
      2 # the keys are as specified in the evtest output
      3 # if the command is empty, the line is ignored
      4 
      5 # volume control keys
      6 KEY_VOLUMEUP        amixer sset Master playback 5%+
      7 KEY_VOLUMEDOWN      amixer sset Master playback 5%-
      8 KEY_MUTE            amixer sset Master toggle
      9 
     10 # playback control keys
     11 KEY_PLAYPAUSE       mpc toggle
     12 KEY_PREVIOUSSONG    mpc prev
     13 KEY_NEXTSONG        mpc next
     14 
     15 # brightness control keys
     16 KEY_BRIGHTNESSDOWN  ~/nnscripts/nnlight.sh -5
     17 KEY_BRIGHTNESSUP    ~/nnscripts/nnlight.sh +5
     18 
     19 # misc keys found e.g. on macbooks
     20 KEY_SCALE           ~/nnscripts/nnlight.sh 100
     21 KEY_DASHBOARD       fbgrab $(date +%Y-%m-%d-%H-%M-%S-screenshot.png)
     22 KEY_EJECTCD