Compare commits
4 Commits
33e64a6540
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b147fca95 | |||
| 44d111f8db | |||
| 7bbc2dcf68 | |||
| 66d3804a5f |
2
Makefile
2
Makefile
@@ -63,6 +63,8 @@ install: all
|
||||
mkdir -p "$(DESTDIR)$(MANPREFIX)/man1"
|
||||
cp -f slstatus.1 "$(DESTDIR)$(MANPREFIX)/man1"
|
||||
chmod 644 "$(DESTDIR)$(MANPREFIX)/man1/slstatus.1"
|
||||
pkill -x slstatus || true
|
||||
slstatus &
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(PREFIX)/bin/slstatus"
|
||||
|
||||
@@ -56,10 +56,10 @@
|
||||
char *state;
|
||||
char *symbol;
|
||||
} map[] = {
|
||||
{ "Charging", "+" },
|
||||
{ "Discharging", "-" },
|
||||
{ "Full", "o" },
|
||||
{ "Not charging", "o" },
|
||||
{ "Charging", "\U000f008f" },
|
||||
{ "Discharging", "\U000f008c" },
|
||||
{ "Full", "\U000f1210" },
|
||||
{ "Not charging", "\U000f0079" },
|
||||
};
|
||||
size_t i;
|
||||
char path[PATH_MAX], state[12];
|
||||
|
||||
11
config.h
11
config.h
@@ -65,5 +65,14 @@ static const char unknown_str[] = "n/a";
|
||||
*/
|
||||
static const struct arg args[] = {
|
||||
/* function format argument */
|
||||
{ datetime, "%s", "%F %T" },
|
||||
{ datetime, "%s", "%Y-%m-%d %k:%M" },
|
||||
{ run_command, " | ", NULL },
|
||||
{ battery_perc, "%s%%", "BAT0" },
|
||||
{ run_command, " ", NULL },
|
||||
{ battery_state, "%s", "BAT0" },
|
||||
{ run_command, " | ", NULL },
|
||||
{ battery_perc, "%s%%", "BAT1" },
|
||||
{ run_command, " ", NULL },
|
||||
{ battery_state, "%s", "BAT1" },
|
||||
{ run_command, " ", NULL },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user