Compare commits
No commits in common. "a59b589dca76a2ba69d480ca563ac71c4e39bc63" and "9eb26b34d2e498e450f120c003e0f0cbd383e3a9" have entirely different histories.
a59b589dca
...
9eb26b34d2
4 changed files with 11 additions and 75 deletions
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
case "$1" in
|
||||
up)
|
||||
set -- -i
|
||||
;;
|
||||
down)
|
||||
set -- -d
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
set -- pamixer "$@" 5
|
||||
|
||||
exec "$@"
|
|
@ -3,6 +3,7 @@ window, menubar {
|
|||
}
|
||||
|
||||
window {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
@ -14,10 +15,9 @@ window > box > box > * {
|
|||
border-top: 2px solid white;
|
||||
}
|
||||
|
||||
:hover {
|
||||
border-color: #b0ffb0;
|
||||
color: #b0ffb0;
|
||||
border-top-width: 2px;
|
||||
.workspace-button:hover {
|
||||
border-color: #80ff80;
|
||||
color: #e0ffe0;
|
||||
}
|
||||
|
||||
.workspace-button > box {
|
||||
|
|
|
@ -24,15 +24,10 @@
|
|||
)
|
||||
|
||||
(deflisten notifications
|
||||
:initial '{"count":0}'
|
||||
:initial '{}'
|
||||
"swaync-client --subscribe"
|
||||
)
|
||||
|
||||
(deflisten sound
|
||||
:initial '{"output-volume":0,"input-volume":0,"output-muted":false}'
|
||||
"listen/sound"
|
||||
)
|
||||
|
||||
(defvar battery-icon '{
|
||||
"unknown": "",
|
||||
"critical": "",
|
||||
|
@ -59,13 +54,6 @@
|
|||
"dnd": ""
|
||||
}')
|
||||
|
||||
(defvar sound-icon '{
|
||||
"absent": "",
|
||||
"moderate": "",
|
||||
"loud": "",
|
||||
"muted": ""
|
||||
}')
|
||||
|
||||
(defwidget workspaces []
|
||||
(eventbox :onscroll 'action/hyprland/nearby-workspace "{}"'
|
||||
(box :class "workspaces"
|
||||
|
@ -95,11 +83,7 @@
|
|||
))
|
||||
|
||||
(defwidget time []
|
||||
(box (eventbox
|
||||
:onclick 'eww open --toggle calendar'
|
||||
|
||||
"${formattime(EWW_TIME, "%Y-%m-%d")} ${formattime(EWW_TIME, "%H:%M:%S")}"
|
||||
))
|
||||
"${formattime(EWW_TIME, "%Y-%m-%d")} ${formattime(EWW_TIME, "%H:%M:%S")}"
|
||||
)
|
||||
|
||||
(defwidget notifications []
|
||||
|
@ -107,7 +91,6 @@
|
|||
:class "module"
|
||||
:onclick 'swaync-client --toggle-panel'
|
||||
:onrightclick 'swaync-client --toggle-dnd'
|
||||
:onmiddleclick 'swaync-client --close-all'
|
||||
|
||||
"${
|
||||
notifications.dnd == true
|
||||
|
@ -115,30 +98,18 @@
|
|||
: notifications.count > 0
|
||||
? notifications-icon["new"]
|
||||
: notifications-icon["nothing"]
|
||||
} ${notifications.count}"
|
||||
} ${notifications.count}"
|
||||
))
|
||||
)
|
||||
|
||||
(defwidget sound []
|
||||
(box (eventbox
|
||||
:onscroll 'action/volume "{}"'
|
||||
:onclick 'pavucontrol & disown'
|
||||
|
||||
"${
|
||||
sound.output-muted == true ? sound-icon["muted"] :
|
||||
sound.output-volume < 33 ? sound-icon["absent"] :
|
||||
sound.output-volume < 67 ? sound-icon["moderate"] :
|
||||
sound-icon["loud"]
|
||||
} ${sound.output-volume} %"
|
||||
))
|
||||
)
|
||||
; (defwidget sound [] "")
|
||||
|
||||
(defwidget network []
|
||||
"${
|
||||
network.state == "wireless"
|
||||
? network-icon["wifi-${network.wifi.signal}"]
|
||||
: network-icon[network.state]
|
||||
} ${
|
||||
} ${
|
||||
network.state == "disconnected"
|
||||
? "no network" :
|
||||
network.state == "ethernet"
|
||||
|
@ -149,7 +120,7 @@
|
|||
)
|
||||
|
||||
(defwidget battery []
|
||||
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT1.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT1.capacity} %"
|
||||
"${battery-icon[batterystatus]}${EWW_BATTERY.BAT1.status == "Charging" ? " " : ""} ${EWW_BATTERY.BAT1.capacity} %"
|
||||
)
|
||||
|
||||
(defwindow bar
|
||||
|
@ -184,22 +155,9 @@
|
|||
:space-evenly false
|
||||
:class "right"
|
||||
|
||||
(sound)
|
||||
; (sound)
|
||||
(network)
|
||||
(battery)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow calendar
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:anchor "bottom center"
|
||||
:width "350px"
|
||||
:height "200px"
|
||||
)
|
||||
:exclusive false
|
||||
; :stacking "fg"
|
||||
|
||||
(calendar)
|
||||
)
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
pactl subscribe | grep --line-buffered "'change'" | while read -r _unused; do
|
||||
printf '{"output-volume":%s,"input-volume":%s,"output-muted":%s}\n' \
|
||||
"$(pamixer --get-volume)" \
|
||||
"$(pamixer --get-volume --default-source)" \
|
||||
"$(pamixer --get-mute)"
|
||||
done
|
Loading…
Reference in a new issue