remove labels, tweak keyboard layout switching
This commit is contained in:
parent
b81f53be7b
commit
5f018a248e
16
blocks.def.h
16
blocks.def.h
@ -1,16 +1,16 @@
|
|||||||
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
||||||
static const Block blocks[] = {
|
static const Block blocks[] = {
|
||||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
{"CPU ", "echo \"$(mpstat --dec=0 5 1 | tr -s ' ' | grep -i '\\: all' \
|
{"", "echo \"$( < /proc/loadavg cut -f1,2,3 -d ' ')\" \
|
||||||
| awk -F ' ' '{ print $3 + $4 + $5 }')%\" \
|
\"($(mpstat --dec=0 5 1 | tr -s ' ' | grep -i '\\: all' \
|
||||||
\"($(sensors | grep 'Tdie:' | tr -s ' ' | cut -f2 -d ' ' \
|
| awk -F ' ' '{ print $3 + $4 + $5 }')%, $(sensors \
|
||||||
| cut -c 2-))\"", 5, 0},
|
| grep 'Tdie:' | tr -s ' ' | cut -f2 -d ' ' \
|
||||||
{"Mem ", "free -h | awk '/^Minne/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
|
| cut -c 2-))\" ", 5, 0},
|
||||||
{"Bat ", "echo \"$(cat /sys/class/power_supply/BAT0/capacity)%\" \
|
{"", "free -h | awk '/^Minne/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
|
||||||
|
{"", "echo \"$(cat /sys/class/power_supply/BAT0/capacity)%\" \
|
||||||
\"[$(sed \"s/Unknown/?/;s/Charging/+/;s/Discharging/-/;\"\
|
\"[$(sed \"s/Unknown/?/;s/Charging/+/;s/Discharging/-/;\"\
|
||||||
/sys/class/power_supply/BAT0/status)]\"", 30, 0},
|
/sys/class/power_supply/BAT0/status)]\"", 30, 0},
|
||||||
{"xbps ", "xbps-install -un | grep update | wc -l", 300, 0},
|
{"", "xkblayout-state print \"%s\"", 0, 1},
|
||||||
{"", "xkblayout-state print \"%s\"", 5, 0},
|
|
||||||
{"", "date '+%b %d (%a) %H:%M'", 5, 0},
|
{"", "date '+%b %d (%a) %H:%M'", 5, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user