From 44ea16b7be9f98e94526bf52403d75a8c3ef2b83 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 5 Oct 2024 15:31:02 +0100 Subject: Add brightness script for statusbar --- Scripts/.local/scripts/status/brightness | 3 +++ Scripts/.local/scripts/status/volume | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 Scripts/.local/scripts/status/brightness (limited to 'Scripts/.local/scripts/status') diff --git a/Scripts/.local/scripts/status/brightness b/Scripts/.local/scripts/status/brightness new file mode 100755 index 0000000..63e2562 --- /dev/null +++ b/Scripts/.local/scripts/status/brightness @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +printf " %.0f%%\n" $(xbacklight) diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume index 948283c..70c8c5f 100755 --- a/Scripts/.local/scripts/status/volume +++ b/Scripts/.local/scripts/status/volume @@ -1,2 +1,8 @@ #!/usr/bin/env bash -echo " $(pamixer --get-volume-human)" + +if [[ $(pamixer --get-mute) == "true" ]] +then + echo "" +else + echo " $(pamixer --get-volume-human)" +fi -- cgit v1.2.3-13-gbd6f