diff --git a/modules/both/i3/default.nix b/modules/both/i3/default.nix index 30cca2f..52fc283 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; dunstify -h string:x-dunst-stack-tag:playerstatus --timeout=500 Player $(playerctl status)" + exec --no-startup-id "playerctl play-pause" ''; "${mod}+mod1+plus" = '' - 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" + exec --no-startup-id "playerctl volume -- +0.1; dunstify -h string:x-dunst-stack-tag:playervol --timeout=500 Player $(playerctl volume)" ''; "${mod}+mod1+minus" = '' - 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" + exec --no-startup-id "playerctl volume -- -0.1; dunstify -h string:x-dunst-stack-tag:playervol --timeout=500 Player $(playerctl volume)" ''; #open volume control diff --git a/modules/both/i3/i3status-rust.nix b/modules/both/i3/i3status-rust.nix index c354981..c903388 100644 --- a/modules/both/i3/i3status-rust.nix +++ b/modules/both/i3/i3status-rust.nix @@ -28,7 +28,7 @@ blocks = [ { block = "music"; - format = "{$icon $combo.str(max_w:25,rot_interval:0.5) $play $prev $next $player.str(max_w:5,rot_interval:0.5) [$cur/$avail]|}"; + format = "{$icon $combo.str(max_w:25,rot_interval:0.5) $play $prev $next $player.str(max_w:5,rot_interval:0.5) [$cur/$avail] |}"; } { block = "memory"; @@ -54,8 +54,7 @@ { block = "battery"; driver = "upower"; - device = "DisplayDevice"; - format = "$icon $percentage {$time|}"; + format = "$icon $percentage {$time |}"; } ) { @@ -65,7 +64,7 @@ } { block = "sound"; - format = "$icon {$volume.bar(v:true) $volume.eng(w:2)|}"; + format = "$icon {$volume.bar(v:true) $volume.eng(w:2) |}"; headphones_indicator = true; click = [ {