diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index 9d84586..a53f108 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -140,6 +140,12 @@ menu { } } } +tooltip{ + color: $color9; + background-color: rgba($color0,0.75); + border: 2px solid rgba($color0,0.5); + border-radius: 8px; +} .rat { border-radius: 8px; diff --git a/de/home/.config/eww/modules/bar.yuck b/de/home/.config/eww/modules/bar.yuck index def1ad2..216b739 100644 --- a/de/home/.config/eww/modules/bar.yuck +++ b/de/home/.config/eww/modules/bar.yuck @@ -18,24 +18,27 @@ (windowtitle) (scratchpad :array scratchpadArray))) -(defpoll scratchpadArray :interval 5s +(defpoll scratchpadArray :interval "5s" 'scripts/bar/scratchpad') (defwidget scratchpad [array] (box :orientation "v" :space-evenly false + :class "workspaces" (box :space-evenly false (for entry in array - (image :path "${entry.icon}" + (button :tooltip "${entry.name} +test" + (image :path {entry.icon} :image-width 25 :image-height 25) - ${entry.name} + ))))) ; (image :path "/usr/share/icons/hicolor/scalable/apps/org.kde.dolphin.svg" ; :image-width 25 ; :image-height 25) ; (image :path "/usr/share/icons/hicolor/32x32/apps/librewolf.png" ; :image-width 25 ; :image-height 25 - ))) +; ))) (defwidget centergroup [] (box :class "centergroup" :orientation "h" :space-evenly false :halign "start" diff --git a/de/home/.config/eww/modules/bar/battery.yuck b/de/home/.config/eww/modules/bar/battery.yuck index 78d0320..81a5f73 100644 --- a/de/home/.config/eww/modules/bar/battery.yuck +++ b/de/home/.config/eww/modules/bar/battery.yuck @@ -20,5 +20,5 @@ (progress :height 10 :valign "center" - :value {jq(EWW_BATTERY,'.[].capacity?')} + :value {(EWW_BATTERY == "") ? 100 : jq(EWW_BATTERY,'.[].capacity?')} :orientation "h"))) diff --git a/de/home/.config/eww/scripts/bar/scratchpad b/de/home/.config/eww/scripts/bar/scratchpad index 9cdc607..d4d7f2e 100755 --- a/de/home/.config/eww/scripts/bar/scratchpad +++ b/de/home/.config/eww/scripts/bar/scratchpad @@ -159,6 +159,7 @@ title_fmt='%s' applist_array=() applist="" +shopt -s lastpipe swaymsg -t get_tree | # get list of windows as tab-separated columns jq -r "$jq_get_windows | $jq_windows_to_tsv" | @@ -180,7 +181,8 @@ column -s $'\t' -o $'\t' -t | while IFS=$'\t' read -r win_id ws_name app_name wi # "${app_name##*.}" \ # "$ws_name" \ # "$win_title" -done | echo "${applist}" +done +echo ${applist} #echo "${applist_array[@]}" #printf '%s\n' "${applist_array[@]}" #echo "${applist_array[@]}"