ark/users/modules/eww/eww.yuck
2022-10-04 02:08:44 +03:00

79 lines
1.5 KiB
Plaintext

(include "./modules/bat.yuck")
(include "./modules/bluetooth.yuck")
(include "./modules/bright.yuck")
(include "./modules/clock.yuck")
(include "./modules/cpu.yuck")
(include "./modules/mem.yuck")
(include "./modules/music.yuck")
(include "./modules/net.yuck")
(include "./modules/variables.yuck")
(include "./modules/volume.yuck")
(include "./windows/calendar.yuck")
(include "./windows/music_win.yuck")
(include "./windows/notifications.yuck")
(include "./windows/system.yuck")
(include "./windows/volume_win.yuck")
(defwidget sep []
(label :class "separ module" :text "|"))
(defwidget notif-toggle []
(button
:class "notif-toggle module"
:onclick "scripts/reveal_toggle notification_rev ${EWW_CMD}";
{notif_icons.icon}))
; clipboard 󰅌 󰅍 󰄷
(defwidget workspaces []
(literal :content workspace))
(defwidget left []
(box
:space-evenly false
:halign "start"
(workspaces)))
(defwidget right []
(box
:space-evenly false
:halign "end"
(bright)
(volume)
(net)
(bluetooth)
(sep)
(cpu)
(mem)
(bat)
(sep)
(clock_module)
(notif-toggle)))
(defwidget center []
(box
:space-evenly false
:halign "center"
(music)))
(defwidget bar []
(centerbox
:class "bar"
(left)
(center)
(right)))
(defwindow bar
:monitor 0
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "32px"
:anchor "top center")
:stacking "fg"
:windowtype "dock"
:exclusive true
:wm-ignore false
(bar))