aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-05 15:31:02 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-05 15:33:30 +0100
commit44ea16b7be9f98e94526bf52403d75a8c3ef2b83 (patch)
tree13e14c9296dddafcfc1a3cda8ad581223f66fe73 /Scripts/.local/scripts
parentb51a3fbe7ac4d4de4466ccb15a7232380a6ca4ab (diff)
downloaddotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.tar.gz
dotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.tar.bz2
dotfiles-44ea16b7be9f98e94526bf52403d75a8c3ef2b83.zip
Add brightness script for statusbar
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-xScripts/.local/scripts/status/brightness3
-rwxr-xr-xScripts/.local/scripts/status/volume8
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