wa
This commit is contained in:
parent
25d09bf68a
commit
274e2224d6
|
@ -12,11 +12,13 @@ static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const char *fonts[] = { "JetBrainsMono NF:size=10" };
|
static const char *fonts[] = { "JetBrainsMono NF:size=10" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
static const char dmenufont[] = "monospace:size=10";
|
||||||
|
// default colors
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
static const char col_gray2[] = "#444444";
|
static const char col_gray2[] = "#444444";
|
||||||
static const char col_gray3[] = "#bbbbbb";
|
static const char col_gray3[] = "#bbbbbb";
|
||||||
static const char col_gray4[] = "#eeeeee";
|
static const char col_gray4[] = "#eeeeee";
|
||||||
static const char col_cyan[] = "#005577";
|
static const char col_cyan[] = "#005577";
|
||||||
|
// default colors
|
||||||
static const char *colors[][3] = {
|
static const char *colors[][3] = {
|
||||||
/* fg bg border */
|
/* fg bg border */
|
||||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
blue=#0000ff
|
||||||
|
|
||||||
battery() {
|
battery() {
|
||||||
get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)"
|
get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)"
|
||||||
get_status="$(cat /sys/class/power_supply/BAT*/status)"
|
get_status="$(cat /sys/class/power_supply/BAT*/status)"
|
||||||
|
@ -9,6 +11,15 @@ battery() {
|
||||||
esac
|
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
|
while true; do
|
||||||
sleep 1 && xsetroot -name "$(battery)"
|
sleep 1 && xsetroot -name "$(battery)"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue