fix(hyprgrass): delay loading of plugin

This commit is contained in:
matt1432 2023-11-26 20:18:49 -05:00
parent 1451f0c470
commit 369fd32e54
2 changed files with 5 additions and 6 deletions

View file

@ -43,6 +43,7 @@ export default () => {
stack.resetTimer = () => { stack.resetTimer = () => {
// Each osd calls resetTimer once at startup // Each osd calls resetTimer once at startup
// FIXME: doesn't seem to work anymore, find alternative
if (setup <= stack.items.length + 1) { if (setup <= stack.items.length + 1) {
++setup; ++setup;

View file

@ -29,12 +29,6 @@ in {
enable = true; enable = true;
package = hyprland.packages.x86_64-linux.default; package = hyprland.packages.x86_64-linux.default;
plugins =
[]
++ (optionals (osConfig.hardware.sensor.iio.enable) [
hyprgrass.packages.${pkgs.system}.default
]);
settings = { settings = {
env = env =
[ [
@ -97,6 +91,10 @@ in {
]) ])
++ (optionals (osConfig.services.gnome.gnome-keyring.enable) [ ++ (optionals (osConfig.services.gnome.gnome-keyring.enable) [
"gnome-keyring-daemon --start --components=secrets" "gnome-keyring-daemon --start --components=secrets"
])
# FIXME: https://github.com/horriblename/hyprgrass/issues/65
++ (optionals (osConfig.hardware.sensor.iio.enable) [
"sleep 3; hyprctl plugin load ${hyprgrass.packages.${pkgs.system}.default}/lib/libhyprgrass.so"
]); ]);
windowrule = [ windowrule = [