diff options
author | dx <aryadevchavali1@gmail.com> | 2020-07-07 00:29:44 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-07-07 00:29:44 +0100 |
commit | 2f3ce0ed39bb444ab457deeba71ff2d0222e97d6 (patch) | |
tree | 0794c01033ec2976bb0371a8a7940f46bca180f5 /Scripts/.local/scripts | |
parent | 2d7f876c382ab64791d9637c8a0da88f220c61ee (diff) | |
download | dotfiles-2f3ce0ed39bb444ab457deeba71ff2d0222e97d6.tar.gz dotfiles-2f3ce0ed39bb444ab457deeba71ff2d0222e97d6.tar.bz2 dotfiles-2f3ce0ed39bb444ab457deeba71ff2d0222e97d6.zip |
~scripts with better simpler icons
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/status/connection | 4 | ||||
-rwxr-xr-x | Scripts/.local/scripts/status/datetime | 2 | ||||
-rwxr-xr-x | Scripts/.local/scripts/status/music | 2 | ||||
-rwxr-xr-x | Scripts/.local/scripts/status/volume | 14 |
4 files changed, 6 insertions, 16 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection index 139fea0..94eb929 100755 --- a/Scripts/.local/scripts/status/connection +++ b/Scripts/.local/scripts/status/connection @@ -3,7 +3,7 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then - echo "Connected" + echo " Connected" else - echo "Not connected" + echo " Not connected" fi diff --git a/Scripts/.local/scripts/status/datetime b/Scripts/.local/scripts/status/datetime index 39f1c06..6c0c0e9 100755 --- a/Scripts/.local/scripts/status/datetime +++ b/Scripts/.local/scripts/status/datetime @@ -1,2 +1,2 @@ #!/usr/bin/env bash -echo $(date +'%a %F %R') +echo $(date +'%a %F %R') diff --git a/Scripts/.local/scripts/status/music b/Scripts/.local/scripts/status/music index 262dc81..15c9ea3 100755 --- a/Scripts/.local/scripts/status/music +++ b/Scripts/.local/scripts/status/music @@ -7,4 +7,4 @@ then else name="Playing: $name" fi -echo $name +echo $name diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume index c3de64c..c8c3dc5 100755 --- a/Scripts/.local/scripts/status/volume +++ b/Scripts/.local/scripts/status/volume @@ -3,19 +3,9 @@ sinks="$(pactl list sinks)" vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" mpc_vol="$($HOME/.local/scripts/mpc_volume)" -if [[ $vol -gt 50 ]] -then - icon="" -elif [[ $vol -gt 10 ]] -then - icon="" -else - icon="" -fi - if [[ $mpc_vol == "n/a" ]] then - echo "$icon $vol%" + echo " $vol%" else - echo "$icon $vol% $mpc_vol%" + echo " $vol% $mpc_vol%" fi |