From dab010aecbf3893ab73c94d679f7293e29465b11 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Tue, 23 Aug 2011 10:02:53 +0800 Subject: [PATCH] nanonote-files add system volume control thanks EdorFaus --- ...-fix-conflict-with-system-volume-control.patch | 15 +++++++++++++++ .../etc/triggerhappy/triggers.d/volume.conf | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 gmu/patches/002-fix-conflict-with-system-volume-control.patch create mode 100644 nanonote-files/script-files/etc/triggerhappy/triggers.d/volume.conf diff --git a/gmu/patches/002-fix-conflict-with-system-volume-control.patch b/gmu/patches/002-fix-conflict-with-system-volume-control.patch new file mode 100644 index 0000000..af87c04 --- /dev/null +++ b/gmu/patches/002-fix-conflict-with-system-volume-control.patch @@ -0,0 +1,15 @@ +diff --git a/nanonote.keymap b/nanonote.keymap +index 324ae67..d2081b0 100644 +--- a/nanonote.keymap ++++ b/nanonote.keymap +@@ -11,8 +11,8 @@ Left=Left + Right=Right + Up=Up + Down=Down +-IncreaseVolume=Vol+ +-DecreaseVolume=Vol- ++IncreaseVolume=Mod+Vol+ ++DecreaseVolume=Mod+Vol- + ToggleTime=T + Pause=P + Stop=Mod+X diff --git a/nanonote-files/script-files/etc/triggerhappy/triggers.d/volume.conf b/nanonote-files/script-files/etc/triggerhappy/triggers.d/volume.conf new file mode 100644 index 0000000..50ef05a --- /dev/null +++ b/nanonote-files/script-files/etc/triggerhappy/triggers.d/volume.conf @@ -0,0 +1,2 @@ +KEY_VOLUMEUP 1 /usr/bin/amixer sset PCM 5%+ +KEY_VOLUMEDOWN 1 /usr/bin/amixer sset PCM 5%-