dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit fe5f6a0dc97464b52bde36c668a2f342933ef5a4
parent df39b3c7beb0d60c2d5d293255595d152892567e
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Mon,  3 Jun 2019 19:34:08 +0200

Make status bar vertical

Diffstat:
Mbin/dmenu_statusbar.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/dmenu_statusbar.sh b/bin/dmenu_statusbar.sh @@ -1,3 +1,5 @@ +#!/bin/dash + if [ $(amixer get Master | tail -1 | awk '{ print $6 " " }' | tr -d '[' | tr -d ']') = 'on' ] then VOL="$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')" @@ -17,4 +19,4 @@ fi TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))°C" BAT="$(acpi -b | awk '{ print $4 " " }' | tr -d ',' | tr -d ' ')" -echo -e "time=$LOCALTIME\nvol=$VOL\nip=$IP\nvpn=$VPN\ntemp=$TEMP\nbat=$BAT\nutc=$UTC" | dmenu -fn "Sans:size=11" +echo "time=$LOCALTIME\nvol=$VOL\nip=$IP\nvpn=$VPN\ntemp=$TEMP\nbat=$BAT\nutc=$UTC" | dmenu -p System\ Info: -l 8 -fn "Sans:size=11"