From 6a6d731e68429792a97e8e1abf4ad240b5dae7e5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 May 2025 12:49:46 +0200 Subject: [PATCH] added pactl this time fr --- desktopenvs/hyprland/eww-nobattery/eww.yuck | 10 ++++++---- desktopenvs/hyprland/eww-touch/eww.yuck | 10 ++++++---- desktopenvs/hyprland/eww/eww.yuck | 12 +++++++----- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/desktopenvs/hyprland/eww-nobattery/eww.yuck b/desktopenvs/hyprland/eww-nobattery/eww.yuck index 96fee8a..c79e539 100644 --- a/desktopenvs/hyprland/eww-nobattery/eww.yuck +++ b/desktopenvs/hyprland/eww-nobattery/eww.yuck @@ -30,10 +30,12 @@ (box :class "music" {"󰛳 ${IP}"}) (metric :label "󰓃" :value volume - :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%") + :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%" + :onclick "hyprctl dispatch exec \[tag +mixer\] pavucontrol") (metric :label "" :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} - :onchange "") + :onchange "" + :onclick "") (clock) (systray :class "music" :orientation "h" :spacing 2 :space-evenly true) )) @@ -47,11 +49,11 @@ {music != "" ? " ${music}" : " None"})) -(defwidget metric [label value onchange] +(defwidget metric [label value onchange onclick] (box :orientation "h" :class "metric" :space-evenly false - (box :class "label" label) + (button :class "label" :onclick onclick label) (scale :min 0 :max 101 :active {onchange != ""} diff --git a/desktopenvs/hyprland/eww-touch/eww.yuck b/desktopenvs/hyprland/eww-touch/eww.yuck index 096692c..f9ee5d9 100644 --- a/desktopenvs/hyprland/eww-touch/eww.yuck +++ b/desktopenvs/hyprland/eww-touch/eww.yuck @@ -36,10 +36,12 @@ (box :class "music" {"󰛳 ${IP}"}) (metric :label "󰓃" :value volume - :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%") + :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%" + :onclick "hyprctl dispatch exec \[tag +mixer\] pavucontrol") (metric :label "" :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} - :onchange "") + :onchange "" + :onclick "") (clock) (systray :class "music" :orientation "h" :spacing 2 :space-evenly true) )) @@ -62,11 +64,11 @@ ) ) -(defwidget metric [label value onchange] +(defwidget metric [label value onchange onclick] (box :orientation "h" :class "metric" :space-evenly false - (box :class "label" label) + (button :class "label" :onclick onclick label) (scale :min 0 :max 101 :active {onchange != ""} diff --git a/desktopenvs/hyprland/eww/eww.yuck b/desktopenvs/hyprland/eww/eww.yuck index 3a9530a..1c03319 100644 --- a/desktopenvs/hyprland/eww/eww.yuck +++ b/desktopenvs/hyprland/eww/eww.yuck @@ -35,13 +35,15 @@ (box :class "music" {"󰛳 ${IP}"}) (metric :label "󰓃" :value volume - :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%") + :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%" + :onclick "hyprctl dispatch exec \[tag +mixer\] pavucontrol") (metric :label "" :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} - :onchange "") + :onchange "" + :onclick "") (clock) (systray :class "music" :orientation "h" :spacing 2 :space-evenly true) - )) +)) (defwidget music [] (button :class "music" @@ -52,11 +54,11 @@ {music != "" ? " ${music}" : " None"})) -(defwidget metric [label value onchange] +(defwidget metric [label value onchange onclick] (box :orientation "h" :class "metric" :space-evenly false - (box :class "label" label) + (button :class "label" :onclick onclick label) (scale :min 0 :max 101 :active {onchange != ""}