From: Dylan Lloyd Date: Tue, 13 Mar 2012 16:28:30 +0000 (-0400) Subject: now using volume-toggle shell script X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;ds=inline;h=8895bb37a19719080872d48daa3b876a406a76c8;p=powermate.git now using volume-toggle shell script --- diff --git a/powermate.hs b/powermate.hs index 22b41fc..c0858f6 100755 --- 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