Fixes iio-hyprland wallpaper bug

This commit is contained in:
Emmet
2024-12-06 14:30:34 -06:00
parent 0645a253b3
commit 509f38a50b
2 changed files with 15 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ in
}; };
programs.iio-hyprland.enable = true; programs.iio-hyprland.enable = true;
programs.iio-hyprland.package = pkgs.iio-hyprland.overrideAttrs {
patches = [ ./iio-hyprland-hyprpaper.patch ];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
jq jq
]; ];

View File

@@ -0,0 +1,12 @@
diff --git a/main.c b/main.c
index 2e858dd..2cd43e8 100644
--- a/main.c
+++ b/main.c
@@ -123,6 +123,7 @@ void handle_orientation(enum Orientation orientation, const char* monitor_id) {
system_fmt("hyprctl --batch \"keyword monitor %s,transform,%d ; keyword input:touchdevice:transform %d ; keyword input:tablet:transform %d\"", output, orientation, orientation, orientation);
}
+ system_fmt("pkill hyprpaper; hyprpaper & disown;");
}
DBusMessage* request_orientation(DBusConnection* conn) {