update
This commit is contained in:
parent
77d4ed943b
commit
bb326f371e
@ -1,9 +1,8 @@
|
|||||||
//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*/
|
||||||
{ " 🌐 ", "/opt/dwmblocks_scripts/dwm_ipaddr", 30, 0 },
|
{ "NET ", "/opt/dwmblocks_scripts/dwm_ipaddr", 30, 0 },
|
||||||
{ " 🐧 ", "/opt/dwmblocks_scripts/dwm_kernel", 360, 2 },
|
{ "MEM ", "/opt/dwmblocks_scripts/dwm_memory", 30, 0 },
|
||||||
{ " 💻 ", "/opt/dwmblocks_scripts/dwm_memory", 30, 0 },
|
|
||||||
{ "", "/opt/dwmblocks_scripts/dwm_volume withicon", 1, 10 },
|
{ "", "/opt/dwmblocks_scripts/dwm_volume withicon", 1, 10 },
|
||||||
{ "", "/opt/dwmblocks_scripts/dwm_battery withicon", 1, 10 },
|
{ "", "/opt/dwmblocks_scripts/dwm_battery withicon", 1, 10 },
|
||||||
{ "", "date '+%b %d (%a) %I:%M:%S %p'", 1, 0 },
|
{ "", "date '+%b %d (%a) %I:%M:%S %p'", 1, 0 },
|
||||||
|
@ -7,16 +7,10 @@ stat=$(upower -d | grep -m1 state | sed -e 's/^.* //')
|
|||||||
## if any argument
|
## if any argument
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
if [[ $stat == "charging" ]]; then
|
if [[ $stat == "charging" ]]; then
|
||||||
echo " ⚡ $prct"
|
echo "BAT +$prct"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
echo "BAT -$prct"
|
||||||
if [[ $prctonly -gt 30 ]]; then
|
|
||||||
echo " 🔋 $prct"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo " 🪫 $prct"
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@ vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
|
|||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')"
|
stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')"
|
||||||
if [[ $(echo $stat) == "on" ]]; then
|
if [[ $(echo $stat) == "on" ]]; then
|
||||||
echo " 🔊 $vol%"
|
echo "VOL $vol%"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
echo " 🔇 $vol%"
|
echo "MUT $vol%"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user