laptop/desktop difference, add temp to slstatus
authorMart Lubbers <mart@martlubbers.net>
Wed, 17 Jun 2020 07:21:44 +0000 (09:21 +0200)
committerMart Lubbers <mart@martlubbers.net>
Wed, 17 Jun 2020 07:21:44 +0000 (09:21 +0200)
config.h/slstatus/config.h

index 5850292..3a66ee3 100644 (file)
@@ -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" },
 };