Removed slstatus and replaced with a simple xsetroot loop for the date and time

This commit is contained in:
Dionysus 2023-12-27 14:28:40 -05:00
parent c70c34fcaa
commit 6b2a4d8434
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
5 changed files with 6 additions and 19 deletions

0
scripts/dbc Normal file → Executable file
View File

5
scripts/statusbar Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
while true; do
xsetroot -name "$(date '+%I:%M @ %m/%')"
sleep 60
done

4
setup
View File

@ -123,10 +123,6 @@ setup_builds() {
patch $BUILD/dwm/dwm.c $BUILD/dwm/patch_notitles.diff
sudo make -C $BUILD/dwm clean install
git clone --depth 1 git://git.suckless.org/slstatus $BUILD/slstatus
wget -O $BUILD/slstatus/config.h $GIT_URL/slstatus/config.h
sudo make -C $BUILD/slstatus clean install
git clone https://github.com/AngelJumbo/lavat.git $BUILD/lavat
sudo make -C $BUILD/lavat clean install
}

View File

@ -1,14 +0,0 @@
const unsigned int interval = 1000;
static const char unknown_str[] = "??";
#define MAXLEN 2048
static const struct arg args[] = {
{ cpu_perc, "Ç %s% | ", NULL},
{ ram_perc, "Æ %s% | ", NULL},
{ disk_perc, "¨ %s% | ", "/"},
{ temp, "± %s°C | ", "/sys/class/thermal/thermal_zone0/temp"},
{ battery_perc, "ð %s% | ", "BAT0"},
{ vol_perc, "í %s% | ", "/dev/dsp"},
{ datetime, "ú %s", "%m/%d | · %I:%M" },
};

View File

@ -3,8 +3,8 @@ xset +fp /usr/share/fonts/local
xset fp rehash
dunst &
slstatus &
unclutter &
$HOME/.scripts/statusbar.sh &
# Example of dual monitor setup
#{ sleep 2; xrandr --output HDMI1 --mode 1920x1080 --output DP1 --mode 1920x1080 --above HDMI1; } &