From 2dea47a87e8a103087e1dba0bca531ade7fb297c Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Sun, 26 Jan 2025 12:51:08 +0530 Subject: sway: status.sh: London time and CPU temp indicator Signed-off-by: Brahmajit Das --- .config/sway/status.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/sway/status.sh b/.config/sway/status.sh index b501145..d39c17f 100755 --- a/.config/sway/status.sh +++ b/.config/sway/status.sh @@ -7,6 +7,7 @@ # time and date. date_formatted=$(date "+%a %F %I:%M") date_prague=$(TZ=Europe/Prague date "+%a %F %I:%M") +date_london=$(TZ=Europe/London date "+%a %F %I:%M") # "upower --enumerate | grep 'BAT'" gets the battery name (e.g., # "/org/freedesktop/UPower/devices/battery_BAT0") from all power devices. @@ -29,7 +30,7 @@ interface_easyname=$(dmesg | grep $network | grep renamed | awk 'NF>1{print $NF} ping=$(ping -c 1 www.google.es | tail -1| awk '{print $4}' | cut -d '/' -f 2 | cut -d '.' -f 1) # CPU temp -cpu_temp=$(sensors | grep -oP 'Package.*?\+\K[0-9.]+') +cpu_temp=$(sensors | grep -oP 'CPU.*?\+\K[0-9.]+') # Additional emojis and characters for the status bar: -echo $network $ip_addr \| $cpu_temp \| $battery_info \| PRG: $date_prague \| $date_formatted +echo $network $ip_addr \| CPU: $cpu_temp \| $battery_info \| LON: $date_london \| PRG: $date_prague \| $date_formatted -- cgit v1.2.3