update dwmblocks and slock
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
||||
#define MODULE_ROOT "$HOME/.config/suckless/dwmblocks/modules/"
|
||||
static const Block blocks[] = {
|
||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||
{"", "mpc status | head -1", 0, 1},
|
||||
{"net:", "nmcli n c", 10, 0},
|
||||
{"b:", "cat /sys/class/power_supply/BAT0/capacity", 60, 0},
|
||||
{"v:", "wpctl get-volume @DEFAULT_SINK@ | awk -F \": \" '{print $2}'", 0, 2},
|
||||
{"v:", MODULE_ROOT "status-volume", 0, 2},
|
||||
{"", "date +'%a %b %d, %H:%M'", 60, 0},
|
||||
};
|
||||
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VOL=$(wpctl get-volume @DEFAULT_SINK@ | awk -F ": " '{print $2}' | sed 's/1\./1/g' | sed 's/0\.//g')
|
||||
|
||||
echo -n $VOL
|
||||
Reference in New Issue
Block a user