Tweak hyprland for kvm switch support

Turn off GDM, it pops back up on reconnecting the monitor for some
reason.
Move Hyprpaper to a service
This commit is contained in:
Nathan McCarty 2023-07-22 18:36:00 -04:00
parent 9cfe9d7673
commit 783b9c071b
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 20 additions and 3 deletions

View File

@ -33,7 +33,6 @@
master { master {
mfact = 0.68 mfact = 0.68
} }
exec-once=hyprpaper
''; '';
################################################################################ ################################################################################
@ -74,6 +73,23 @@
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
# Hyprpaper
# Run as service so we can easily restart it after kvm switching
hyprpaper = {
Unit = {
Description = "Hyprpaper";
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.hyprpaper
}/bin/hyprpaper
'';
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
# Startup noisetorch on our USB mic # Startup noisetorch on our USB mic
noisetorch-startup = { noisetorch-startup = {
Unit = { Unit = {
@ -87,7 +103,7 @@
/run/wrappers/bin/noisetorch -i alsa_input.usb-18072020_JLAB_TALK_GO_MICROPHONE-00.analog-stereo /run/wrappers/bin/noisetorch -i alsa_input.usb-18072020_JLAB_TALK_GO_MICROPHONE-00.analog-stereo
''; '';
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; # Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
}; };

View File

@ -22,7 +22,8 @@ in with lib; {
(mkIf nc.hyprland.enable { (mkIf nc.hyprland.enable {
# Turn on GDM for login # Turn on GDM for login
services.xserver = { services.xserver = {
enable = true; # enable = true;
enable = false;
autorun = true; autorun = true;
# Enable plasma for the applications # Enable plasma for the applications
desktopManager.plasma5.enable = true; desktopManager.plasma5.enable = true;