From 6b2a4d84343a37f34bafe0537d0038dc80354a64 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Wed, 27 Dec 2023 14:28:40 -0500 Subject: [PATCH] Removed slstatus and replaced with a simple xsetroot loop for the date and time --- scripts/dbc | 0 scripts/statusbar | 5 +++++ setup | 4 ---- slstatus/config.h | 14 -------------- xorg/.xinitrc | 2 +- 5 files changed, 6 insertions(+), 19 deletions(-) mode change 100644 => 100755 scripts/dbc create mode 100755 scripts/statusbar delete mode 100644 slstatus/config.h diff --git a/scripts/dbc b/scripts/dbc old mode 100644 new mode 100755 diff --git a/scripts/statusbar b/scripts/statusbar new file mode 100755 index 0000000..864c2f6 --- /dev/null +++ b/scripts/statusbar @@ -0,0 +1,5 @@ +#!/bin/sh +while true; do + xsetroot -name "$(date '+%I:%M @ %m/%')" + sleep 60 +done \ No newline at end of file diff --git a/setup b/setup index 19e2fa4..e9ccd96 100755 --- a/setup +++ b/setup @@ -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 } diff --git a/slstatus/config.h b/slstatus/config.h deleted file mode 100644 index ca1aec6..0000000 --- a/slstatus/config.h +++ /dev/null @@ -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" }, -}; \ No newline at end of file diff --git a/xorg/.xinitrc b/xorg/.xinitrc index 2fd67a6..81ce129 100644 --- a/xorg/.xinitrc +++ b/xorg/.xinitrc @@ -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; } &