From 7ae4effaddf2daccd77337efdfa2eb77adc30906 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 24 Apr 2022 08:08:26 +0200 Subject: [PATCH] Add git ignore file --- .gitignore | 3 +++ config.h | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e78f303 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +slstatus + diff --git a/config.h b/config.h index 9028b1c..75eb543 100644 --- a/config.h +++ b/config.h @@ -65,10 +65,17 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ - { run_command, ": %4s | ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" }, + // { run_command, ": %4s | ", "amixer sget Master | awk -F\"[][]\" '/%/ { print $2 }' | head -n1" }, + { vol_perc, ": %4s | ", "/dev/mixer" }, { run_command, " %3s%% | ", "xbacklight -get | awk '{print $1}'" }, - { battery_perc, " %s%% ", "BAT0" }, + { temp, " %s°C ", "/sys/class/thermal/thermal_zone0/temp" }, + { entropy, " %s ", NULL }, { cpu_perc, " %s%% ", NULL }, { ram_perc, " %s%% ", NULL }, - { datetime, "%s", "%a %b %d %r" }, +// { netspeed_tx, " %s ^ ", "wlan0" }, +// { netspeed_rx, " %s ", "wlan0" }, + { battery_perc, " %s%% ", "BAT0" }, + { battery_state, "%s ", "BAT0" }, + { keymap, " %s ", NULL }, + { datetime, " %s ", "%F %T" }, };