disinclined.org
/
git
/
powermate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe35b0
)
now using volume-toggle shell script
author
Dylan Lloyd
<dylan@dylansserver.com>
Tue, 13 Mar 2012 16:28:30 +0000
(12:28 -0400)
committer
Dylan Lloyd
<dylan@dylansserver.com>
Tue, 13 Mar 2012 16:28:30 +0000
(12:28 -0400)
powermate.hs
patch
|
blob
|
history
diff --git
a/powermate.hs
b/powermate.hs
index
22b41fc
..
c0858f6
100755
(executable)
--- a/
powermate.hs
+++ b/
powermate.hs
@@
-25,7
+25,7
@@
processEvent state (Button True) = do
processEvent state (Button False) = do
time <- getCurrentTime
if (diffUTCTime (time) (stLastPress state) > 0.8)
- then ( do runCommand "
amixer set Master
toggle"; return () )
+ then ( do runCommand "
volume-
toggle"; return () )
else ( do runCommand "music-toggle"; return () )
state <- updateButton state False
return state