From: Mart Lubbers Date: Sun, 9 Sep 2018 06:27:33 +0000 (+0200) Subject: xinitrc with wpa_gui, volumecontrol in bar fixed X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=d59e32339d512e4655b250563080e2507b58c698;p=dotfiles.git xinitrc with wpa_gui, volumecontrol in bar fixed --- diff --git a/x/.local/bin/bar b/x/.local/bin/bar index c1a061b..708160e 100755 --- a/x/.local/bin/bar +++ b/x/.local/bin/bar @@ -17,7 +17,7 @@ eval $(xdotool search --onlyvisible trayer getwindowgeometry --shell) echo \ "W $wlan"\ - "♪ $(pactl list sinks | grep -Po "(?<=Volume: front)[^%]*" | grep -o "100$") |"\ + "♪ $(pactl list sinks | grep -Po "(?<=Volume: front)[^%]*" | grep -o "[0-9]\?[0-9][0-9]$") |"\ "⚡$bat"\ "Dsk: $(df -h | grep '/$' | awk '{print $4"/"$2}') |"\ "$(date +"%Y-%m-%d %H:%M:%S") "\ diff --git a/x/.xinitrc b/x/.xinitrc index 7966201..3b7197f 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -3,6 +3,7 @@ export _JAVA_AWT_WM_NONREPARENTING=1 dunst & trayer --align right --widthtype request --SetPartialStrut false --height 22 & +/usr/sbin/wpa_gui -t & eval "$(gpg-agent --daemon)" xrdb -merge ~/.Xresources