Browse Source

Updated keybinding and status bar for jack microphone mute toggle.

master
Daniel Sissom 4 years ago
parent
commit
7812ece28f
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
3 changed files with 10 additions and 3 deletions
  1. + 1
    - 0
      bspwm/panel/panel
  2. + 5
    - 1
      bspwm/panel/panel_bar
  3. + 4
    - 2
      sxhkd/sxhkdrc

+ 1
- 0
bspwm/panel/panel

@ -17,6 +17,7 @@ bspc config top_padding $PANEL_HEIGHT
xtitle -sf 'T%s\n' | sed -u 's/^\(.................................................\).*\(..........................\)/\1...\2/' > "$PANEL_FIFO" & xtitle -sf 'T%s\n' | sed -u 's/^\(.................................................\).*\(..........................\)/\1...\2/' > "$PANEL_FIFO" &
bspc subscribe report > "$PANEL_FIFO" & bspc subscribe report > "$PANEL_FIFO" &
tick > "$PANEL_FIFO" & tick > "$PANEL_FIFO" &
while true; do [ -f /tmp/djsissom-jackmute ] && echo 'M' > "$PANEL_FIFO" || echo 'M' > "$PANEL_FIFO"; sleep 0.1; done &
~/.config/bspwm/panel/panel_bar < "$PANEL_FIFO" | lemonbar -n "$PANEL_WM_NAME" -g "x$PANEL_HEIGHT" -a 20 -B "#BF000000" -F "#FF9A875F" -f "$PANEL_FONT" -f "$PANEL_FONT2" -f "$PANEL_FONT3" | sh & ~/.config/bspwm/panel/panel_bar < "$PANEL_FIFO" | lemonbar -n "$PANEL_WM_NAME" -g "x$PANEL_HEIGHT" -a 20 -B "#BF000000" -F "#FF9A875F" -f "$PANEL_FONT" -f "$PANEL_FONT2" -f "$PANEL_FONT3" | sh &

+ 5
- 1
bspwm/panel/panel_bar

@ -12,6 +12,10 @@ while read -r line ; do
# xtitle output # xtitle output
title="%{F-}${line#?}%{F-}" title="%{F-}${line#?}%{F-}"
;; ;;
M*)
# mic mute output
mic="%{F-}${line#?}%{F-}"
;;
W*) W*)
# bspwm state # bspwm state
wm_infos="" wm_infos=""
@ -69,5 +73,5 @@ while read -r line ; do
wm_infos="$wm_infos%{F-} %{F-}" wm_infos="$wm_infos%{F-} %{F-}"
;; ;;
esac esac
printf "%s\n" "%{S+}%{l}%{A:sysmenu:}  %{A}$title%{c}$wm_infos%{r}%{A:togglecal:}$sys_infos%{A} %{A:powermenu:}⏻%{A} "
printf "%s\n" "%{S+}%{l}%{A:sysmenu:}  %{A}$title%{c}$wm_infos%{r}$mic %{A:togglecal:}$sys_infos%{A} %{A:powermenu:}⏻%{A} "
done done

+ 4
- 2
sxhkd/sxhkdrc

@ -25,7 +25,8 @@ alt + Escape
# exit bspwm # exit bspwm
super + alt + Escape super + alt + Escape
pkill -x panel; bspc quit
xlogout
# pkill -x panel; bspc quit
# close the current window # close the current window
alt + w alt + w
@ -285,7 +286,8 @@ XF86AudioLowerVolume
amixer set Speaker 1%- amixer set Speaker 1%-
XF86AudioMute XF86AudioMute
amixer set PCM toggle
togglemute
#amixer set PCM toggle
#amixer set Speaker toggle #amixer set Speaker toggle
# take a screenshot # take a screenshot

Loading…
Cancel
Save