From f673c4543e235c81a228262495daf8a615a657dc Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 12 Apr 2024 17:07:37 -0500 Subject: [PATCH] added volume bar to playerctl statuses. --- modules/both/i3/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/both/i3/default.nix b/modules/both/i3/default.nix index 52fc283..30cca2f 100644 --- a/modules/both/i3/default.nix +++ b/modules/both/i3/default.nix @@ -155,13 +155,13 @@ ''; "${mod}+mod1+p" = '' - exec --no-startup-id "playerctl play-pause" + exec --no-startup-id "playerctl play-pause; dunstify -h string:x-dunst-stack-tag:playerstatus --timeout=500 Player $(playerctl status)" ''; "${mod}+mod1+plus" = '' - exec --no-startup-id "playerctl volume -- +0.1; dunstify -h string:x-dunst-stack-tag:playervol --timeout=500 Player $(playerctl volume)" + exec --no-startup-id "playerctl volume 0.01+; dunstify -h string:x-dunst-stack-tag:volume --timeout=500 -h int:value:$(playerctl volume | cut -d' ' -f2 | awk '{print $1*100}' ) Player" ''; "${mod}+mod1+minus" = '' - exec --no-startup-id "playerctl volume -- -0.1; dunstify -h string:x-dunst-stack-tag:playervol --timeout=500 Player $(playerctl volume)" + exec --no-startup-id "playerctl volume 0.01-; dunstify -h string:x-dunst-stack-tag:volume --timeout=500 -h int:value:$(playerctl volume | cut -d' ' -f2 | awk '{print $1*100}' ) Player" ''; #open volume control