diff options
| -rw-r--r-- | lib/default.nix | 2 | ||||
| -rw-r--r-- | tv/5pkgs/haskell/xmonad-tv/src/Paths.hs | 3 | ||||
| -rw-r--r-- | tv/5pkgs/haskell/xmonad-tv/src/main.hs | 3 | 
3 files changed, 8 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 14e6e27..5a948bb 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -49,6 +49,8 @@ let      indent = replaceChars ["\n"] ["\n  "]; +    stripAttr = converge (filterAttrsRecursive (n: v: v != {} && v != null)); +      mapNixDir = f: x: {        list = foldl' mergeAttrs {} (map (mapNixDir1 f) x);        path = mapNixDir1 f x; diff --git a/tv/5pkgs/haskell/xmonad-tv/src/Paths.hs b/tv/5pkgs/haskell/xmonad-tv/src/Paths.hs index 3a879b5..dd21511 100644 --- a/tv/5pkgs/haskell/xmonad-tv/src/Paths.hs +++ b/tv/5pkgs/haskell/xmonad-tv/src/Paths.hs @@ -12,6 +12,9 @@ pactl = findExecutable "pactl"  passmenu :: FilePath  passmenu = findExecutable "passmenu" +pavucontrol :: FilePath +pavucontrol = findExecutable "pavucontrol" +  slock :: FilePath  slock = findExecutable "slock" diff --git a/tv/5pkgs/haskell/xmonad-tv/src/main.hs b/tv/5pkgs/haskell/xmonad-tv/src/main.hs index c528017..400c87a 100644 --- a/tv/5pkgs/haskell/xmonad-tv/src/main.hs +++ b/tv/5pkgs/haskell/xmonad-tv/src/main.hs @@ -160,6 +160,7 @@ myKeys conf = Map.fromList $      , ((0, xF86XK_AudioLowerVolume), audioLowerVolume)      , ((0, xF86XK_AudioRaiseVolume), audioRaiseVolume)      , ((0, xF86XK_AudioMute), audioMute) +    , ((_4, xF86XK_AudioMute), pavucontrol [])      , ((_4, xK_Prior), forkFile Paths.xcalib ["-invert", "-alter"] Nothing)      ] @@ -175,6 +176,8 @@ myKeys conf = Map.fromList $      _4SM = _4 .|. _S .|. _M      pactl args = forkFile Paths.pactl args Nothing +    pavucontrol args = forkFile Paths.pavucontrol args Nothing +      audioLowerVolume = pactl ["--", "set-sink-volume", "@DEFAULT_SINK@", "-5%"]      audioRaiseVolume = pactl ["--", "set-sink-volume", "@DEFAULT_SINK@", "+5%"]      audioMute = pactl ["--", "set-sink-mute", "@DEFAULT_SINK@", "toggle"]  | 
