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

View file

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

View file

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

View file

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

View file

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

View file

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