Fix Eww hover
All checks were successful
Nix Build / build-nixos (push) Successful in 6m40s

This commit is contained in:
soraefir 2024-05-18 16:52:08 +02:00
parent de33b74926
commit 8ed8e2b2e2
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
5 changed files with 31 additions and 36 deletions

View File

@ -1,3 +1,6 @@
.tray * {
padding: $border-width 0px;
}
.tray menu {
background-color: $base01;
color: $base07;
@ -8,7 +11,7 @@
padding: 10px 0px;
>menuitem {
margin: 0px $border-width;
margin: 2px $border-width;
padding: 0px 10px;
&:disabled label {

View File

@ -5,36 +5,30 @@
(eventbox
:onhover "${EWW_CMD} update date_rev=true"
:onhoverlost "${EWW_CMD} update date_rev=false"
:onclick "(sleep 0.1 && ${EWW_CMD} open --toggle calendar)"
:onrightclick "(sleep 0.1 && ${EWW_CMD} open --toggle powermenu)"
(box
:class "datetime"
(overlay
(box
:orientation "v"
(button
(label :show-truncated false
:class "hour"
:text {hour})
(label :show-truncated false
:text {hour}))
(button
:class "minute"
(label :show-truncated false
:text {minute})))
:text {minute}))
(revealer
:reveal date_rev
(box
:class "date"
:orientation "v"
(button
:onclick "${EWW_CMD} open --toggle calendar"
:onrightclick "${EWW_CMD} open --toggle powermenu"
(label :show-truncated "false"
:class "day"
:text {day})
(label :show-truncated "false"
:text {day}))
(button
:onclick "${EWW_CMD} open --toggle calendar"
:onrightclick "${EWW_CMD} open --toggle powermenu"
:class "month"
(label :show-truncated "false"
:text {month})))
:text {month}))
)
)
)

View File

@ -6,9 +6,8 @@
(defwidget sys-mod []
(module
(button
:class "module"
:onclick "${EWW_CMD} open --toggle sys"
(eventbox
:onclick "(sleep 0.1 && ${EWW_CMD} open --toggle sys)"
(box
:orientation "v"
(circular-progress
@ -22,7 +21,6 @@
:class "gpubar"
:thickness 6
(label :class "icon-text" :text "G"))
(circular-progress
:value {100*memory.used/memory.total}
:class "membar"

View File

@ -7,7 +7,7 @@
:class "tray"
:space-evenly "true"
:orientation "v"
:icon-size 24
:icon-size 20
:prepend-new "false"
)
)

View File

@ -100,7 +100,7 @@
(box
:orientation "v"
(button
:onclick "${EWW_CMD} open --toggle --no-daemonize radio"
:onclick "(sleep 0.1 && ${EWW_CMD} open --toggle --no-daemonize radio)"
(label
:show-truncated false
:class "icon-text"