aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 16:02:21 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-31 16:02:21 +0100
commit17348abe78e05702acaff25d6abefa96ff87b43d (patch)
tree041a980f534cbe7a10e352612f3e540417cc4280 /Scripts/.local/scripts/status
parent046e0b9f0123a3c4bd8aa32431b72de486c60671 (diff)
parentfdef946d6555b01b33fe496cdcd6fb293ae11eab (diff)
downloaddotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.tar.gz
dotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.tar.bz2
dotfiles-17348abe78e05702acaff25d6abefa96ff87b43d.zip
Merge remote-tracking branch 'origin/master'
For desktop
Diffstat (limited to 'Scripts/.local/scripts/status')
-rwxr-xr-xScripts/.local/scripts/status/bluetooth-status8
-rwxr-xr-xScripts/.local/scripts/status/datetime2
-rwxr-xr-xScripts/.local/scripts/status/memory2
-rwxr-xr-xScripts/.local/scripts/status/volume2
4 files changed, 10 insertions, 4 deletions
diff --git a/Scripts/.local/scripts/status/bluetooth-status b/Scripts/.local/scripts/status/bluetooth-status
index c34694c..6de5422 100755
--- a/Scripts/.local/scripts/status/bluetooth-status
+++ b/Scripts/.local/scripts/status/bluetooth-status
@@ -1,9 +1,15 @@
#!/usr/bin/env sh
name=$(bluetoothctl info | grep "Name" | sed 's/.*Name: //')
+battery=$(bluetoothctl info | grep "Battery" | sed 's/.*(//;s/)//')
if [ ! "$name" ]
then
echo ""
else
- echo "" $name;
+ echo -n "" $name;
+ if [ "$battery" ]
+ then
+ echo -n " ($battery%)"
+ fi
+ echo ""
fi
diff --git a/Scripts/.local/scripts/status/datetime b/Scripts/.local/scripts/status/datetime
index c688bb5..65ebe14 100755
--- a/Scripts/.local/scripts/status/datetime
+++ b/Scripts/.local/scripts/status/datetime
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
-echo " $(date +'%A %d %b %R')"
+echo " $(date +'%A %d %b %R')"
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory
index fae4dea..2d1c328 100755
--- a/Scripts/.local/scripts/status/memory
+++ b/Scripts/.local/scripts/status/memory
@@ -11,4 +11,4 @@ then
emacs="N/A"
fi
-echo "⾎ $(printf "%dMB" $used) $value% ->  $emacs"
+echo "⾝ $(printf "%dMB" $used) $value% -> $emacs"
diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume
index eedd657..4355094 100755
--- a/Scripts/.local/scripts/status/volume
+++ b/Scripts/.local/scripts/status/volume
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
-echo "" $(pamixer --get-volume-human)
+echo " $(pamixer --get-volume-human)"