update dwmblocks and slock

This commit is contained in:
odweta
2026-05-26 09:00:30 +02:00
parent 5bb88621aa
commit 798ee08b8e
9 changed files with 481 additions and 7 deletions
+2 -1
View File
@@ -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},
};
+5
View File
@@ -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