From 3315faabe0201f9a209235ef5291f02076dbcbac Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 10:59:42 +0100 Subject: ... --- accounts/gkleen@sif/niri/waybar.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'accounts/gkleen@sif/niri/waybar.nix') diff --git a/accounts/gkleen@sif/niri/waybar.nix b/accounts/gkleen@sif/niri/waybar.nix index 625deea5..8667a4a4 100644 --- a/accounts/gkleen@sif/niri/waybar.nix +++ b/accounts/gkleen@sif/niri/waybar.nix @@ -1,5 +1,7 @@ -{ lib, pkgs, ... }: -{ +{ lib, config, pkgs, ... }: +let + swayosd-client = lib.getExe' config.services.swayosd.package "swayosd-client"; +in { config = { programs.waybar = { enable = true; @@ -190,8 +192,8 @@ icon-size = iconSize; tooltip-format = "{percent}%"; format-icons = ["󰃚" "󰃛" "󰃜" "󰃝" "󰃞" "󰃟" "󰃠"]; - on-scroll-up = "lightctl -d -e4 -n1 up"; - on-scroll-down = "lightctl -d -e4 -n1 down"; + on-scroll-up = "${swayosd-client} --brightness raise"; + on-scroll-down = "${swayosd-client} --brightness lower"; }; wireplumber = { format = "{icon}"; @@ -200,9 +202,9 @@ format-icons = ["󰕿" "󰖀" "󰕾"]; format-muted = "󰝟"; # ignored-sinks = ["Easy Effects Sink"]; - on-scroll-up = "volumectl -d -u up"; - on-scroll-down = "volumectl -d -u down"; - on-click = "volumectl -d toggle-mute"; + on-scroll-up = "${swayosd-client} --output-volume raise"; + on-scroll-down = "${swayosd-client} --output-volume lower"; + on-click = "${swayosd-client} --output-volume mute-toggle"; }; } { -- cgit v1.2.3