linkfrg/dotfiles

Icons misplaced in eww bar + automatically focus on search bar

qbnil opened this issue · 35 comments

  1. 2024-04-18T14:16:29,787400418+03:00
    2024-04-18T14:17:06,111380006+03:00
    There is an issue that i have, the very first time i booted into hyprland, the icons were looking just alright, but now all of them are kinda in the wrong place, how do i position them normally?
  2. Is there any way to automatically put the cursor in the search bar for searching applications and not do that manually, thx in advance...
  1. remove all nerd fonts except ttf-jetbrains-mono and ttf-nerd-fonts-symbols, to list all fonts use pacman -Q | grep ttf
  2. i think no, eww have no this feature

Does that mean there is no way i can install some other font anymore?

there is no way you can install other nerd font except ttf-nerd-fonts-symbols

Btw, i lost your wallpaper by changin it to another one, where do you store it, the one with the flowers?

Thx, btw, i managed to fix the icons problem by just replacing yours with the emojis and it looks pretty fun
image
image

The last thing i wanted to ask you was about pinnning the apps to the taskbar, the hotkey seems to not work..

image
I also noticed that the way the spotify song is begin displayed in your preview, i only see this:
image
without any pic:(

to pin app to the taskbar right click on it in launcher

hmmm I can't reproduce the problem with spotify

image
I mean pinning like this, just making sure you got it right. I right click on the app in launcher here:
image
but can't pin anything, it just opens the app

Fixed the durition bar problem by installing bc manually from pacman repos, you better include it in your wiki, still figuring out how to make the pic appear

Может на русском проще будет объяснить, я так понимаю, что mpris.sh это конфиг как раз для этого, но прикол в том, что с картинкой я там ничего не увидел, исходя из того, что у меня там сейчас:
#!/bin/bash

playerctl metadata -F -f '{{playerName}} {{title}} {{artist}} {{mpris:artUrl}} {{status}} {{mpris:length}}' | while read -r line; do
name=$(playerctl metadata -f "{{playerName}}")
title=$(playerctl metadata -f "{{title}}")
artist=$(playerctl metadata -f "{{artist}}")
artUrl=$(playerctl metadata -f "{{mpris:artUrl}}")
status=$(playerctl metadata -f "{{status}}")
length=$(playerctl metadata -f "{{mpris:length}}")
if [[ $length != "" ]]; then
length=$(($length / 1000000))
length=$(echo "($length + 0.5) / 1" | bc)
fi
lengthStr=$(playerctl metadata -f "{{duration(mpris:length)}}")

JSON_STRING=$( jq -n \
            --arg name "$name" \
            --arg title "$title" \
            --arg artist "$artist" \
            --arg artUrl "$artUrl" \
            --arg status "$status" \
            --arg length "$length" \
            --arg lengthStr "$lengthStr" \
            '{name: $name, title: $title, artist: $artist, artUrl: $artUrl, status: $status, length: $length, lengthStr: $lengthStr}' )
echo $JSON_STRING

done

Хотя artUrl это, наверное и есть то, что нужно

да artUrl это и есть ссылка на картинку, вы ставили систему начисто(с нуля)?

да, с нуля поставил и накатил потом твои конфиги

image
пофиксил так пока
пока смотрел файлик mpris.sh заметил, что все валится на строках, где mpris упомянается, length отрабатывает, потому что потом вручную рассчитывается с помощью bc

image
Однако...

что-то все-таки есть, может надо ребутнуть, сек

приложения закрепить получилось, а картинка так и не появляется, странно, даже ссылка активная с картинкой, надо в выводе смотреть что как. Жалко, что еще не работает pin по хоткею $mainmod + h у тебя в конфиге есть. И как открепить можно кстати?

хоткея $mainmod + h нету, и закрепление приложений по бинду я не добавлял. Чтобы открепить надо в лаунчере где Pinned нажать пкм по приложению

image
а это для чего?

это чтобы закрепить окно, а не приложение

а, это с окнами просто связано, пон, надо только разобраться каким образом оно закрепляет

это чтобы закрепить окно, а не приложение

пон, пон

https://github.com/husseinhareb/hyprland-eww/blob/main/eww/dashboard/scripts/spotify/spotify-artwork.sh
нашел интересный сорс, тут похожее на твое делают, с картинкой, можно попробовать

разве так должно работать, просто подставляя http в --arg ? как строку..

https://github.com/husseinhareb/hyprland-eww/blob/main/eww/dashboard/scripts/spotify/spotify-artwork.sh нашел интересный сорс, тут похожее на твое делают, с картинкой, можно попробовать

я сейчас eww не пользуюсь и работаю над другим проектом, так что я фиксить что-то вряд-ли буду

понял, если сделаю что-то, мр кину..

ну вот, ахах, пофиксил, давай мр кину?

у меня уже открыт какой-то пулл реквест #16, давай я его сейчас смержу и ты на новой версии уже сделаешь фикс

окей, дай знать, когда

я потому что уже твой репо клонировал к себе

мерж тогда и я на новые изменения долью