aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/status')
-rwxr-xr-xScripts/.local/scripts/status/connection2
-rwxr-xr-xScripts/.local/scripts/status/music4
2 files changed, 3 insertions, 3 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection
index 301797b..8e4ebf3 100755
--- a/Scripts/.local/scripts/status/connection
+++ b/Scripts/.local/scripts/status/connection
@@ -4,7 +4,7 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}')
if [[ $internet == "connected" ]]
then
con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g')
- echo " " $con
+ echo "" $con
else
echo " Not Connected"
fi
diff --git a/Scripts/.local/scripts/status/music b/Scripts/.local/scripts/status/music
index 9c982e0..6d09868 100755
--- a/Scripts/.local/scripts/status/music
+++ b/Scripts/.local/scripts/status/music
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
-title=$(playerctl --player=spotify metadata title)
-echo "${title::40}"
+title=$(playerctl --player=spotify metadata title | cut -c 1-30)
+echo " $title"