File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11CXX ?= g++
22PREFIX ?= /usr
33MANPREFIX ?= $(PREFIX ) /share/man
4+ APPPREFIX ?= $(PREFIX ) /share/applications
45VARS ?=
56GUI_MODE ?= 0
67
@@ -82,5 +83,7 @@ install: $(TARGET)
8283 sed -e " s/@VERSION@/$( VERSION) /g" -e " s/@BRANCH@/$( BRANCH) /g" < cufetch.1 > $(DESTDIR )$(MANPREFIX ) /man1/cufetch.1
8384 chmod 644 $(DESTDIR )$(MANPREFIX ) /man1/cufetch.1
8485 cd assets/ && find ascii/ -type f -exec install -Dm 644 " {}" " $( DESTDIR) $( PREFIX) /share/customfetch/{}" \;
86+ mkdir -p $(DESTDIR )$(APPPREFIX )
87+ cp -f cufetch.desktop $(DESTDIR )$(APPPREFIX )
8588
8689.PHONY : $(TARGET ) dist distclean fmt toml install all
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env xdg-open
12[Desktop Entry]
23Name =Customfetch
34Comment =Highly customizable and fast fetch program
45Type =Application
5- Path =/home/toni/stupid_projects/customfetch/
6- Exec =./ cufetch --gui
6+ # Path=/home/toni/stupid_projects/customfetch/
7+ Exec =cufetch --gui
78Terminal =false
89Categories =Viewer;GTK;
910Icon =lookswitcher
10- Keywords =neofetch;
11+ Keywords =customfetch;cufetch
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ static std::string get_wm_name()
6464
6565 debug (" WM proc_name = {}" , proc_name);
6666
67- if ((wm_name = prettify_wm_name (str_tolower ( proc_name) )) == MAGIC_LINE)
67+ if ((wm_name = prettify_wm_name (proc_name)) == MAGIC_LINE)
6868 continue ;
6969
7070 break ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ std::string prettify_wm_name(const std::string_view name) noexcept
6464 // https://github.com/KittyKatt/screenFetch/blob/master/screenfetch-dev#L93
6565 // added some missing.
6666 // ngl this looks beatiful thanks to clang-format :D
67- switch (fnv1a16::hash (name))
67+ switch (fnv1a16::hash (str_tolower ( name. data ()) ))
6868 {
6969 case " 2bwm" _fnv1a16: return " 2bwm" ;
7070 case " 9wm" _fnv1a16: return " 9wm" ;
You can’t perform that action at this time.
0 commit comments