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/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