Skip to content

Commit 19313a4

Browse files
committed
project: rename cufetch -> customfetch + deprecate it
1 parent a3c7cd6 commit 19313a4

File tree

14 files changed

+44
-40
lines changed

14 files changed

+44
-40
lines changed

.github/workflows/makefile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
cd /tmp/customfetch-0.10.1.orig
4040
sudo dpkg -i customfetch_0.10.1-1_amd64.deb
41-
cufetch --wrap-lines=0
41+
customfetch --wrap-lines=0
4242
4343
build_ubuntu-latest:
4444

@@ -69,7 +69,7 @@ jobs:
6969
printf "getting 0x5353 hexcode\n" && grep -nri "5353" /sys/class/ || true
7070
7171
- name: Test customfetch
72-
run: ./build/debug/cufetch --wrap-lines=0
72+
run: ./build/debug/customfetch --wrap-lines=0
7373

7474
build_Arch-AUR:
7575

@@ -106,7 +106,7 @@ jobs:
106106
run: neofetch
107107

108108
- name: Test customfetch
109-
run: cufetch --wrap-lines=0
109+
run: customfetch --wrap-lines=0
110110

111111
build_Arch:
112112

@@ -150,7 +150,7 @@ jobs:
150150
printf "/etc/os-release\n" && cat /etc/os-release
151151
152152
- name: Test customfetch
153-
run: ./build/debug/cufetch --wrap-lines=0
153+
run: ./build/debug/customfetch --wrap-lines=0
154154

155155
test-all-ascii-art:
156156
runs-on: ubuntu-latest
@@ -170,4 +170,4 @@ jobs:
170170
# yes, i know too long
171171
# the --color arguments are just for adding a missing color to the non done ascii
172172
- name: Test all the ascii art logos
173-
run: for f in assets/ascii/*; do printf "\e[31m%s\e[0m\n" "$f" && cufetch --wrap-lines=0 -s "$f" -D assets --color "c1=!#fff111" --color "c2=!#00ff1a" --color "c3=!#faa311" --color "c4=!#343412" --color "c5=!#fff311" --color "c6=!#faa3aa" && sleep 1; done
173+
run: for f in assets/ascii/*; do printf "\e[31m%s\e[0m\n" "$f" && customfetch --wrap-lines=0 -s "$f" -D assets --color "c1=!#fff111" --color "c2=!#00ff1a" --color "c3=!#faa311" --color "c4=!#343412" --color "c5=!#fff311" --color "c6=!#faa3aa" && sleep 1; done

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ build/
22
assets/distro_ascii_arts.json
33
assets/distro_ascii_arts.txt
44
cufetch
5-
test.txt
5+
test*.txt
66
pci.ids
77
output/
8+
customfetch
9+
customfetch_r
810
cufetch_r
911
thinkpad-arch_logo.txt
1012
tanjiro_logo.txt

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ifeq ($(USE_DCONF), 1)
4848
endif
4949

5050
NAME = customfetch
51-
TARGET = cufetch
51+
TARGET = $(NAME)
5252
OLDVERSION = 0.10.0
5353
VERSION = 0.10.1
5454
BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
@@ -75,9 +75,10 @@ endif
7575
$(TARGET): fmt toml $(OBJ)
7676
mkdir -p $(BUILDDIR)
7777
$(CXX) $(OBJ) $(BUILDDIR)/toml++/toml.o -o $(BUILDDIR)/$(TARGET) $(LDFLAGS)
78+
cd $(BUILDDIR)/ && ln -sf $(TARGET) cufetch
7879

7980
dist:
80-
bsdtar -zcf $(NAME)-v$(VERSION).tar.gz LICENSE cufetch.1 assets/ascii/ -C $(BUILDDIR) $(TARGET)
81+
bsdtar -zcf $(NAME)-v$(VERSION).tar.gz LICENSE $(TARGET).1 assets/ascii/ -C $(BUILDDIR) $(TARGET)
8182

8283
clean:
8384
rm -rf $(BUILDDIR)/$(TARGET) $(OBJ)
@@ -90,19 +91,20 @@ distclean:
9091

9192
install: $(TARGET)
9293
install $(BUILDDIR)/$(TARGET) -Dm 755 -v $(DESTDIR)$(PREFIX)/bin/$(TARGET)
94+
cd $(DESTDIR)$(PREFIX)/bin/ && ln -sf $(TARGET) cufetch
9395
mkdir -p $(DESTDIR)$(MANPREFIX)/man1/
94-
sed -e "s/@VERSION@/$(VERSION)/g" -e "s/@BRANCH@/$(BRANCH)/g" < cufetch.1 > $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
95-
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
96+
sed -e "s/@VERSION@/$(VERSION)/g" -e "s/@BRANCH@/$(BRANCH)/g" < $(TARGET).1 > $(DESTDIR)$(MANPREFIX)/man1/$(TARGET).1
97+
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$(TARGET).1
9698
cd assets/ && find ascii/ -type f -exec install -Dm 644 "{}" "$(DESTDIR)$(PREFIX)/share/customfetch/{}" \;
9799
ifeq ($(GUI_MODE), 1)
98100
mkdir -p $(DESTDIR)$(APPPREFIX)
99-
cp -f cufetch.desktop $(DESTDIR)$(APPPREFIX)
101+
cp -f $(TARGET).desktop $(DESTDIR)$(APPPREFIX)
100102
endif
101103

102104
uninstall:
103-
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
104-
rm -f $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
105-
rm -f $(DESTDIR)$(APPPREFIX)/cufetch.desktop
105+
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET) $(DESTDIR)$(PREFIX)/bin/cufetch
106+
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(TARGET).1
107+
rm -f $(DESTDIR)$(APPPREFIX)/$(TARGET).desktop
106108
rm -rf $(DESTDIR)$(PREFIX)/share/customfetch/
107109

108110
remove: uninstall

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The name can vary depending on the package manager or distro
5656

5757
>[!NOTE]
5858
>installing with GUI mode may slow down customfetch a bit because it needs to load the GUI libraries at runtime.\
59-
>To check if it's enabled or not, run "cufetch --version"
59+
>To check if it's enabled or not, run "customfetch --version"
6060
6161
### Debian/Ubuntu and based
6262
Download the latest `.deb` package in [releases](https://github.com/Toni500github/customfetch/releases/latest)
@@ -73,9 +73,9 @@ taur -S customfetch-gui-bin
7373

7474
### General Distros (Manual installation)
7575
Download the latest `.tar.gz` tarball file in [releases](https://github.com/Toni500github/customfetch/releases/latest) \
76-
It contains the binary `cufetch` and the manual `cufetch.1` with the `LICENSE`.\
76+
It contains the binary `customfetch` and the manual `customfetch.1` with the `LICENSE`.\
7777
Togheter with the directory `assets/ascii` with the distro ascii art logos.\
78-
If installing the GUI mode version, there's `cufetch.desktop`
78+
If installing the GUI mode version, there's `customfetch.desktop`
7979

8080
### Arch and based (AUR) (source)
8181
```bash
@@ -106,12 +106,12 @@ cd customfetch
106106
make install DEBUG=0 GUI_MODE=0
107107

108108
# automatically generates a config and prints the infos
109-
cufetch
109+
customfetch
110110
```
111111

112112
## Config (with explanation)
113113

114-
Read the manual `cufetch.1` or the comments in the default generated config for knowing more about the configuration in customfetch.\
114+
Read the manual `customfetch.1` or the comments in the default generated config for knowing more about the configuration in customfetch.\
115115
This is only an explaination about tags and preview, that can be always found in the documentation.
116116

117117
Here's an example using my config

cufetch.1 renamed to customfetch.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.SH NAME
44
customfetch \- A command\-line and GUI system information tool (or neofetch like program)
55
.SH SYNOPSIS
6-
.B cufetch
6+
.B customfetch
77
[\fI\,OPTION\/\fR]...
88
.SH CONFIGURATION
99
customfetch focus point is to be customizable and fast at the same time.
@@ -146,7 +146,7 @@ It's recommended to use GUI mode for the moment if something doesn't work
146146
\fB\-m\fR, \fB\-\-layout\-line\fR
147147
Will replace the config layout, with a layout you specify in the arguments
148148
.br
149-
Example: "cufetch -m "${auto}OS: $<os.name>" -m "${auto}CPU: $<cpu.cpu>" "
149+
Example: "customfetch -m "${auto}OS: $<os.name>" -m "${auto}CPU: $<cpu.cpu>" "
150150
.br
151151
Will only print the logo (if not disabled), along side the parsed OS and CPU
152152
.TP

cufetch.desktop renamed to customfetch.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Name=Customfetch
33
Comment=Highly customizable and fast fetch program
44
Type=Application
5-
Exec=cufetch --gui
5+
Exec=customfetch --gui
66
Terminal=false
77
Categories=Viewer;GTK;
88
Icon=lookswitcher

examples/config_cool.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# Save the file and use `-s "/path/to/text/file"`.
6969
# Use `--offset` (`-o`) for aligning and put it under the bonsai.
7070
#
71-
# Read the manual cufetch.1 for more infos with $() tag
71+
# Read the manual customfetch.1 for more infos with $() tag
7272
#
7373
# Q: Can I run recursive tags?
7474
# A: If "$<disk($<disk($[1,1,$(echo -n $<disk(/).mountdir>),23]).mountdir>).disk>" works,
@@ -224,7 +224,7 @@ flatpak-dirs = ["/var/lib/flatpak/app/", "~/.local/share/flatpak/app/"]
224224
apk-files = ["/var/lib/apk/db/installed"]
225225

226226
# GUI options
227-
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "cufetch --version")
227+
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "customfetch --version")
228228
[gui]
229229
enable = false
230230

examples/config_simple.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# Save the file and use `-s "/path/to/text/file"`.
6969
# Use `--offset` (`-o`) for aligning and put it under the bonsai.
7070
#
71-
# Read the manual cufetch.1 for more infos with $() tag
71+
# Read the manual customfetch.1 for more infos with $() tag
7272
#
7373
# Q: Can I run recursive tags?
7474
# A: If "$<disk($<disk($[1,1,$(echo -n $<disk(/).mountdir>),23]).mountdir>).disk>" works,

examples/nitch_like_config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# Save the file and use `-s "/path/to/text/file"`.
6969
# Use `--offset` (`-o`) for aligning and put it under the bonsai.
7070
#
71-
# Read the manual cufetch.1 for more infos with $() tag
71+
# Read the manual customfetch.1 for more infos with $() tag
7272
#
7373
# Q: Can I run recursive tags?
7474
# A: If "$<disk($<disk($[1,1,$(echo -n $<disk(/).mountdir>),23]).mountdir>).disk>" works,
@@ -206,7 +206,7 @@ flatpak-dirs = ["/var/lib/flatpak/app/", "~/.local/share/flatpak/app/"]
206206
apk-files = ["/var/lib/apk/db/installed"]
207207

208208
# GUI options
209-
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "cufetch --version")
209+
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "customfetch --version")
210210
[gui]
211211
enable = false
212212

include/config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ inline constexpr std::string_view AUTOCONFIG = R"#([config]
192192
# Save the file and use `-s "/path/to/text/file"`.
193193
# Use `--offset` (`-o`) for aligning and put it under the bonsai.
194194
#
195-
# Read the manual cufetch.1 for more infos with $() tag
195+
# Read the manual customfetch.1 for more infos with $() tag
196196
#
197197
# Q: Can I run recursive tags?
198198
# A: If "$<disk($<disk($[1,1,$(echo -n $<disk(/).mountdir>),23]).mountdir>).disk>" works,
@@ -340,7 +340,7 @@ flatpak-dirs = ["/var/lib/flatpak/app/", "~/.local/share/flatpak/app/"]
340340
apk-files = ["/var/lib/apk/db/installed"]
341341
342342
# GUI options
343-
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "cufetch --version" if GUI mode was enabled)
343+
# note: customfetch needs to be compiled with GUI_MODE=1 (check with "customfetch --version" if GUI mode was enabled)
344344
[gui]
345345
enable = false
346346

0 commit comments

Comments
 (0)