wip: cleaned up dwm and slstatus
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
# See LICENSE file for copyright and license details
|
||||
# slstatus - suckless status monitor
|
||||
.POSIX:
|
||||
|
||||
include config.mk
|
||||
@@ -38,10 +36,6 @@ install: all
|
||||
mkdir -p "$(DESTDIR)$(PREFIX)/bin"
|
||||
cp -f slstatus "$(DESTDIR)$(PREFIX)/bin"
|
||||
chmod 755 "$(DESTDIR)$(PREFIX)/bin/slstatus"
|
||||
mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
|
||||
cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
|
||||
chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
|
||||
rm -f "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
const unsigned short interval = 1000;
|
||||
static const char unknown_str[] = "n/a";
|
||||
#define MAXLEN 2048
|
||||
|
||||
static const struct arg args[] = {
|
||||
{ run_command, "VOL: %s • ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf \"%d%%\", $2 * 100}'" },
|
||||
{ run_command, "Next Wallpaper: %s • ", "sh /home/andrew/.config/suckless/slstatus/scripts/wallpaper-countdown.sh" },
|
||||
{ run_command, "Age: %s Days • ", "sh -c 'echo $(( ( $(date +%s) - $(stat -c %W /) ) / 86400 ))'" },
|
||||
{ run_command, "Layout: %s • ", "sh /home/andrew/.config/suckless/slstatus/scripts/get_layout.sh" },
|
||||
{ run_command, "Up: %s ", "uptime -p | cut -d ' ' -f2-" },
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
VERSION = 1.0
|
||||
MANPREFIX = /usr/local/share/man
|
||||
PREFIX = /usr/local
|
||||
|
||||
CPPFLAGS = $(shell pkg-config --cflags x11) -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
|
||||
LDFLAGS = $(shell pkg-config --libs-only-L x11) -s
|
||||
|
||||
Reference in New Issue
Block a user