summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.hush1
-rwxr-xr-xbin/hush/volume9
-rw-r--r--config/perspektiv/config.toml15
-rwxr-xr-xservices/available/perspektiv/log/run3
-rwxr-xr-xservices/available/perspektiv/run3
-rwxr-xr-xservices/available/volnoti/log/run3
-rwxr-xr-xservices/available/volnoti/run3
7 files changed, 22 insertions, 15 deletions
diff --git a/Makefile.hush b/Makefile.hush
index 43087ec..6c951a5 100644
--- a/Makefile.hush
+++ b/Makefile.hush
@@ -2,6 +2,7 @@ INSTALL := \
.config/alacritty/alacritty.yml \
.config/darksky/api \
.config/darksky/location \
+ .config/perspektiv/config.toml \
.config/touchegg/touchegg.conf \
.i3status.conf \
.notmuch-config \
diff --git a/bin/hush/volume b/bin/hush/volume
index bc37b45..e4c81fb 100755
--- a/bin/hush/volume
+++ b/bin/hush/volume
@@ -13,12 +13,3 @@ case $1 in
pactl set-sink-mute 0 toggle
;;
esac
-
-INFO=$(pacmd dump | grep analog-stereo)
-VOLUME=$(echo "$INFO" | grep 'set-sink-volume' | cut -d' ' -f 3 | perl -e'my $vol = 100*oct(<>)/0x10000; print $vol > 100 ? 100 : $vol')
-STATE=$(echo "$INFO" | grep 'set-sink-mute' | cut -d' ' -f 3)
-if [[ "x$STATE" == "xyes" ]]; then
- volnoti-show -m
-else
- volnoti-show $VOLUME
-fi
diff --git a/config/perspektiv/config.toml b/config/perspektiv/config.toml
new file mode 100644
index 0000000..2204dae
--- /dev/null
+++ b/config/perspektiv/config.toml
@@ -0,0 +1,15 @@
+[window]
+width = 200
+height = 200
+padding = 60
+spacing = 20
+margin_horiz = { anchor = "Right", margin = 860 }
+margin_vert = { anchor = "Top", margin = 440 }
+duration = 1200
+opacity = 70
+
+[percentage]
+show_numeric = true
+
+[boolean]
+show_label = true
diff --git a/services/available/perspektiv/log/run b/services/available/perspektiv/log/run
new file mode 100755
index 0000000..df97437
--- /dev/null
+++ b/services/available/perspektiv/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec multilog t s16777215 $HOME/.log/perspektiv
diff --git a/services/available/perspektiv/run b/services/available/perspektiv/run
new file mode 100755
index 0000000..11c56ae
--- /dev/null
+++ b/services/available/perspektiv/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec perspektiv
diff --git a/services/available/volnoti/log/run b/services/available/volnoti/log/run
deleted file mode 100755
index d5186f0..0000000
--- a/services/available/volnoti/log/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec multilog t s16777215 $HOME/.log/volnoti
diff --git a/services/available/volnoti/run b/services/available/volnoti/run
deleted file mode 100755
index 6481a2b..0000000
--- a/services/available/volnoti/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec volnoti -n -t 2