New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polychromatic: init at 0.7.3 #82609
polychromatic: init at 0.7.3 #82609
Conversation
Ah, looks like we're blocked on openrazer/openrazer#888 being merged, as mentioned here. |
The derivation lacks meta. |
Would love to see this merged ASAP - really missing the functionality. |
For @cawilliamson and others that need something in the meantime, please check out Razer Genie (#84812), which was recently merged. |
The development status of Polychromatic is provided via the roadmap if anyone is interested. I will be keeping an eye on this and investigate the amount of effort required to get 1.0.0 packaged once it is made available in a non-alpha state. |
Developer of the Polychromatic app here - just thought I'd let you know:
At time of writing:
|
I marked this as stale due to inactivity. → More info |
Just a note - this software released a new stable v0.7.0 version. The dependencies might want looking over with its docs. |
e738e50
to
124ab37
Compare
This PR now targets v0.7.0, and builds without errors, but e.g. the controller fails to run. I am not sure which I am also unsure how the application should be wrapped, as the controller depends on QT5, while the tray applet requires |
I have the following in my config: default.nix{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, meson
, sassc
, which
, ninja
, wrapQtAppsHook
, intltool
, requests
, pyqt5
, pyqtwebengine
, colorama
, colour
, setproctitle
, imagemagick
, openrazer
}:
buildPythonPackage rec {
pname = "polychromatic";
version = "0.7.2";
format = "other";
src = fetchFromGitHub {
owner = "polychromatic";
repo = "polychromatic";
rev = "v${version}";
sha256 = "109p89d56qp0pybhrwx9n7xzj5jg74pihh4ic5c6nzjbyjkc9xjn";
};
patches = [
./data_dir.patch
];
nativeBuildInputs = [
wrapQtAppsHook
meson
ninja
sassc
which
];
preConfigure = "patchShebangs .";
propagatedBuildInputs = [
colour
colorama
setproctitle
requests
pyqt5
pyqtwebengine
openrazer
];
buildInputs = [
intltool
imagemagick
];
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
} overlay (`callPackage`){
polychromatic = super.python3Packages.callPackage ./polychromatic {
inherit (super) meson sassc which;
inherit (super.libsForQt5) wrapQtAppsHook;
};
} data_dir.patchdiff --git a/pylib/common.py b/pylib/common.py
index 7bbda38..8fb8963 100755
--- a/pylib/common.py
+++ b/pylib/common.py
@@ -108,8 +108,8 @@ class Paths(object):
"""
module_path = __file__
- if os.path.exists(os.path.join(os.path.dirname(module_path), "../data/img/")):
- return os.path.abspath(os.path.join(os.path.dirname(module_path), "../data/"))
+ if os.path.exists(os.path.join(os.path.dirname(module_path), "../../../../share/polychromatic/img/")):
+ return os.path.abspath(os.path.join(os.path.dirname(module_path), "../../../../share/polychromatic"))
for directory in ["/usr/local/share/polychromatic", "/usr/share/polychromatic"]:
if os.path.exists(directory):
|
Adding |
124ab37
to
bbdcc29
Compare
It looks like something went wrong while rebasing. Given that you can't un-ping people on GitHub, I'm going to close this now to prevent further spamming. Please open a new PR, and ping previous reviewers in there. |
Notes regarding branch selection
- use dev-1.0.0 branch- the 1.0.0 branch uses meson instead of a plain Makefile and I found itmuch easier to create an expression for this version of the repository- according to this comment, it assumes a PR from openrazer is merged.This PR now targets the v0.7.3 branch
Related:
#82269 - Init OpenRGB#90691 - openrgb: init at 0.2
Current issues (OUTDATED)
I tried using the master branch for openrazer, but encountered the same issues.
Interestingly, I found mention in the source for features that require OpenRazer 2.8.0+ (here).
I am not sure if this is a typo or referring to the current master branch.
Additionally, this is what happens if no
~/.config/polychromatic/custom_icons
directory is found whenpolychromatic-controller
is launchedMissing directory error
Current Functionality
As it stands, brightness for connected devices can be changed, but you cannot switch between tabs, and much of the application is inaccessible.
Motivation for this change
Polychromatic provides a graphical interface to manage Razer devices using Openrazer
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc @adisbladis @worldofpeace