From 99ed9a2ea95d1c0c9c66af6943566a464c03c3e5 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 15 Oct 2017 10:18:28 -0700 Subject: first steps away from mate backend --- .config/herbstluftwm/autostart | 5 +++++ .config/herbstluftwm/panel.sh | 2 +- .config/herbstluftwm/pvol.sh | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 .config/herbstluftwm/pvol.sh (limited to '.config/herbstluftwm') diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index 8e86ccc..d3b2746 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -172,6 +172,11 @@ hc keybind Mod4-r spawn dmenu_run -fn "${bfont}:size=${bfont_size}" \ hc keybind Mod4-g spawn ~/.config/herbstluftwm/switcher.sh # hc keybind Mod4-8 spawn ~/.config/herbstluftwm/calc.sh +hc keybind XF86AudioLowerVolume spawn ~/.config/herbstluftwm/pvol.sh down +hc keybind XF86AudioRaiseVolume spawn ~/.config/herbstluftwm/pvol.sh up +hc keybind XF86AudioMute spawn ~/.config/herbstluftwm/pvol.sh mute +hc keybind XF86AudioMicMute spawn ~/.config/herbstluftwm/pvol.sh + # tunes hc keybind Mod4-Up spawn ~/.config/herbstluftwm/mpc-status.sh hc keybind Mod4-Down spawn mpc toggle diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 285270e..057245a 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -300,7 +300,7 @@ event_when() { # pass the events into bar } 2> /dev/null | lemonbar -f "$ifont" -o "$ifont_off" \ -f "${bfont}:size=${bfont_size}" -o "$bfont_off" \ - -f "${jfont}:size=${jfont_size}" -o "$jfont_off" \ + -f "${bjfont}:size=${bjfont_size}" -o "$bjfont_off" \ -g${width}x${bheight}+${xpos}+${ypos} \ -B ${bg_normal} -F ${fg_normal} | \ { diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh new file mode 100755 index 0000000..5c7b351 --- /dev/null +++ b/.config/herbstluftwm/pvol.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# i patched dunst to clear all on SIGUSR1 +killall -SIGUSR1 dunst + +# race condition, obvs, but this is hopefully time enough +case "$1" in + down) + pavolume voldown --quiet 2 + ;; + up) + pavolume volup --quiet 2 + ;; + mute) + pavolume mutetoggle --quiet + ;; + *) + pavolume show + ;; +esac -- cgit v1.2.3