mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-26 18:53:43 +02:00
feat: eww configs formatted
This commit is contained in:
parent
9cca7e76c2
commit
59d4681c05
9 changed files with 958 additions and 950 deletions
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"*.yuck": "commonlisp"
|
||||
},
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,159 +1,159 @@
|
|||
|
||||
(defwindow dashboard
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 800
|
||||
:height 420
|
||||
:anchor "center")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(structure))
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 800
|
||||
:height 420
|
||||
:anchor "center")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(structure))
|
||||
|
||||
(defwidget structure[]
|
||||
(defwidget structure []
|
||||
(box
|
||||
:class "popup"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(duser :name "Failed" :tag "failed.sh" :pfp "./assets/image/roundpfp.png")
|
||||
(box
|
||||
:class "popup"
|
||||
:space-evenly true
|
||||
:orientation "h"
|
||||
:vexpand true
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(duser :name "Failed" :tag "failed.sh" :pfp "./assets/image/roundpfp.png")
|
||||
(coolmpd :h 150 :permashow true)
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "h"
|
||||
:vexpand true
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(coolmpd :h 150 :permashow true)
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
(box
|
||||
:width 130
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(dbutt)
|
||||
(theme))
|
||||
(dcal)
|
||||
))
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
(dnotes)
|
||||
(quote))
|
||||
)))
|
||||
|
||||
(defwidget duser [name tag pfp]
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:hexpand true
|
||||
:class "unbarwidget"
|
||||
:style "background-color: inherit;"
|
||||
:spacing 15
|
||||
(image :image-width 50 :image-height 50 :path pfp)
|
||||
(label :text "|" :style "color: #262626; font-size: 30px;")
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:halign "start"
|
||||
(label :style "font-weight: bold; font-size: 18px;" :text "Hello, ${name}")
|
||||
(label :halign "start" :text tag))))
|
||||
|
||||
(defwidget dnotes []
|
||||
(box
|
||||
:class "notes unbarwidget"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
:vexpand true
|
||||
(label :class "heading" :text "Agenda")
|
||||
(box
|
||||
:vexpand true
|
||||
:width 350
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll true
|
||||
(label :style "font-size: 16px;" :text notesc)))))
|
||||
|
||||
(defwidget dmpd []
|
||||
(overlay
|
||||
(box
|
||||
:class "mpdcover"
|
||||
:style "background-image: url('${pcover}')"
|
||||
:height 150)
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
(box
|
||||
:width 130
|
||||
:space-evenly false
|
||||
:spacing 10
|
||||
:valign "center"
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(label :style "font-size: 18px;" :text psong))
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(label :text partist))
|
||||
;; (scale
|
||||
;; :hexpand false
|
||||
;; :width 60
|
||||
;; :class "seektime"
|
||||
;; :value current
|
||||
;; :orientation "h"
|
||||
;; :min -5
|
||||
;; :max 100
|
||||
;; :onscroll "mpc -q seek +1"
|
||||
;; :tooltip "${ctime}/${ttime}")
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:spacing 40
|
||||
:halign "center"
|
||||
:class "dmpdcontrol"
|
||||
(button :onclick "./scripts/music_info --prev" (label :text ""))
|
||||
(button :onclick "./scripts/music_info --toggle" (label :text { pstatus == "Playing" ? "" : ""}))
|
||||
(button :onclick "./scripts/music_info --next" (label :text ""))))))
|
||||
|
||||
(defwidget dcal []
|
||||
(box
|
||||
:class "unbarwidget mincal"
|
||||
:height 190
|
||||
:hexpand true
|
||||
(calendar
|
||||
:show-details false
|
||||
:show-heading true
|
||||
:show-day-names false
|
||||
:show-week-numbers false
|
||||
:day calendar_day
|
||||
:year calendar_year)))
|
||||
|
||||
(defwidget dbutt[]
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "h"
|
||||
:height 130
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "v"
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'shutdown' 'but its impractical'" (label :text ""))
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'restart' 'but its impractical'" (label :text "")))
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "v"
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'lock' 'but its impractical'" (label :text ""))
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'log out' 'but its impractical'" (label :text "")))))
|
||||
(dbutt)
|
||||
(theme))
|
||||
(dcal)
|
||||
))
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
(dnotes)
|
||||
(quote))
|
||||
)))
|
||||
|
||||
(defwidget theme []
|
||||
(button
|
||||
:class "unbarwidget"
|
||||
:vexpand true
|
||||
:onclick "./scripts/toggletheme toggle"
|
||||
(label :style "font-size: 18px;" :text "")))
|
||||
(defwidget duser [name tag pfp]
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:hexpand true
|
||||
:class "unbarwidget"
|
||||
:style "background-color: inherit;"
|
||||
:spacing 15
|
||||
(image :image-width 50 :image-height 50 :path pfp)
|
||||
(label :text "|" :style "color: #262626; font-size: 30px;")
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:halign "start"
|
||||
(label :style "font-weight: bold; font-size: 18px;" :text "Hello, ${name}")
|
||||
(label :halign "start" :text tag))))
|
||||
|
||||
;; (defwidget dquote []
|
||||
;; (box
|
||||
;; :class "unbarwidget"
|
||||
;; :height "120"
|
||||
;; :valign "center"
|
||||
;; (literal
|
||||
;; :content quoteliteral)))
|
||||
(defwidget dnotes []
|
||||
(box
|
||||
:class "notes unbarwidget"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
:vexpand true
|
||||
(label :class "heading" :text "Agenda")
|
||||
(box
|
||||
:vexpand true
|
||||
:width 350
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll true
|
||||
(label :style "font-size: 16px;" :text notesc)))))
|
||||
|
||||
(defwidget dmpd []
|
||||
(overlay
|
||||
(box
|
||||
:class "mpdcover"
|
||||
:style "background-image: url('${pcover}')"
|
||||
:height 150)
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 10
|
||||
:valign "center"
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(label :style "font-size: 18px;" :text psong))
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(label :text partist))
|
||||
;; (scale
|
||||
;; :hexpand false
|
||||
;; :width 60
|
||||
;; :class "seektime"
|
||||
;; :value current
|
||||
;; :orientation "h"
|
||||
;; :min -5
|
||||
;; :max 100
|
||||
;; :onscroll "mpc -q seek +1"
|
||||
;; :tooltip "${ctime}/${ttime}")
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:spacing 40
|
||||
:halign "center"
|
||||
:class "dmpdcontrol"
|
||||
(button :onclick "./scripts/music_info --prev" (label :text ""))
|
||||
(button :onclick "./scripts/music_info --toggle" (label :text { pstatus == "Playing" ? "" : ""}))
|
||||
(button :onclick "./scripts/music_info --next" (label :text ""))))))
|
||||
|
||||
(defwidget dcal []
|
||||
(box
|
||||
:class "unbarwidget mincal"
|
||||
:height 190
|
||||
:hexpand true
|
||||
(calendar
|
||||
:show-details false
|
||||
:show-heading true
|
||||
:show-day-names false
|
||||
:show-week-numbers false
|
||||
:day calendar_day
|
||||
:year calendar_year)))
|
||||
|
||||
(defwidget dbutt[]
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "h"
|
||||
:height 130
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "v"
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'shutdown' 'but its impractical'" (label :text ""))
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'restart' 'but its impractical'" (label :text "")))
|
||||
(box
|
||||
:space-evenly true
|
||||
:orientation "v"
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'lock' 'but its impractical'" (label :text ""))
|
||||
(button :class "dicons unbarwidget" :onclick "notify-send 'log out' 'but its impractical'" (label :text "")))))
|
||||
|
||||
(defwidget theme []
|
||||
(button
|
||||
:class "unbarwidget"
|
||||
:vexpand true
|
||||
:onclick "./scripts/toggletheme toggle"
|
||||
(label :style "font-size: 18px;" :text "")))
|
||||
|
||||
;; (defwidget dquote []
|
||||
;; (box
|
||||
;; :class "unbarwidget"
|
||||
;; :height "120"
|
||||
;; :valign "center"
|
||||
;; (literal
|
||||
;; :content quoteliteral)))
|
||||
|
|
|
@ -1,41 +1,43 @@
|
|||
(defwindow desktopicons
|
||||
:geometry (geometry
|
||||
:x 20
|
||||
:y 20
|
||||
:width 100
|
||||
:height 600
|
||||
:anchor "top right")
|
||||
:stacking "bottom"
|
||||
:monitor 0
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly "false"
|
||||
:spacing 10
|
||||
|
||||
(eventbox
|
||||
:dragtype "file"
|
||||
:class "desktopbox"
|
||||
:onclick "thunar ${homedir}/.local/share/Trash/files"
|
||||
:ondropped "notify-send {}"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:height 100
|
||||
:valign "end"
|
||||
(image :width 100 :height 100 :image-width 80 :image-height 80 :path trashcanPath)
|
||||
(label :class "desktoptext" :text "Trash")))
|
||||
|
||||
(for i in '["amogus"]'
|
||||
(imagesicon :name i))))
|
||||
:geometry (geometry
|
||||
:x 20
|
||||
:y 20
|
||||
:width 100
|
||||
:height 600
|
||||
:anchor "top right")
|
||||
:stacking "bottom"
|
||||
:monitor 0
|
||||
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly "false"
|
||||
:spacing 10
|
||||
|
||||
(defwidget imagesicon [name]
|
||||
(eventbox
|
||||
:onclick "feh ./assets/image/desktop/${name}.png"
|
||||
:class "desktopbox"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:height 100
|
||||
:valign "end"
|
||||
(image :width 100 :height 100 :image-width 80 :image-height 80 :path "./assets/image/desktop/${name}.png")
|
||||
(label :class "desktoptext" :text "${name}.png"))))
|
||||
:dragtype "file"
|
||||
:class "desktopbox"
|
||||
:onclick "thunar ${homedir}/.local/share/Trash/files"
|
||||
:ondropped "notify-send {}"
|
||||
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:height 100
|
||||
:valign "end"
|
||||
(image :width 100 :height 100 :image-width 80 :image-height 80 :path trashcanPath)
|
||||
(label :class "desktoptext" :text "Trash")))
|
||||
|
||||
(for i in '["amogus"]'
|
||||
(imagesicon :name i))))
|
||||
|
||||
(defwidget imagesicon [name]
|
||||
(eventbox
|
||||
:onclick "feh ./assets/image/desktop/${name}.png"
|
||||
:class "desktopbox"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:height 100
|
||||
:valign "end"
|
||||
(image :width 100 :height 100 :image-width 80 :image-height 80 :path "./assets/image/desktop/${name}.png")
|
||||
(label :class "desktoptext" :text "${name}.png"))))
|
||||
|
|
|
@ -1,63 +1,63 @@
|
|||
(defwindow dock
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 10
|
||||
:height 54
|
||||
:anchor "bottom center")
|
||||
:monitor 0
|
||||
(dockstruct))
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 10
|
||||
:height 54
|
||||
:anchor "bottom center")
|
||||
:monitor 0
|
||||
(dockstruct))
|
||||
|
||||
(defwidget dockstruct []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update revealDock=true"
|
||||
:onhoverlost "${EWW_CMD} update revealDock=false"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "end"
|
||||
(box
|
||||
:height 4)
|
||||
(revealer
|
||||
:reveal revealDock
|
||||
:transition "slideup"
|
||||
(box
|
||||
:class "popup"
|
||||
:height 60
|
||||
:orientation "h"
|
||||
:halign "center"
|
||||
(tasklist :iconsize 50))))))
|
||||
|
||||
(defwidget tasklist [iconsize]
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update revealDock=true"
|
||||
:onhoverlost "${EWW_CMD} update revealDock=false"
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 10
|
||||
(for task in {tasksjson}
|
||||
(button
|
||||
:tooltip { task.name }
|
||||
:onclick { task.pid != 'null' ? 'swaymsg "[pid=${task.pid}] focus"' : '(cd && gtk-launch ${task.app_id}) &'}
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
(image
|
||||
:image-width iconsize
|
||||
:image-height iconsize
|
||||
:path {task.path})
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "end"
|
||||
(box
|
||||
:height 4)
|
||||
(revealer
|
||||
:reveal revealDock
|
||||
:transition "slideup"
|
||||
(box
|
||||
:class "popup"
|
||||
:height 60
|
||||
:orientation "h"
|
||||
:halign "center"
|
||||
(tasklist :iconsize 50))))))
|
||||
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "center"
|
||||
:space-evenly false
|
||||
:spacing 3
|
||||
(for focus in {task.focused}
|
||||
(box
|
||||
:class "dockindicate"
|
||||
:hexpand false
|
||||
:width { focus ? 10 : 5 }
|
||||
:height 3))))
|
||||
)))))
|
||||
(defwidget tasklist [iconsize]
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 10
|
||||
(for task in {tasksjson}
|
||||
(button
|
||||
:tooltip { task.name }
|
||||
:onclick { task.pid != 'null' ? 'swaymsg "[pid=${task.pid}] focus"' : '(cd && gtk-launch ${task.app_id}) &'}
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
(image
|
||||
:image-width iconsize
|
||||
:image-height iconsize
|
||||
:path {task.path})
|
||||
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "center"
|
||||
:space-evenly false
|
||||
:spacing 3
|
||||
(for focus in {task.focused}
|
||||
(box
|
||||
:class "dockindicate"
|
||||
:hexpand false
|
||||
:width { focus ? 10 : 5 }
|
||||
:height 3))))
|
||||
)))))
|
||||
|
||||
|
|
|
@ -1,90 +1,90 @@
|
|||
|
||||
(defwindow notifypopup
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 480
|
||||
:height 0
|
||||
:anchor "top right")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(revealer
|
||||
:reveal { arraylength(notifications.popups) > 0 }
|
||||
:transition "slidedown"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 5
|
||||
(for noti in {notifications.popups}
|
||||
(singlenotif :noti noti :initial true)))))
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 480
|
||||
:height 0
|
||||
:anchor "top right")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(revealer
|
||||
:reveal { arraylength(notifications.popups) > 0 }
|
||||
:transition "slidedown"
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 5
|
||||
(for noti in {notifications.popups}
|
||||
(singlenotif :noti noti :initial true)))))
|
||||
|
||||
(defwidget singlenotif [noti initial]
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "${initial ? 'popup' : 'notifbox'}"
|
||||
:space-evenly false
|
||||
|
||||
(centerbox
|
||||
:orientation "h"
|
||||
:class "notifbar"
|
||||
(image :halign "start" :image-width 30 :image-height 30 :path {noti.icon != "null" ? noti.icon : "./assets/image/idk.svg"})
|
||||
(scroll
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
:hexpand true
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:width 200
|
||||
(label
|
||||
:class "notiflabel"
|
||||
:text {noti.app}))
|
||||
(button
|
||||
:halign "end"
|
||||
:onclick "./scripts/notifManage --close ${noti.id}"
|
||||
(label
|
||||
:class "notifclose"
|
||||
:text "")))
|
||||
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "fill"
|
||||
:height 80
|
||||
:space-evenly false
|
||||
:spacing 10
|
||||
(image :image-width 80 :image-height 80 :visible {noti.image != "null"} :path {noti.image != "null" ? noti.image : "./assets/image/idk.svg"})
|
||||
|
||||
(button
|
||||
:onclick "./scripts/notifManage --dismiss ${noti.id}"
|
||||
:onrightclick "./scripts/notifManage --close ${noti.id}"
|
||||
:tooltip "${noti.time}"
|
||||
:hexpand true
|
||||
:vexpand true
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "center"
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:hexpand true
|
||||
(label
|
||||
:class "notiftitle"
|
||||
:text {noti.summary}))
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:hexpand true
|
||||
(label
|
||||
:class "notifbody"
|
||||
:visible {noti.body != "null"}
|
||||
:text {noti.body})))))
|
||||
|
||||
(box
|
||||
:orientation "h"
|
||||
(for action in {noti.actions}
|
||||
(button
|
||||
:onclick "./scripts/notifManage --action ${noti.id} ${action[0]} && ./scripts/notifManage --close ${noti.id}"
|
||||
(label
|
||||
:class "notifactions"
|
||||
:text {action[1]}))
|
||||
))))
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "${initial ? 'popup' : 'notifbox'}"
|
||||
:space-evenly false
|
||||
|
||||
(centerbox
|
||||
:orientation "h"
|
||||
:class "notifbar"
|
||||
(image :halign "start" :image-width 30 :image-height 30 :path {noti.icon != "null" ? noti.icon : "./assets/image/idk.svg"})
|
||||
(scroll
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
:hexpand true
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:width 200
|
||||
(label
|
||||
:class "notiflabel"
|
||||
:text {noti.app}))
|
||||
(button
|
||||
:halign "end"
|
||||
:onclick "./scripts/notifManage --close ${noti.id}"
|
||||
(label
|
||||
:class "notifclose"
|
||||
:text "")))
|
||||
|
||||
(box
|
||||
:orientation "h"
|
||||
:halign "fill"
|
||||
:height 80
|
||||
:space-evenly false
|
||||
:spacing 10
|
||||
(image :image-width 80 :image-height 80 :visible {noti.image != "null"} :path {noti.image != "null" ? noti.image : "./assets/image/idk.svg"})
|
||||
|
||||
(button
|
||||
:onclick "./scripts/notifManage --dismiss ${noti.id}"
|
||||
:onrightclick "./scripts/notifManage --close ${noti.id}"
|
||||
:tooltip "${noti.time}"
|
||||
:hexpand true
|
||||
:vexpand true
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "center"
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:hexpand true
|
||||
(label
|
||||
:class "notiftitle"
|
||||
:text {noti.summary}))
|
||||
(scroll
|
||||
:hscroll true
|
||||
:vscroll false
|
||||
:hexpand true
|
||||
(label
|
||||
:class "notifbody"
|
||||
:visible {noti.body != "null"}
|
||||
:text {noti.body})))))
|
||||
|
||||
(box
|
||||
:orientation "h"
|
||||
(for action in {noti.actions}
|
||||
(button
|
||||
:onclick "./scripts/notifManage --action ${noti.id} ${action[0]} && ./scripts/notifManage --close ${noti.id}"
|
||||
(label
|
||||
:class "notifactions"
|
||||
:text {action[1]}))
|
||||
))))
|
||||
|
|
|
@ -1,47 +1,47 @@
|
|||
(defwidget hovered-sign [var]
|
||||
(box :space-evenly false
|
||||
(revealer :reveal {!var}
|
||||
:duration "100ms"
|
||||
:transition "slideleft"
|
||||
(children :nth 0))
|
||||
(revealer :reveal {var}
|
||||
:duration "100ms"
|
||||
:transition "slideleft"
|
||||
(children :nth 1))))
|
||||
(box :space-evenly false
|
||||
(revealer :reveal {!var}
|
||||
:duration "100ms"
|
||||
:transition "slideleft"
|
||||
(children :nth 0))
|
||||
(revealer :reveal {var}
|
||||
:duration "100ms"
|
||||
:transition "slideleft"
|
||||
(children :nth 1))))
|
||||
|
||||
(defwidget reveal_on_hover [var varname ?class ?duration ?transition]
|
||||
(box
|
||||
:class "reveal_on_hover ${class}"
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "reveal_on_hover ${class}"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "end"
|
||||
(eventbox
|
||||
:onhover `${EWW_CMD} update ${varname}=true`
|
||||
:onhoverlost `${EWW_CMD} update ${varname}=false`
|
||||
(box
|
||||
:space-evenly false
|
||||
:valign "end"
|
||||
(eventbox
|
||||
:onhover `${EWW_CMD} update ${varname}=true`
|
||||
:onhoverlost `${EWW_CMD} update ${varname}=false`
|
||||
(box
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(children :nth 0)
|
||||
(revealer
|
||||
:reveal var
|
||||
:transition {transition ?:"slidedown"}
|
||||
:duration "500ms"
|
||||
(children :nth 1))))))
|
||||
:orientation "v"
|
||||
(children :nth 0)
|
||||
(revealer
|
||||
:reveal var
|
||||
:transition {transition ?:"slidedown"}
|
||||
:duration "500ms"
|
||||
(children :nth 1))))))
|
||||
|
||||
|
||||
(defwidget clickbox [var varname ?class ?duration ?transition]
|
||||
(box :class "${class} clickbox" :orientation "h" :space-evenly false
|
||||
(button :onclick "eww update ${varname}=${ var ? false : true }"
|
||||
(children :nth 0)
|
||||
)
|
||||
(revealer :reveal var
|
||||
:transition {transition ?: "slideleft"}
|
||||
:duration {duration ?: "500ms"}
|
||||
(box :class "${class}"
|
||||
:space-evenly false
|
||||
(children :nth 1)
|
||||
(button :onclick "eww update ${varname}=false" :class "close" (label :text "Close"))
|
||||
)
|
||||
)
|
||||
(box :class "${class} clickbox" :orientation "h" :space-evenly false
|
||||
(button :onclick "eww update ${varname}=${ var ? false : true }"
|
||||
(children :nth 0)
|
||||
)
|
||||
)
|
||||
(revealer :reveal var
|
||||
:transition {transition ?: "slideleft"}
|
||||
:duration {duration ?: "500ms"}
|
||||
(box :class "${class}"
|
||||
:space-evenly false
|
||||
(children :nth 1)
|
||||
(button :onclick "eww update ${varname}=false" :class "close" (label :text "Close"))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -1,70 +1,70 @@
|
|||
|
||||
(defwindow wallpaperselect
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 415
|
||||
:height 600
|
||||
:anchor "center")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(box
|
||||
:class "popup"
|
||||
(wallpaperselectwidget)))
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
:width 415
|
||||
:height 600
|
||||
:anchor "center")
|
||||
:stacking "overlay"
|
||||
:monitor 0
|
||||
(box
|
||||
:class "popup"
|
||||
(wallpaperselectwidget)))
|
||||
|
||||
(defwidget wallpaperselectwidget []
|
||||
(eventbox
|
||||
;; :onhoverlost "${EWW_CMD} close wallpaperselect"
|
||||
(eventbox
|
||||
;; :onhoverlost "${EWW_CMD} close wallpaperselect"
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "unbarwidget"
|
||||
:space-evenly false
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(input
|
||||
:hexpand true
|
||||
:onaccept "./scripts/wallhaven.py search {}"
|
||||
:timeout "20000ms")
|
||||
(button
|
||||
:onclick "${EWW_CMD} update wallpapers=[] && ./scripts/wallhaven.py reset"
|
||||
;; :style "padding: 0px 8px 0px 3px;"
|
||||
(label
|
||||
:class "icon"
|
||||
:text "")))
|
||||
|
||||
(scroll
|
||||
:hscroll false
|
||||
:vscroll true
|
||||
:vexpand true
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "unbarwidget"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "start"
|
||||
(image
|
||||
:style "margin: 50px 0px 5px 0px;"
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
:path "./assets/image/fieshidle.gif"
|
||||
:visible {arraylength(wallpapers) == 0})
|
||||
|
||||
(label
|
||||
:visible {arraylength(wallpapers) == 0}
|
||||
:text "No wallpapers yet")
|
||||
|
||||
(for wall in wallpapers
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(input
|
||||
:hexpand true
|
||||
:onaccept "./scripts/wallhaven.py search {}"
|
||||
:timeout "20000ms")
|
||||
(button
|
||||
:onclick "${EWW_CMD} update wallpapers=[] && ./scripts/wallhaven.py reset"
|
||||
;; :style "padding: 0px 8px 0px 3px;"
|
||||
(label
|
||||
:class "icon"
|
||||
:text "")))
|
||||
|
||||
(scroll
|
||||
:hscroll false
|
||||
:vscroll true
|
||||
:vexpand true
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "start"
|
||||
(image
|
||||
:style "margin: 50px 0px 5px 0px;"
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
:path "./assets/image/fieshidle.gif"
|
||||
:visible {arraylength(wallpapers) == 0})
|
||||
|
||||
(label
|
||||
:visible {arraylength(wallpapers) == 0}
|
||||
:text "No wallpapers yet")
|
||||
|
||||
(for wall in wallpapers
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:class "mainentry"
|
||||
:spacing 5
|
||||
(button
|
||||
:onclick "./scripts/wallhaven.py select ${wall.url}"
|
||||
(image :image-height 225 :image-width 400 :path {wall.path}))
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
(label :text "${wall.views} ")
|
||||
(label :text "${wall.fav} ")
|
||||
))))
|
||||
))))
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:class "mainentry"
|
||||
:spacing 5
|
||||
(button
|
||||
:onclick "./scripts/wallhaven.py select ${wall.url}"
|
||||
(image :image-height 225 :image-width 400 :path {wall.path}))
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
(label :text "${wall.views} ")
|
||||
(label :text "${wall.fav} ")
|
||||
))))
|
||||
))))
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
:vexpand true
|
||||
:height "1080"
|
||||
|
||||
(revealer
|
||||
(revealer
|
||||
:transition "slideleft"
|
||||
:reveal revealControlpanel
|
||||
(control_widget))
|
||||
|
@ -19,15 +19,16 @@
|
|||
(bottom)
|
||||
)))
|
||||
|
||||
(defwidget top [] (box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "start"
|
||||
:vexpand false
|
||||
(home)
|
||||
(workspaces)
|
||||
(hiddenctl)
|
||||
))
|
||||
(defwidget top []
|
||||
(box
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:valign "start"
|
||||
:vexpand false
|
||||
(home)
|
||||
(workspaces)
|
||||
(hiddenctl)
|
||||
))
|
||||
|
||||
(defwidget middle []
|
||||
(box
|
||||
|
|
Loading…
Add table
Reference in a new issue