diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-05 15:31:02 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-10-05 15:33:30 +0100 |
commit | 44ea16b7be9f98e94526bf52403d75a8c3ef2b83 (patch) | |
tree | 13e14c9296dddafcfc1a3cda8ad581223f66fe73 /Scripts | |
parent | b51a3fbe7ac4d4de4466ccb15a7232380a6ca4ab (diff) | |
download | dotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.tar.gz dotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.tar.bz2 dotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.zip |
Add brightness script for statusbar
Diffstat (limited to 'Scripts')
-rwxr-xr-x | Scripts/.local/scripts/status/brightness | 3 | ||||
-rwxr-xr-x | Scripts/.local/scripts/status/volume | 8 |
2 files changed, 10 insertions, 1 deletions
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 |