diff --git a/config/dwm/config.def.h b/config/dwm/config.def.h index 3efbda70..5b674f4b 100644 --- a/config/dwm/config.def.h +++ b/config/dwm/config.def.h @@ -12,11 +12,13 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "JetBrainsMono NF:size=10" }; static const char dmenufont[] = "monospace:size=10"; +// default colors static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#005577"; +// default colors static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, diff --git a/config/dwmbar/bar.sh b/config/dwmbar/bar.sh index 285148c5..7f1cb54b 100644 --- a/config/dwmbar/bar.sh +++ b/config/dwmbar/bar.sh @@ -1,5 +1,7 @@ #!/bin/sh +blue=#0000ff + battery() { get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)" get_status="$(cat /sys/class/power_supply/BAT*/status)" @@ -9,6 +11,15 @@ battery() { esac } +audio() { + get_vol=$(pamixer --get-volume-human) + if [ $get_vol = 'muted' ]; then + printf "^b$blue^ 󰕾 Muted" + else + printf "^b$blue^ 󰕾 $get_vol" + fi +} + while true; do sleep 1 && xsetroot -name "$(battery)" done