783 current 2024-06-27 11:49:27 24.11.20240627.3664857 6.9.6-zen1 *

This commit is contained in:
zackartz 2024-06-27 11:49:31 -04:00
parent 2c2fef30d9
commit b2d397a715
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
5 changed files with 101 additions and 30 deletions

View file

@ -0,0 +1,26 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.wms.river;
in {
options.wms.river = with types; {
enable = mkBoolOpt false "Enable River WM";
};
config = mkIf cfg.enable {
wayland.windowManager.river = {
enable = true;
settings = {
spawn = [
"firefox"
"kitty"
];
};
};
};
}

View file

@ -7,6 +7,12 @@
with lib;
with lib.custom; let
cfg = config.wms.sway;
mkService = recursiveUpdate {
Unit.PartOf = ["graphical-session.target"];
Unit.After = ["graphical-session.target"];
Install.WantedBy = ["graphical-session.target"];
};
in {
options.wms.sway = with types; {
enable = mkBoolOpt false "Enable Sway";
@ -16,7 +22,46 @@ in {
wayland.windowManager.sway = {
enable = true;
xwayland = true;
package = pkgs.swayfx;
extraOptions = ["--unsupported-gpu"];
config = {
terminal = "kitty";
startup = [{command = "firefox";}];
menu = "killall anyrun || anyrun";
input = {
"Logitech USB Receiver Keyboard" = {
accel_profile = "flat";
pointer_accel = "0";
};
"Logitech USB Receiver" = {
accel_profile = "flat";
pointer_accel = "0";
};
};
output = {
DP-1 = {
mode = "2560x1440@240Hz";
adaptive_sync = "off";
};
HDMI-A-1 = {
disable = "disable";
};
};
};
};
systemd.user.services = {
swaybg = mkService {
Unit.Description = "Wallpaper Chooser";
Service = {
ExecStart = "${getExe pkgs.swaybg} -i ${wallpaper}";
Restart = "always";
};
};
};
};
}