From acd9662a30cc5a363b4e77ad03cbddaeaec963c9 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Tue, 8 Mar 2022 21:24:52 +0100 Subject: [PATCH] Added default system-wide config file --- Makefile | 6 +++++- default.config | 15 +++++++++++++++ uwufetch.1 | 3 ++- uwufetch.1.gz | Bin 1566 -> 1627 bytes uwufetch.c | 2 ++ 5 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 default.config diff --git a/Makefile b/Makefile index 68c1c07..687f897 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ PLATFORM = $(shell uname) ifeq ($(PLATFORM), Linux) PREFIX = bin LIBDIR = lib + ETC_DIR = /etc MANDIR = share/man/man1 ifeq ($(shell uname -o), Android) DESTDIR = /data/data/com.termux/files/usr @@ -16,12 +17,14 @@ ifeq ($(PLATFORM), Linux) else ifeq ($(PLATFORM), Darwin) PREFIX = local/bin LIBDIR = local/lib + ETC_DIR = /etc MANDIR = local/share/man/man1 else ifeq ($(PLATFORM), FreeBSD) CFLAGS += -D__FREEBSD__ CFLAGS_DEBUG += -D__FREEBSD__ PREFIX = bin LIBDIR = lib + ETC_DIR = /etc MANDIR = share/man/man1 else ifeq ($(PLATFORM), windows32) CC = gcc @@ -38,9 +41,10 @@ debug: ./$(NAME) install: build - mkdir -p $(DESTDIR)/$(PREFIX) $(DESTDIR)/$(LIBDIR)/uwufetch $(DESTDIR)/$(MANDIR) + mkdir -p $(DESTDIR)/$(PREFIX) $(DESTDIR)/$(LIBDIR)/uwufetch $(DESTDIR)/$(MANDIR) $(ETC_DIR)/uwufetch cp $(NAME) $(DESTDIR)/$(PREFIX)/$(NAME) cp -r res/* $(DESTDIR)/$(LIBDIR)/uwufetch + cp default.config $(ETC_DIR)/uwufetch cp ./$(NAME).1.gz $(DESTDIR)/$(MANDIR)/ uninstall: diff --git a/default.config b/default.config new file mode 100644 index 0000000..47157a5 --- /dev/null +++ b/default.config @@ -0,0 +1,15 @@ +#distro=arch +#image=~/Pictures/picture.png +ascii=true +user=true +os=true +host=true +kernel=true +cpu=true +gpu=true +ram=true +resolution=true +shell=true +pkgs=true +uptime=true +colors=true diff --git a/uwufetch.1 b/uwufetch.1 index dc294d7..43e56fd 100644 --- a/uwufetch.1 +++ b/uwufetch.1 @@ -32,7 +32,8 @@ prints image instead of ascii logo uses a custom image if one is provided (disab .B -l --list prints a list of all supported distributions .SH CONFIGURATION -The config file is located in $HOME/.config/uwufetch/config (you need to create it), but you can change the path by using the \fB--config\fR option. +The system-wide config file is /etc/uwufetch/config, and you can use it to configure uwufetch globally or as a template for your own config. +The user config file is located in $HOME/.config/uwufetch/config (you need to create it), but you can change the path by using the \fB--config\fR option. .TP .SH EXAMPLE .EX diff --git a/uwufetch.1.gz b/uwufetch.1.gz index 566e89874e9baf6b71089d7d79a8ad0880f998bb..8a5bf64895c2e4224518900992074677ff8aa96b 100644 GIT binary patch literal 1627 zcmV-h2Bi5PiwFpCyC-4*19f+GW@U6^Xf81TZC6ci<2Dez>sJtI4+)Ui-EDyu1@_>? zN@6sz4Line&@BpDqHNZbsFGAe9^tH7h)ic4#6mq+pH;7 z6=cx15`}f5XhP$ZXuL{#K)$TC7gA)lBv=$Z3a9>Uln=tI;6+#~5j34<3w|kOC2F}+ zLRL8oyvq3e%cTmfQkD3?OTS(5dGklXI%=m&>2?S7TFG2jtEh7tbu~413SH$eM&;1r zQkOKWmb$SnFc`aVbpX>@jk>B{Izi8tju z%<`hO4NfuEZouM3iLb?N083ws8GH4$7;$RzY<@={aVoRWNE6qR9%8ciytq$a?jAwz#m8U8pjkDD(8r%Xez*`9 zA9}ywdmu_xLha56RpP+HieRnbxIgKt*T&$Je>7MX(lGInKqZ1VhdJekg4=Lv$*w9yI*$e)PDggu$#^)G%O%pMlc>G*{u zyt_ky#%a>K6*p4c+_0*ovyuoWWfY%i14rvJSA}d$xH|02ursq&p;yVyHX?&F*;-bx zHA<1OVSPa7KdE{_gMl^!OOF=O z8*4EJg;3YlQT?(vdf8A`cn-zgWP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