mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Fixes iio-hyprland wallpaper bug
This commit is contained in:
parent
0645a253b3
commit
509f38a50b
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
];
|
||||
|
|
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) {
|
Loading…
Add table
Add a link
Reference in a new issue