Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - hutber

1
Umm though I didn't need that long and actually not particularly helpful here is the full script (I'm no bash dev :D):

#!/bin/bash

# Get the PID of gmusicbrowser
pid=$(ps ax | grep 'gmusic' | awk '{print $1}' | head -n 1)

if [[ -z "$pid" ]]; then
    echo "gmusicbrowser is not running."
    exit 1
fi

gmusicWindowId=$(xdotool search --pid $pid | tail -n 2 | head -n 1)

if [[ -z "$gmusicWindowId" ]]; then
    echo "No window ID found for gmusicbrowser."
    exit 1
fi

currentWindowPid=$(xdotool getactivewindow getwindowpid)

if [[ "$currentWindowPid" == "$pid" ]]; then
    #/home/hutber/gmusicbrowser-1.1.99.1/gmusicbrowser.pl -cmd Hide
    xdotool windowunmap `echo $gmusicWindowId`
else
    xdotool windowmap `echo  $gmusicWindowId` && xdotool windowactivate $gmusicWindowId && xdotool windowfocus $gmusicWindowId
fi
2
I am trying to hide and show gmusicbrowser with a custom hotkey, which all together works, however it does not always open "in front" of other applications. So the theory was to use xdotool to sniff out the window and bring it in the front. I've done this in the past with `xdotool search -class "XXX"` however as my gmusic only has the song name in the title bar I cannot search for it. I have tried to check via the pid, but it returns many many windows :D

xdotool search --pid 4785
58720257
58738035
58738262
58738542
58746806
58720424
58831293
58829756
58850763
58720263
58720291

So I think the easiest way would be to include gmusicbrowser in the title bar.
3
Questions / Re: Cache album artwork
December 21, 2023, 22:30:27
I would love a "fix" for this, as odd as it might sound. Its mildly annoying and something I feel every time I reboot the machine.
4
Questions / Cache album artwork
February 09, 2019, 15:25:15
Is it possible to have the album artwork cache. Currently every time I start the problem and I scroll through my standard view it needs to read each album artwork.
5
Its been a while and I'm back with a bubble of excitment in my stomach!! Man this program just keeps surprising me with just how feking good it is!!!
6
Ye agreed, this would be a very nice feature.
7
Since leaving moving to linux some 3 years ago, one thing has bugged me more than anything oddly was the last of Winamp theme in any of the players. I have looked and looked... But nothing. Until now :D!!!
So yes, I just wanted to say thank you. Finally I can have artists > just their album artwork and sorted by newest to oldest.

Now I will look into how to recognise my media library using this player.