summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-03 20:52:55 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-03 20:52:55 -0500
commite909a97e8f18808f9e72e8efe0920fcb29a75446 (patch)
treecdb93c682697ed86929825f97478e28cf9565b16
parentabef51cfca81883c6124823f100505ba5ff92951 (diff)
downloadconf-e909a97e8f18808f9e72e8efe0920fcb29a75446.tar.gz
conf-e909a97e8f18808f9e72e8efe0920fcb29a75446.zip
put volume and brightness in the status bar
instead of using perspektiv
-rwxr-xr-xbin/hornet/status23
-rwxr-xr-xservices/available/perspektiv/log/run3
-rwxr-xr-xservices/available/perspektiv/run3
3 files changed, 23 insertions, 6 deletions
diff --git a/bin/hornet/status b/bin/hornet/status
index d068a17..f360aff 100755
--- a/bin/hornet/status
+++ b/bin/hornet/status
@@ -138,6 +138,29 @@ sub handle_i3status {
};
}
+ chomp(my $brightness = `backlight get`);
+ splice @$line, -1, 0, {
+ name => 'brightness',
+ full_text => "\N{WHITE SUN WITH RAYS} $brightness%",
+ color => '#FFFFFF'
+ };
+
+ chomp(my $volume = `volume get`);
+ if ($volume eq 'mute') {
+ splice @$line, -1, 0, {
+ name => 'volume',
+ full_text => "\N{SPEAKER}",
+ color => '#FFFFFF'
+ };
+ }
+ else {
+ splice @$line, -1, 0, {
+ name => 'volume',
+ full_text => "\N{SPEAKER WITH THREE SOUND WAVES} $volume%",
+ color => '#FFFFFF'
+ };
+ }
+
$current_data = $line;
show_status();
diff --git a/services/available/perspektiv/log/run b/services/available/perspektiv/log/run
deleted file mode 100755
index df97437..0000000
--- a/services/available/perspektiv/log/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec multilog t s16777215 $HOME/.log/perspektiv
diff --git a/services/available/perspektiv/run b/services/available/perspektiv/run
deleted file mode 100755
index 11c56ae..0000000
--- a/services/available/perspektiv/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec perspektiv