Add user fetching script

This commit is contained in:
Alexis Jhon Gaspar 2023-09-18 19:13:46 +08:00
parent d962800e93
commit d477fba524
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Block blocks[] = {
{"sb-record", 0, 4 }, {"sb-record", 0, 4 },
{"sb-volume", 1, 5 }, {"sb-volume", 1, 5 },
{"sb-date", 1, 6 }, {"sb-date", 1, 6 },
{"sb-user", 0, 7 },
}; };
const unsigned short blockCount = LEN(blocks); const unsigned short blockCount = LEN(blocks);

5
scripts/dwmblocks/sb-user Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# Displays the current user
. sb-theme
display " $(whoami)"