feat: refactor Niri configuration by removing deprecated services and scripts, and updating display management to use niri-native scripts
This commit is contained in:
@@ -33,29 +33,31 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.watchDisplays = {
|
||||
description = "set screens on keyboard event";
|
||||
wantedBy = ["default.target"];
|
||||
after = ["graphical-session.target"];
|
||||
# DISABLED: Old gnome-monitor-config approach - now using niri-native zenbook-screen.nix
|
||||
# systemd.user.services.watchDisplays = {
|
||||
# description = "set screens on keyboard event";
|
||||
# wantedBy = ["default.target"];
|
||||
# after = ["graphical-session.target"];
|
||||
|
||||
path = [pkgs.gnome-monitor-config pkgs.usbutils pkgs.inotify-tools];
|
||||
serviceConfig = {
|
||||
preStart = "${patchedDuoScript} normal";
|
||||
ExecStart = "${patchedDuoScript} watch-displays";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
# path = [pkgs.gnome-monitor-config pkgs.usbutils pkgs.inotify-tools];
|
||||
# serviceConfig = {
|
||||
# preStart = "${patchedDuoScript} normal";
|
||||
# ExecStart = "${patchedDuoScript} watch-displays";
|
||||
# Restart = "always";
|
||||
# RestartSec = 5;
|
||||
# };
|
||||
# };
|
||||
|
||||
systemd.user.services.watchRotation = {
|
||||
description = "rotate screens";
|
||||
wantedBy = ["default.target"];
|
||||
after = ["graphical-session.target"];
|
||||
path = [pkgs.gnome-monitor-config pkgs.iio-sensor-proxy];
|
||||
serviceConfig = {
|
||||
ExecStart = "${patchedDuoScript} watch-rotation";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
# DISABLED: Old rotation script - conflicts with niri
|
||||
# systemd.user.services.watchRotation = {
|
||||
# description = "rotate screens";
|
||||
# wantedBy = ["default.target"];
|
||||
# after = ["graphical-session.target"];
|
||||
# path = [pkgs.gnome-monitor-config pkgs.iio-sensor-proxy];
|
||||
# serviceConfig = {
|
||||
# ExecStart = "${patchedDuoScript} watch-rotation";
|
||||
# Restart = "always";
|
||||
# RestartSec = 5;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user