[hackers] [scroll][PATCH 3/3] Add "uninstall" target to the Makefile.

2020-05-03 Thread parazyd
--- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 797fc4b..80d2c2f 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ install: scroll cp -f scroll $(DESTDIR)$(BINDIR) cp -f scroll.1 $(DESTDIR)$(MANDIR)/man1 +uninstall: + rm -f

[hackers] [scroll][PATCH 2/3] Use DESTDIR in the Makefile.

2020-05-03 Thread parazyd
It is common convention to have this. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9f382b7..797fc4b 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,9 @@ config.h: scroll: scroll.c config.h install: scroll - mkdir -p $(

[hackers] [scroll][PATCH 1/3] Revert "Ignore carriage return in history"

2020-05-03 Thread parazyd
Using st and zsh, this breaks the scrollback and messes it up. Meaning, it is not rendered properly. This reverts commit fa406caa11cb4319aab8922b90c0b969998027fc which introduces the bug. --- scroll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/scroll.c b/scroll.c index b58f059..86241b8

[hackers] [ubase][PATCH] uptime: Fix user/s printing (grammar error) when users == 0.

2018-12-28 Thread parazyd
Signed-off-by: parazyd --- uptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uptime.c b/uptime.c index e0dd6fa..3979964 100644 --- a/uptime.c +++ b/uptime.c @@ -44,7 +44,7 @@ main(int argc, char *argv[]) hours = info.uptime % 24; days = info.uptime

[hackers] [slstatus][PATCH] wifi: Fix bug with leftover file descriptors.

2018-05-02 Thread parazyd
--- components/wifi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/wifi.c b/components/wifi.c index 13b630a..af175fd 100644 --- a/components/wifi.c +++ b/components/wifi.c @@ -31,6 +31,7 @@ return NULL; } if(!(p = fgets(stat

[hackers] [slstatus][PATCH] volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.

2018-05-02 Thread parazyd
--- components/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/volume.c b/components/volume.c index 7c831c9..41a112d 100644 --- a/components/volume.c +++ b/components/volume.c @@ -26,7 +26,7 @@ vol_perc(const char *card) return NULL;

[hackers] [slstatus][PATCH] Return actual percentage for wifi_perc()

2017-10-23 Thread parazyd
Implement basic percentage calculation for wifi_perc. With this commit, the function returns correct percentage, since the max of what /proc/net/wireless returns is 70. --- components/wifi.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/wifi.c b/componen

[hackers] [sbase] [patch] remove install.1 on make uninstall

2016-10-26 Thread parazyd
ANPREFIX)/man1 && rm -f $(MAN) + cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN) install.1 dist: clean mkdir -p sbase-$(VERSION) -- ~ parazyd GPG: 0333 7671 FDE7 5BB6 A85E C91F B876 CB44 FA1B 0274 signature.asc Description: Digital signature