adi1090x / widgets

Few widgets for Eww, Elkowar’s Wacky Widgets.
GNU General Public License v3.0
643 stars 41 forks source link

Add yuck configuration #5

Closed tripleo1 closed 2 years ago

tripleo1 commented 3 years ago

See if this works for you.

KiranWells commented 3 years ago

Does this work with your configuration? The images in mpd and user are missing for me unless I change them to image blocks and hardcode the user image.

;;  profile 
(defwidget user [] 
    (box :class "genwin" :orientation "v" :spacing 35 :space-evenly "false" :vexpand "false" :hexpand "false" 
        (image :path "images/profile.jpg" :width 200 :height 200 :class "face" :halign "center")
        ...
    )
;;  Music 
(defwidget music [] 
    (box :class "genwin" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false" 
        (image :class "album_art" :vexpand "false" :hexpand "false" :path COVER :width 200 :height 200)
        (box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false" 
            ... 
        ))

Also, I believe the comma should be swapped on UPHOUR and UPMIN, although I think there is a mistake in naming here (UPHOUR is hours, but UPMIN is in days on my machine):

;;  Uptime vars 
(defpoll UPHOUR :interval "5s"  "uptime -p | awk '{print $2 \" \" $3}'")
(defpoll UPMIN :interval "5s"  "uptime -p | awk '{print $4 \" \" $5}' | sed 's/,//g'")
tripleo1 commented 3 years ago

I've been busy. I'll look into it.

yongkyw commented 3 years ago

did weather_info work on you guys? if yes can you share your config code?

mbuxmann commented 2 years ago

See if this works for you.

For some reason I get "- Invalid token" do you perhaps know why?