summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2025-01-26 12:51:08 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2025-01-26 12:51:08 +0530
commit2dea47a87e8a103087e1dba0bca531ade7fb297c (patch)
treed70985f44ca42be1757b96a23a28587a648e472f
parent51e48dd19c27dd5743bd02d233f7daa5bf81d0c1 (diff)
sway: status.sh: London time and CPU temp indicator
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rwxr-xr-x.config/sway/status.sh5
1 files 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