feat: eww configs formatted

This commit is contained in:
hesam-init 2024-06-29 16:16:11 +03:30
parent 9cca7e76c2
commit 59d4681c05
9 changed files with 958 additions and 950 deletions

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"files.associations": {
"*.yuck": "commonlisp"
},
}

View file

@ -9,7 +9,7 @@
:monitor 0 :monitor 0
(control_widget) (control_widget)
) )
(defwidget control_widget [] (defwidget control_widget []
(box (box
@ -41,7 +41,7 @@
(notifications_weather_box)) (notifications_weather_box))
)) ))
(defwidget toolbox [] (defwidget toolbox []
(eventbox (eventbox
:cursor "pointer" :cursor "pointer"
(box (box
@ -54,7 +54,7 @@
(button :onclick "./scripts/pop scrop" (label :text "󰆞")) (button :onclick "./scripts/pop scrop" (label :text "󰆞"))
(button :onclick "~/.config/eww/themeswitch/scripts/pop" (label :text ""))))) (button :onclick "~/.config/eww/themeswitch/scripts/pop" (label :text "")))))
(defwidget chooser [] (defwidget chooser []
(box (box
:orientation "v" :orientation "v"
:halign "fill" :halign "fill"
@ -77,10 +77,10 @@
(notes) (notes)
(sysinfo) (sysinfo)
(wmctrl))) (wmctrl)))
(defwidget notes [] (defwidget notes []
(revealer (revealer
:reveal reveal4 :reveal reveal4
:transition "slideup" :transition "slideup"
@ -93,7 +93,7 @@
:vscroll true :vscroll true
(label :text notesc)))))) (label :text notesc))))))
(defwidget wmctrl [] (defwidget wmctrl []
(revealer (revealer
:reveal reveal6 :reveal reveal6
:transition "slideup" :transition "slideup"
@ -156,7 +156,7 @@
)) ))
)))) ))))
(defwidget sysinfo [] (defwidget sysinfo []
(revealer (revealer
:reveal reveal5 :reveal reveal5
:transition "slideup" :transition "slideup"
@ -169,7 +169,7 @@
(systat :icon "" :val { EWW_BATTERY.BAT0.capacity }) (systat :icon "" :val { EWW_BATTERY.BAT0.capacity })
))) )))
(defwidget wmslider [name val onchange max reset] (defwidget wmslider [name val onchange max reset]
(box (box
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
@ -192,7 +192,7 @@
:style "padding: 0px 8px 0px 3px;" :style "padding: 0px 8px 0px 3px;"
""))) "")))
(defwidget systat [icon val] (defwidget systat [icon val]
(overlay (overlay
(circular-progress (circular-progress
:halign "center" :halign "center"
@ -209,7 +209,7 @@
:width 55 :width 55
(label :text icon)))) (label :text icon))))
(defwidget user[] (defwidget user[]
(revealer (revealer
:reveal {!reveal4 && !reveal5 && !reveal6} :reveal {!reveal4 && !reveal5 && !reveal6}
:transition "slideup" :transition "slideup"
@ -236,7 +236,7 @@
(label :halign "start" :text "${datehour < 12 ? 'Good morning' : datehour < 18 ? 'Good afternoon' : datehour < 22 ? 'Good evening' : 'Good night'} ${hostname}") (label :halign "start" :text "${datehour < 12 ? 'Good morning' : datehour < 18 ? 'Good afternoon' : datehour < 22 ? 'Good evening' : 'Good night'} ${hostname}")
(label :halign "start" :text uptime :style "font-size: 12px;")))))) (label :halign "start" :text uptime :style "font-size: 12px;"))))))
(defwidget notifications_weather_box [] (defwidget notifications_weather_box []
(box (box
:orientation "v" :orientation "v"
:halign "fill" :halign "fill"
@ -274,7 +274,7 @@
(weather))))) (weather)))))
(defwidget weather[] (defwidget weather[]
(overlay (overlay
(box (box
:orientation "v" :orientation "v"
@ -302,7 +302,7 @@
:class "fadeoutbox") :class "fadeoutbox")
)) ))
(defwidget weatherhour[hour] (defwidget weatherhour[hour]
(box (box
:class "smallentry" :class "smallentry"
:orientation "h" :orientation "h"
@ -325,7 +325,7 @@
(label :halign "start" :text "${hour.FeelsLikeC}°C") (label :halign "start" :text "${hour.FeelsLikeC}°C")
(label :halign "start" :text "rain: ${hour.chanceofrain}%")))) (label :halign "start" :text "rain: ${hour.chanceofrain}%"))))
(defwidget weathermain[] (defwidget weathermain[]
(box (box
:class "mainentry" :class "mainentry"
:orientation "h" :orientation "h"
@ -352,7 +352,7 @@
;; (label :halign "start" :text "${weatherjson.precipMM} mm") ;; (label :halign "start" :text "${weatherjson.precipMM} mm")
)))) ))))
(defwidget timer[] (defwidget timer[]
(box (box
:orientation "v" :orientation "v"
:class "unbarwidget" :class "unbarwidget"
@ -368,7 +368,7 @@
(button :onclick "./scripts/timer.py toggle" (label :style "padding-right: 3px;" :text { !matches(timerdis, ":") ? "󱎫" : "󱫎"})) (button :onclick "./scripts/timer.py toggle" (label :style "padding-right: 3px;" :text { !matches(timerdis, ":") ? "󱎫" : "󱫎"}))
(button :onclick "./scripts/timer.py timeinc" (label :text "+"))))) (button :onclick "./scripts/timer.py timeinc" (label :text "+")))))
(defwidget bigslides [] (defwidget bigslides []
(box (box
:valign "fill" :valign "fill"
:halign "fill" :halign "fill"
@ -379,7 +379,7 @@
(bigmic) (bigmic)
(bigbright))) (bigbright)))
(defwidget bigvol [] (defwidget bigvol []
(overlay (overlay
(scale (scale
:width 50 :width 50
@ -396,7 +396,7 @@
:valign "end" :valign "end"
:text {volumemute == 'false' ? "󰕾" : "󰖁"}))) :text {volumemute == 'false' ? "󰕾" : "󰖁"})))
(defwidget bigmic [] (defwidget bigmic []
(overlay (overlay
(scale (scale
:width 50 :width 50
@ -413,7 +413,7 @@
:valign "end" :valign "end"
:text {volumemute == 'false' ? "" : "󰖁"}))) :text {volumemute == 'false' ? "" : "󰖁"})))
(defwidget bigbright [] (defwidget bigbright []
(overlay (overlay
(scale (scale
:width 50 :width 50
@ -430,7 +430,7 @@
:valign "end" :valign "end"
:text "󰃞"))) :text "󰃞")))
(defwidget notificationlog [] (defwidget notificationlog []
(overlay (overlay
(box (box
:halign "fill" :halign "fill"
@ -474,9 +474,9 @@
) )
) )
(defwidget quote [] (defwidget quote []
(box (box
:class "quotewid unbarwidget" :class "quotewid unbarwidget"
:halign "fill" :halign "fill"
@ -494,7 +494,7 @@
:class "quoteauthor" :class "quoteauthor"
:text "- ${quotejson.author}"))) :text "- ${quotejson.author}")))
(defwidget coolmpd [h permashow] (defwidget coolmpd [h permashow]
(overlay (overlay
(box (box
:orientation "v" :orientation "v"

View file

@ -10,7 +10,7 @@
:monitor 0 :monitor 0
(structure)) (structure))
(defwidget structure[] (defwidget structure []
(box (box
:class "popup" :class "popup"
:space-evenly false :space-evenly false
@ -42,7 +42,7 @@
(quote)) (quote))
))) )))
(defwidget duser [name tag pfp] (defwidget duser [name tag pfp]
(box (box
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
@ -60,7 +60,7 @@
(label :style "font-weight: bold; font-size: 18px;" :text "Hello, ${name}") (label :style "font-weight: bold; font-size: 18px;" :text "Hello, ${name}")
(label :halign "start" :text tag)))) (label :halign "start" :text tag))))
(defwidget dnotes [] (defwidget dnotes []
(box (box
:class "notes unbarwidget" :class "notes unbarwidget"
:space-evenly false :space-evenly false
@ -75,7 +75,7 @@
:vscroll true :vscroll true
(label :style "font-size: 16px;" :text notesc))))) (label :style "font-size: 16px;" :text notesc)))))
(defwidget dmpd [] (defwidget dmpd []
(overlay (overlay
(box (box
:class "mpdcover" :class "mpdcover"
@ -114,7 +114,7 @@
(button :onclick "./scripts/music_info --toggle" (label :text { pstatus == "Playing" ? "" : ""})) (button :onclick "./scripts/music_info --toggle" (label :text { pstatus == "Playing" ? "" : ""}))
(button :onclick "./scripts/music_info --next" (label :text "󰒭")))))) (button :onclick "./scripts/music_info --next" (label :text "󰒭"))))))
(defwidget dcal [] (defwidget dcal []
(box (box
:class "unbarwidget mincal" :class "unbarwidget mincal"
:height 190 :height 190
@ -127,7 +127,7 @@
:day calendar_day :day calendar_day
:year calendar_year))) :year calendar_year)))
(defwidget dbutt[] (defwidget dbutt[]
(box (box
:space-evenly true :space-evenly true
:orientation "h" :orientation "h"
@ -143,14 +143,14 @@
(button :class "dicons unbarwidget" :onclick "notify-send 'lock' 'but its impractical'" (label :text "")) (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 "󰍃"))))) (button :class "dicons unbarwidget" :onclick "notify-send 'log out' 'but its impractical'" (label :text "󰍃")))))
(defwidget theme [] (defwidget theme []
(button (button
:class "unbarwidget" :class "unbarwidget"
:vexpand true :vexpand true
:onclick "./scripts/toggletheme toggle" :onclick "./scripts/toggletheme toggle"
(label :style "font-size: 18px;" :text ""))) (label :style "font-size: 18px;" :text "")))
;; (defwidget dquote [] ;; (defwidget dquote []
;; (box ;; (box
;; :class "unbarwidget" ;; :class "unbarwidget"
;; :height "120" ;; :height "120"

View file

@ -7,6 +7,7 @@
:anchor "top right") :anchor "top right")
:stacking "bottom" :stacking "bottom"
:monitor 0 :monitor 0
(box (box
:orientation "v" :orientation "v"
:space-evenly "false" :space-evenly "false"
@ -17,6 +18,7 @@
:class "desktopbox" :class "desktopbox"
:onclick "thunar ${homedir}/.local/share/Trash/files" :onclick "thunar ${homedir}/.local/share/Trash/files"
:ondropped "notify-send {}" :ondropped "notify-send {}"
(box (box
:orientation "v" :orientation "v"
:space-evenly false :space-evenly false
@ -28,7 +30,7 @@
(for i in '["amogus"]' (for i in '["amogus"]'
(imagesicon :name i)))) (imagesicon :name i))))
(defwidget imagesicon [name] (defwidget imagesicon [name]
(eventbox (eventbox
:onclick "feh ./assets/image/desktop/${name}.png" :onclick "feh ./assets/image/desktop/${name}.png"
:class "desktopbox" :class "desktopbox"

View file

@ -28,7 +28,7 @@
:halign "center" :halign "center"
(tasklist :iconsize 50)))))) (tasklist :iconsize 50))))))
(defwidget tasklist [iconsize] (defwidget tasklist [iconsize]
(box (box
:orientation "h" :orientation "h"
:space-evenly true :space-evenly true

View file

@ -44,4 +44,4 @@
) )
) )
) )
) )

View file

@ -19,7 +19,8 @@
(bottom) (bottom)
))) )))
(defwidget top [] (box (defwidget top []
(box
:orientation "v" :orientation "v"
:space-evenly false :space-evenly false
:valign "start" :valign "start"