New backup 2025-03-04 01:15:02
This commit is contained in:
parent
9160fdc03f
commit
5f9f729f83
3 changed files with 24 additions and 9 deletions
|
@ -43,6 +43,7 @@ circular-progress {
|
|||
.revealer-on-hover>widget>box>box>*,
|
||||
.reveal_children>* {
|
||||
padding: 5px;
|
||||
min-width: 25px;
|
||||
}
|
||||
.reveal_children>box,
|
||||
.reveal_children>button {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
(sysdisk)
|
||||
(sysmem)
|
||||
(clock)
|
||||
(systemtray)))
|
||||
(tray)))
|
||||
|
||||
(deflisten workspacesArray :initial "${[1]}"
|
||||
`~/.config/eww/scripts/getWorkspaces.sh`)
|
||||
|
@ -51,13 +51,6 @@
|
|||
:class {inhibit_active ? "active" : ""}
|
||||
{inhibit_active ? "" : ""}))
|
||||
|
||||
(defwidget systemtray []
|
||||
(systray
|
||||
:class "systray"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 10
|
||||
:prepend-new true))
|
||||
|
||||
(defwidget revealer-on-hover [revealvar revealvar-name ?class ?duration ?transition]
|
||||
(box
|
||||
|
@ -98,7 +91,27 @@
|
|||
:max 100
|
||||
:value {volume_level}
|
||||
:orientation "h"
|
||||
:onchange "wpctl set-volume @DEFAULT_AUDIO_SINK@ {}%")))
|
||||
:onchange "wpctl set-volume @DEFAULT_AUDIO_SINK@ {}%;paplay 'volume.ogg'")))
|
||||
|
||||
(defvar reveal_tray false)
|
||||
(defwidget tray []
|
||||
(revealer-on-hover
|
||||
:revealvar reveal_tray
|
||||
:revealvar-name "reveal_tray"
|
||||
""
|
||||
(tray_children)))
|
||||
|
||||
|
||||
(defwidget tray_children []
|
||||
(box :class "reveal_children"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
(systray
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 10
|
||||
:prepend-new true)))
|
||||
|
||||
(defpoll vpn_active :initial false
|
||||
:interval "5s"
|
||||
|
|
1
de/home/.config/eww/volume.ogg
Symbolic link
1
de/home/.config/eww/volume.ogg
Symbolic link
|
@ -0,0 +1 @@
|
|||
../sway/assets/sounds/volume.ogg
|
Loading…
Add table
Reference in a new issue