NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.28k stars 13.53k forks source link

Package request: kando 🥧 The Cross-Platform Pie Menu. #297267

Open Birdthatcantfly opened 5 months ago

Birdthatcantfly commented 5 months ago

Project description

Kando will be a pie menu for the desktop. It will be highly customizable and will allow you to create your own menus and actions. For instance, you can use it to control your music player, to open your favorite websites or to simulate shortcuts. It will be available for Windows, Linux and macOS.

Metadata


TomaSajt commented 5 months ago

Packaging this from source seems a bit difficult at the moment:

The latter made me give up on packaging it from source.

Zetaphor commented 1 week ago

@TomaSajt, there are Appimages available now for each release (starting in July), would it now be possible to work from one of those?

There's some early attempts in the above mentioned issue on the Kando repo

TomaSajt commented 1 week ago

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

KingKrouch commented 1 week ago

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

Got an idea on how I can test this package out, so I can see if it runs on Plasma?

TomaSajt commented 1 week ago

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

Got an idea on how I can test this package out, so I can see if it runs on Plasma?

nix-shell -I nixpkgs=https://github.com/TomaSajt/nixpkgs/archive/kando.tar.gz -p kando

and then run kando


or just clone my branch, and run nix-build -A kando and then run result/bin/kando

KingKrouch commented 1 week ago

nix-shell -I nixpkgs=https://github.com/TomaSajt/nixpkgs/archive/kando.tar.gz -p kando

and then run kando

Sweet, this works fine. Got Kando up and running on my install of KDE Plasma. It's just currently missing a shortcut, but I'd imagine that the reason why it doesn't have that is because of how nix-shell functions.

Schneegans commented 1 week ago

Finally got it to compile from source, though it looks a bit buggy for me (I'm using i3 as the wm, probably that's the issue)

On i3 you'll need a compositor for Kando to look good. Else the transparent background will be black.

Sweet, this works fine. Got Kando up and running on my install of KDE Plasma. It's just currently missing a shortcut, but I'd imagine that the reason why it doesn't have that is because of how nix-shell functions.

Are you using Wayland? If so, you'll need to configure the hotkey in KWin's global shortcut settings. See the platform-notes of Kando. On X11, it should be possible to adjust the hotkey in the settings of Kando.

Edit: I just looked at your PR. This looks like an awful lot of fiddling around to get this working. Thanks a ton! I'll try to not change much to the build system in the future :wink:

KingKrouch commented 1 week ago

Are you using Wayland? If so, you'll need to configure the hotkey in KWin's global shortcut settings.

Yeah, I'm using Wayland. It just seems like using CTRL + Win (Meta) might just be tripping up KDE or something. Will probably wait to play around further with this.

Zetaphor commented 6 days ago

I just looked at your PR. This looks like an awful lot of fiddling around to get this working. Thanks a ton! I'll try to not change much to the build system in the future 😉

Am I off base in thinking it would be easier/less fragile to just copy the binaries from the AppImage and bring in the same dependencies?

I assume this is not preferred in the Nix philosophy? I'm interested in making an attempt at writing that build script when I have some free time (currently moving)

TomaSajt commented 6 days ago

Am I off base in thinking it would be easier/less fragile to just copy the binaries from the AppImage and bring in the same dependencies?

I assume this is not preferred in the Nix philosophy? I'm interested in making an attempt at writing that build script when I have some free time (currently moving)

I think I got the derivation to a point where it is no longer that fragile. Sadly, this kind of complexity is required for electron apps.

Yes, it might be easier to package the AppImage, but that's even more fragile IMO. With AppImages we don't really know if we're missing a dependency or not until we run the program, (unlike when we package from source). So automated updates might break the app.

TomaSajt commented 2 days ago

I think I reached a point where I can't improve the derivation anymore, and I'm satisfied with it.

If you want to help this move forward a bit faster, please leave a review on the PR stating which platform you're testing on and whether certain features of the program worked for you or not. I'd appreciate the help.