added pactl this time fr
parent
65ca9df0ad
commit
6a6d731e68
|
|
@ -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 != ""}
|
||||
|
|
|
|||
|
|
@ -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 != ""}
|
||||
|
|
|
|||
|
|
@ -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 != ""}
|
||||
|
|
|
|||
Loading…
Reference in New Issue