From 23b7f246385f0576e0646680d37b23f86f7e287f Mon Sep 17 00:00:00 2001 From: Guusvanmeerveld Date: Tue, 25 Oct 2022 22:43:20 +0200 Subject: [PATCH] Added mconnect to polybar --- config/polybar/config.ini | 4 ++-- config/polybar/modules/status | 19 +++++++++++++++++-- config/polybar/phone-is-connected.sh | 7 +++++++ packages.conf.yaml | 2 ++ scripts/open-captive | 2 +- 5 files changed, 29 insertions(+), 5 deletions(-) create mode 100755 config/polybar/phone-is-connected.sh diff --git a/config/polybar/config.ini b/config/polybar/config.ini index 2608bca..6778431 100644 --- a/config/polybar/config.ini +++ b/config/polybar/config.ini @@ -59,8 +59,8 @@ module-margin-right = 2 module-margin-left = 2 modules-left = bspwm -modules-center = spotify -modules-right = temperature memory cpu battery wlan eth date +modules-center = title +modules-right = phone-battery temperature memory cpu battery wlan eth date wm-restack = bspwm diff --git a/config/polybar/modules/status b/config/polybar/modules/status index b2b705c..d7db7ef 100644 --- a/config/polybar/modules/status +++ b/config/polybar/modules/status @@ -18,12 +18,18 @@ ramp-capacity-2 =  ramp-capacity-3 =  ramp-capacity-4 =  +[module/title] +type = internal/xwindow + [module/temperature] type = internal/temperature -; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done -thermal-zone = 0 +; for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done +thermal-zone = /sys/class/thermal/thermal_zone0 + +hwmon-path = /sys/devices/pci0000:00/0000:00:01.1/0000:10:00.0/hwmon/hwmon2/temp1_input +; for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done format =