Fixes iio-hyprland wallpaper bug
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
|
12
system/wm/iio-hyprland-hyprpaper.patch
Normal file
12
system/wm/iio-hyprland-hyprpaper.patch
Normal 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) {
|
Reference in New Issue
Block a user