From: Mart Lubbers Date: Wed, 17 Jun 2020 07:21:44 +0000 (+0200) Subject: laptop/desktop difference, add temp to slstatus X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=e3950fe1a168d51663e73c613ba362b8f67d290e;p=dotfiles.git laptop/desktop difference, add temp to slstatus --- diff --git a/config.h/slstatus/config.h b/config.h/slstatus/config.h index 5850292..3a66ee3 100644 --- a/config.h/slstatus/config.h +++ b/config.h/slstatus/config.h @@ -63,15 +63,22 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ + { temp, "🌡 %s°C | ", + "/sys/class/thermal/thermal_zone1/temp"}, { num_files, "✉ %s | ", "/home/mrl/.local/share/offlineimap/mail/INBOX/new" }, - { keymap, "%s | ", NULL }, - { ipv4, "E %s | ", "enp0s31f6" }, - { wifi_essid, "W %s ", "wlp1s0" }, - { ipv4, "(%s) | ", "wlp1s0" }, - { battery_perc, "⚡%s%%", "BAT0"}, - { battery_state, "(%s) | ", "BAT0"}, - { disk_free, "%s/", "/" }, - { disk_total, "%s | ", "/" }, - { datetime, "%s", "%Y-%m-%d %H:%M" }, + { keymap, "%s | ", NULL }, + { ipv4, "E %s | ", "enp0s31f6" }, +#ifdef LAPTOP + { wifi_essid, "W %s ", "wlp1s0" }, + { ipv4, "(%s) | ", "wlp1s0" }, + { battery_perc, "⚡%s%%", "BAT0"}, + { battery_state, "(%s) | ", "BAT0"}, +#else + { disk_free, "/mnt/data: %s/", "/mnt/data" }, + { disk_total, "%s | ", "/mnt/data" }, +#endif + { disk_free, "/: %s/", "/" }, + { disk_total, "%s | ", "/" }, + { datetime, "%s", "%Y-%m-%d %H:%M" }, };