Comments (15)
Seems like you're using NixOS! Me too :)
I just ran into this after an update as well, since the pyprland packaged in Nix is on v2.2.11 and this seems to be fixed in v2.2.12
You should be able to use this (as a temporary fix) wherever you're declaring packages in your config:
environment.systemPackages = with pkgs; [
(pyprland.overrideAttrs (oldAttrs: {
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
rev = "refs/tags/2.2.12";
hash = "sha256-SVly20/+67d0Rr2SuM1n/JfT1SlyKdKRBLDx2okCZRY=";
};
}))
];
or if using home-manager:
home.packages = with pkgs; [
(pyprland.overrideAttrs (oldAttrs: {
src = fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
rev = "refs/tags/2.2.12";
hash = "sha256-SVly20/+67d0Rr2SuM1n/JfT1SlyKdKRBLDx2okCZRY=";
};
}))
];
For me this setup throws a warning when starting but then continues to work properly :)
from pyprland.
Seems like you're using NixOS! Me too :)
Hello yes! for about 6-8 months. My setup is based on ZaneyOS https://gitlab.com/Zaney/zaneyos
But I have forked and modified it. I've been a long time fan of pyprland so I added it to mine. This is 1st issue I've ever had with it.
I will try your fix!
Thanks for the quick reply!
This is my pyprland.nix pretty simple I got the config from someone else and just wrapped it here
{ config, pkgs, ... }:
{
home.packages = with pkgs; [ pyprland ];
xdg.configFile."hypr/pyprland.toml".text = ''
[pyprland]
plugins = [
"toggle_special",
"scratchpads",
"lost_windows",
"monitors",
"shift_monitors",
"toggle_dpms",
"magnify",
"expose",
"workspaces_follow_focus",
]
[workspaces_follow_focus]
max_workspaces = 9
[expose]
include_special = false
[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"
max_size = "1920px 100%"
[scratchpads.volume]
animation = "fromRight"
command = "pavucontrol"
class = "pavucontrol"
lazy = true
size = "40% 90%"
max_size = "1080px 100%"
unfocus = "hide"
[layout_center]
margin = 60
offset = [0, 30]
next = "movefocus r"
prev = "movefocus l"
next2 = "movefocus d"
prev2 = "movefocus u"
'';
}
from pyprland.
I don't know anything about nix, but can't the provided flake.nix be useful?
That is the flake provided
Before it was just
{ config, pkgs, ... }:
{
home.packages = with pkgs; [ pyprland ];
I will try to figure it out
Thanks
from pyprland.
thanks all It should be a few days or so before the update is there it appears
I am ok to close this issue
from pyprland.
hyprctl systeminfo
Hyprland, built from branch at commit f94264928a8ab4da8759d4ded25a46af44451d38 ().
Date: 2024-04-26
Tag: , commits: @COMMITS@
flags: (if any)
System Information:
System name: Linux
Node name: ddubsos-dev
Release: 6.8.7
Version: #1-NixOS SMP PREEMPT_DYNAMIC Wed Apr 17 09:23:43 UTC 2024
GPU information:
os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240425.7bb2ccd"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"
plugins:
hyprtrails by Vaxry ver 1.0
hyprexpo by Vaxry ver 1.0
from pyprland.
this is a duplicate of #88 btw :)
Thank you for the support @librephoenix
from pyprland.
Would it be possible to get a build using the tag or is it something related to nix?
I don't see anything special in the Arch package and I get such output:
❯ hyprctl -j version
{
"branch": "",
"commit": "fe7b748eb668136dd0558b7c8279bfcd7ab4d759",
"dirty": false,
"commit_message": "props: bump version to 0.39.1",
"commit_date": "Tue Apr 16 16:01:03 2024",
"tag": "v0.39.1",
"commits": 4460,
"flags": []
}
Poking @NotAShelf for information
from pyprland.
I am doing something wrong. Still new to NIX
it doesn't build the new version
from pyprland.
I don't know anything about nix, but can't the provided flake.nix be useful?
from pyprland.
I don't think you are alone in that case, if someone can provide decent instructions to easily get the latest pyprland (or a specific tag) on Nix I'll add it to the wiki.
from pyprland.
In case it helps some people: the "version" tag in hyprctl -j version
is required from 2.2.9 to 2.2.11 (included). Later versions assume you are using a bleeding edge version in such case, which is a packaging issue.
from pyprland.
fetchFromGitHub will fetch a source based tarball (i.e. contents of this repository on the topmost level) and won't actually expose a package. To use the pyprland package exposed by this flake, you must add it as a flake input and consume the exposed package directly with inputs.pyprland.packages.${pkgs.stdenv.system}.pyprland
.
from pyprland.
I can probably work on upstreaming pyprland to nixpkgs, the packaging is somewhat complete and poetry2nix is available in nixpkgs also. Should be trivial to implement an update script to reduce maintenance on my end as I don't use pyprland, and may not always keep myself up to date.
from pyprland.
Pyprland is in nixpkgs already: https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/py/pyprland/package.nix, though they aren't using pyprland's flake to build it. In the original issue it looks like the nixpkgs package is being used.
Nixpkgs master branch is already using pyprland 2.2.12, but nixos-unstable is still stuck on 2.2.10: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/py/pyprland/package.nix
Once unstable updates to 2.2.12 (maybe in a week or so, give or take?), I think this issue will resolve itself.
In any case, the temporary fix I mentioned was to just override the pyprland in nixpkgs with the up-to-date version.
Any issues with installing pyprland directly from pyprland's flake might be something separate?
from pyprland.
NixPkg PR + #92 will fix this issue, closing, thank you all!
from pyprland.
Related Issues (20)
- [FEAT] Multiple windows support for scratchpads HOT 57
- [BUG] Error loading plugin pyprland -> JSONDecodeError: Expecting value HOT 12
- [BUG] Fail to parse hyprctl version on Hyprland built from git HOT 1
- [BUG] pyprland web apps HOT 17
- [BUG] pyprland getting syntax errors and doesn't start HOT 5
- [BUG] Invalid json data at pypr startup HOT 6
- [BUG/cosmetic] Fail to parse hyprctl version HOT 3
- [BUG] Scratchpads and file managers (Nemo, Nautilus) HOT 15
- [FEAT] Add `Anyrun` as `_menu` engine HOT 2
- Toggle terminal doesnt work in opensuse HOT 7
- [BUG] Excludes = "*" is not working in 2.2.17 HOT 1
- [BUG] OSError: AF_UNIX path too long HOT 17
- [BUG] Clent address is invalid for scratchpad plugin HOT 2
- [BUG] magnify: cannot zoom HOT 8
- [FEAT] scratchpads: pypr hide * HOT 4
- [FEAT] [layout_center] No way to have a fullscreen "main window" not covering a bar HOT 13
- [FEAT] [layout_center] tagging or similar to identify a window or workspace in center layout HOT 15
- [BUG] Import error, possible missing module? HOT 1
- [BUG] `coroutine` object does not support the asynchronous context manager protocol HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyprland.