aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--laptop.diff42
-rw-r--r--slstatus/config.def.h1
-rw-r--r--slstatus/config.h1
3 files changed, 20 insertions, 24 deletions
diff --git a/laptop.diff b/laptop.diff
index c02a8e2..d1c2537 100644
--- a/laptop.diff
+++ b/laptop.diff
@@ -1,34 +1,28 @@
diff --git a/slstatus/config.def.h b/slstatus/config.def.h
-index 9eb7384..b9536b3 100644
+index c273999..d8c35ed 100644
--- a/slstatus/config.def.h
+++ b/slstatus/config.def.h
-@@ -67,8 +67,8 @@ static const struct arg args[] = {
-
- /* function format argument interval (in ms) */
-
-- {datetime, "%s;", "%G. %B. %e. %a"},
-- {keymap, "%s ", NULL},
-- {datetime, "%s ", "%H:%M:%S"},
-+ {datetime, "%s;", "%G. %B. %e. %a"}, {keymap, "%s ", NULL},
-+ {wifi_essid, "%s ", "wlan0"}, {battery_perc, "%s%%", "BAT1"},
-+ {datetime, " %s ", "%H:%M:%S"},
-
+@@ -70,6 +70,8 @@ static const struct arg args[] = {
+ {datetime, "%s;", "%G. %B. %e. %a"},
+ {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"},
+ {keymap, "%s ", NULL},
++ {wifi_essid, "%s ", "wlan0"},
++ {battery_perc, "%s%% ", "BAT1"},
+ {datetime, "%s ", "%H:%M:%S"},
+
};
diff --git a/slstatus/config.h b/slstatus/config.h
-index 9eb7384..b9536b3 100644
+index c273999..d8c35ed 100644
--- a/slstatus/config.h
+++ b/slstatus/config.h
-@@ -67,8 +67,8 @@ static const struct arg args[] = {
-
- /* function format argument interval (in ms) */
-
-- {datetime, "%s;", "%G. %B. %e. %a"},
-- {keymap, "%s ", NULL},
-- {datetime, "%s ", "%H:%M:%S"},
-+ {datetime, "%s;", "%G. %B. %e. %a"}, {keymap, "%s ", NULL},
-+ {wifi_essid, "%s ", "wlan0"}, {battery_perc, "%s%%", "BAT1"},
-+ {datetime, " %s ", "%H:%M:%S"},
-
+@@ -70,6 +70,8 @@ static const struct arg args[] = {
+ {datetime, "%s;", "%G. %B. %e. %a"},
+ {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"},
+ {keymap, "%s ", NULL},
++ {wifi_essid, "%s ", "wlan0"},
++ {battery_perc, "%s%% ", "BAT1"},
+ {datetime, "%s ", "%H:%M:%S"},
+
};
diff --git a/st/config.def.h b/st/config.def.h
index f5b4265..aec5a49 100644
diff --git a/slstatus/config.def.h b/slstatus/config.def.h
index 9eb7384..c273999 100644
--- a/slstatus/config.def.h
+++ b/slstatus/config.def.h
@@ -68,6 +68,7 @@ static const struct arg args[] = {
/* function format argument interval (in ms) */
{datetime, "%s;", "%G. %B. %e. %a"},
+ {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"},
{keymap, "%s ", NULL},
{datetime, "%s ", "%H:%M:%S"},
diff --git a/slstatus/config.h b/slstatus/config.h
index 9eb7384..c273999 100644
--- a/slstatus/config.h
+++ b/slstatus/config.h
@@ -68,6 +68,7 @@ static const struct arg args[] = {
/* function format argument interval (in ms) */
{datetime, "%s;", "%G. %B. %e. %a"},
+ {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"},
{keymap, "%s ", NULL},
{datetime, "%s ", "%H:%M:%S"},