diff --git a/system/wm/hyprland.nix b/system/wm/hyprland.nix index 7b7c0082..b17a0095 100644 --- a/system/wm/hyprland.nix +++ b/system/wm/hyprland.nix @@ -27,6 +27,9 @@ in }; programs.iio-hyprland.enable = true; + programs.iio-hyprland.package = pkgs.iio-hyprland.overrideAttrs { + patches = [ ./iio-hyprland-hyprpaper.patch ]; + }; environment.systemPackages = with pkgs; [ jq ]; diff --git a/system/wm/iio-hyprland-hyprpaper.patch b/system/wm/iio-hyprland-hyprpaper.patch new file mode 100644 index 00000000..31dc2d5e --- /dev/null +++ b/system/wm/iio-hyprland-hyprpaper.patch @@ -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) {