✨ a lot of changes and new stuff! started using mako
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
(include "./widgets/audio-popup/output-slider.yuck")
|
||||
(include "./widgets/audio-popup/source-slider.yuck")
|
||||
|
||||
(defwindow audio-popup []
|
||||
:monitor 0
|
||||
:namespace "eww-audio"
|
||||
:geometry (geometry :anchor "top right"
|
||||
:width "300px"
|
||||
:height "120px")
|
||||
:exclusive false
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
|
||||
(box :class "audio-popup"
|
||||
:space-evenly false
|
||||
:orientation "vertical"
|
||||
|
||||
(output-slider)
|
||||
(source-slider)
|
||||
|
||||
(box :class "separator")
|
||||
|
||||
(box :class "vertical-button-row"
|
||||
(button :class "more-settings"
|
||||
:onclick "eww close audio-popup; hyprctl dispatch exec pavucontrol"
|
||||
(label :text "More devices"
|
||||
:xalign 0))
|
||||
)
|
||||
)
|
||||
)
|
||||
+12
-12
@@ -1,12 +1,12 @@
|
||||
(include "./widgets/bar/workspaces.yuck")
|
||||
(include "./widgets/bar/clock.yuck")
|
||||
(include "./widgets/bar/cc-toggle.yuck")
|
||||
(include "./widgets/bar/audio.yuck")
|
||||
(include "./widgets/bar/media.yuck")
|
||||
(include "./widgets/bar/logo.yuck")
|
||||
(include "./widgets/bar/window.yuck")
|
||||
(include "./widgets/bar/network.yuck")
|
||||
(include "./widgets/bar/battery.yuck")
|
||||
(include "widgets/bar/workspaces.yuck")
|
||||
(include "widgets/bar/clock.yuck")
|
||||
(include "widgets/bar/cc-toggle.yuck")
|
||||
(include "widgets/bar/audio.yuck")
|
||||
(include "widgets/bar/media.yuck")
|
||||
(include "widgets/bar/logo.yuck")
|
||||
(include "widgets/bar/window.yuck")
|
||||
(include "widgets/bar/network.yuck")
|
||||
(include "widgets/bar/battery.yuck")
|
||||
|
||||
(defwindow bar
|
||||
:monitor 0
|
||||
@@ -22,22 +22,22 @@
|
||||
:space-evenly false
|
||||
(logo)
|
||||
(workspaces)
|
||||
(window)
|
||||
)
|
||||
(box :class "widgets-center"
|
||||
:halign "center"
|
||||
:space-evenly false
|
||||
(clock)
|
||||
(window)
|
||||
(media)
|
||||
)
|
||||
(box :class "widgets-right"
|
||||
:halign "end"
|
||||
:space-evenly false
|
||||
(systray :spacing 5
|
||||
(systray :spacing 0
|
||||
:orientation "horizontal"
|
||||
:space-evenly false
|
||||
:icon-size 14
|
||||
:prepend-new true
|
||||
:prepend-new false
|
||||
:class "systray"
|
||||
)
|
||||
(audio)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
(include "./widgets/control-center/quickactions.yuck")
|
||||
(include "./widgets/control-center/notifications.yuck")
|
||||
(include "./widgets/control-center/toggle-grid.yuck")
|
||||
(include "./widgets/control-center/mediaplayer.yuck")
|
||||
(include "widgets/control-center/top-bar.yuck")
|
||||
(include "widgets/control-center/notifications.yuck")
|
||||
(include "widgets/control-center/big-media.yuck")
|
||||
(include "widgets/control-center/notification.yuck")
|
||||
(include "widgets/control-center/toggles.yuck")
|
||||
|
||||
(defwindow control-center []
|
||||
:monitor 0
|
||||
:geometry (geometry :width "500px"
|
||||
:height "95%"
|
||||
:anchor "center right")
|
||||
:anchor "top right")
|
||||
:stacking "overlay"
|
||||
:exclusive false
|
||||
:namespace "eww-cc"
|
||||
@@ -15,9 +15,9 @@
|
||||
(box :class "cc"
|
||||
:orientation "vertical"
|
||||
:space-evenly false
|
||||
(quickactions)
|
||||
(toggle-grid)
|
||||
(mediaplayer :album_background true)
|
||||
(notifications :notification-history json_notification_history)
|
||||
(top-bar)
|
||||
(toggles)
|
||||
(big-media :album_background true)
|
||||
(notifications)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
(defwindow floating-media []
|
||||
:monitor 0
|
||||
:geometry (geometry :anchor "top center")
|
||||
:exclusive false
|
||||
:stacking "overlay"
|
||||
:focusable false
|
||||
(box :class "floating-media"
|
||||
(big-media :album_background true)
|
||||
)
|
||||
)
|
||||
@@ -1,47 +0,0 @@
|
||||
(defwindow floating-notification []
|
||||
:monitor 0
|
||||
:exclusive false
|
||||
:focusable false
|
||||
:namespace "eww-notification-popup"
|
||||
:geometry (geometry :anchor "top right"
|
||||
:width "128px"
|
||||
:height "64px")
|
||||
:stacking "overlay"
|
||||
|
||||
(box :class "floating-notifications"
|
||||
(for item in json_notification_history
|
||||
(floating-notification :summary "${item.summary}"
|
||||
:body "${item.body}"
|
||||
:image "${item.image}"
|
||||
:app-name "${item.applicationName}")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget floating-notification [ summary body image app-name ]
|
||||
(box :class "popup-notification"
|
||||
:space-evenly false
|
||||
:orientation "vertical"
|
||||
|
||||
(box :orientation "horizontal"
|
||||
:class "top"
|
||||
|
||||
(label :text "${app-name}")
|
||||
)
|
||||
|
||||
(box :orientation "horizontal"
|
||||
(box :class "image"
|
||||
:style "background-image: ${image};")
|
||||
|
||||
(box :class "content"
|
||||
:orientation "vertical"
|
||||
|
||||
(label :class "summary"
|
||||
:text "${summary}")
|
||||
|
||||
(label :class "body"
|
||||
:text "${body}")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -9,7 +9,7 @@
|
||||
:exclusive true
|
||||
|
||||
(eventbox :class "outside"
|
||||
:onclick "eww open bar; eww close powermenu"
|
||||
:onclick "sh scripts/eww-window.sh close powermenu; sh scripts/eww-window.sh open bar"
|
||||
(box :space-evenly true
|
||||
:halign "center"
|
||||
:class "powermenu-container"
|
||||
@@ -23,7 +23,7 @@
|
||||
:onclick "loginctl kill-user $(sh -c 'echo $USER')"
|
||||
"")
|
||||
(button :class "close"
|
||||
:onclick "eww open bar; eww close powermenu"
|
||||
:onclick "sh scripts/eww-window.sh close powermenu; sh scripts/eww-window.sh open bar"
|
||||
"")
|
||||
)
|
||||
)
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
(defwindow floating-notifications []
|
||||
:monitor 0
|
||||
:exclusive false
|
||||
:focusable false
|
||||
:namespace "eww-notification-popup"
|
||||
:geometry (geometry :anchor "top right"
|
||||
:width "512px"
|
||||
:height "1px"
|
||||
:x "5px")
|
||||
:stacking "overlay"
|
||||
|
||||
(box :class "floating-notifications"
|
||||
:orientation "vertical"
|
||||
(for item in json_recent_notifications
|
||||
(floating-notification :summary "${item.summary.data}"
|
||||
:body "${item.body.data}"
|
||||
:image "${item.icon_path.data}"
|
||||
:app-name "${item.appname.data}")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget floating-notification [ summary body image app-name ]
|
||||
(box :class "floating-notification"
|
||||
:space-evenly false
|
||||
:orientation "vertical"
|
||||
|
||||
(box :orientation "horizontal"
|
||||
:class "top"
|
||||
:space-evenly false
|
||||
|
||||
(image :class "app-icon"
|
||||
:icon "${ app-name =~ 'zen-alpha' ? 'zen-browser' : app-name }"
|
||||
:icon-size "menu")
|
||||
|
||||
(label :text "${app-name}"
|
||||
:xalign 0)
|
||||
)
|
||||
|
||||
(box :orientation "horizontal"
|
||||
:space-evenly false
|
||||
:class "content"
|
||||
(box :class "image"
|
||||
:style "background-image: image(url('${image}'));"
|
||||
:width 86
|
||||
:height 85
|
||||
:visible { image != "" ? true : false })
|
||||
|
||||
(box :class "text-content"
|
||||
:orientation "vertical"
|
||||
:space-evenly false
|
||||
|
||||
(label :class "summary"
|
||||
:text "${summary}"
|
||||
:xalign 0)
|
||||
|
||||
(label :class "body"
|
||||
:text "${body}"
|
||||
:xalign 0)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,37 @@
|
||||
(include "./widgets/volume-control/output-slider.yuck")
|
||||
(include "./widgets/volume-control/source-slider.yuck")
|
||||
|
||||
(defwindow volume-control []
|
||||
:monitor 0
|
||||
:namespace "eww-volume"
|
||||
:geometry (geometry :anchor "top right"
|
||||
:width "280px"
|
||||
:x "6px")
|
||||
:exclusive false
|
||||
:stacking "overlay"
|
||||
:focusable false
|
||||
|
||||
(box :class "volume-control"
|
||||
:space-evenly false
|
||||
:orientation "vertical"
|
||||
|
||||
(output-slider)
|
||||
(source-slider)
|
||||
|
||||
(box :class "separator")
|
||||
|
||||
(box :class "vertical button-row"
|
||||
:orientation "vertical"
|
||||
|
||||
(button :class "bluetooth-devices"
|
||||
:onclick "sh scripts/eww-window.sh close volume-control; hyprctl dispatch exec overskride"
|
||||
(label :text "Bluetooth devices"
|
||||
:xalign 0))
|
||||
|
||||
(button :class "more-devices"
|
||||
:onclick "sh scripts/eww-window.sh close volume-control; hyprctl dispatch exec pavucontrol"
|
||||
(label :text "More settings"
|
||||
:xalign 0))
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,15 @@
|
||||
(defwindow volume-popup []
|
||||
:monitor 0
|
||||
:stacking "overlay"
|
||||
:namespace "volume-popup"
|
||||
:focusable false
|
||||
:exclusive false
|
||||
:geometry (geometry :width 180
|
||||
:anchor "top center"
|
||||
:y "10px")
|
||||
|
||||
(box :class "volume-popup"
|
||||
(output-slider)
|
||||
(source-slider)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user