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:
f36e77c
)
got rid of unnecessary
author
Dylan Lloyd
<dylan@dylansserver.com>
Mon, 27 Feb 2012 06:29:57 +0000
(
01:29
-0500)
committer
Dylan Lloyd
<dylan@dylansserver.com>
Mon, 27 Feb 2012 06:29:57 +0000
(
01:29
-0500)
powermate.hs
patch
|
blob
|
history
diff --git
a/powermate.hs
b/powermate.hs
index
04ae85d
..
eff82d6
100755
(executable)
--- a/
powermate.hs
+++ b/
powermate.hs
@@
-22,8
+22,8
@@
processEvent state (Button True) = do
processEvent state (Button False) = do
time <- getCurrentTime
if (diffUTCTime (time) (stLastPress state) > 0.8) then
- ( do
c <-
runCommand "amixer set Master toggle"; return () )
- else ( do
c <-
runCommand "music-toggle"; return () )
+ ( do runCommand "amixer set Master toggle"; return () )
+ else ( do runCommand "music-toggle"; return () )
return state
processEvent state (Rotate dir) = do