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:
parent
9cfe9d7673
commit
783b9c071b
|
@ -33,7 +33,6 @@
|
|||
master {
|
||||
mfact = 0.68
|
||||
}
|
||||
exec-once=hyprpaper
|
||||
'';
|
||||
################################################################################
|
||||
|
||||
|
@ -74,6 +73,23 @@
|
|||
};
|
||||
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
|
||||
noisetorch-startup = {
|
||||
Unit = {
|
||||
|
@ -87,7 +103,7 @@
|
|||
/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" ]; };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ in with lib; {
|
|||
(mkIf nc.hyprland.enable {
|
||||
# Turn on GDM for login
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
# enable = true;
|
||||
enable = false;
|
||||
autorun = true;
|
||||
# Enable plasma for the applications
|
||||
desktopManager.plasma5.enable = true;
|
||||
|
|
Loading…
Reference in New Issue