home/sway: consolidate secondary modules
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-07-21 21:32:06 -04:00
parent 23ad89f6cf
commit 3d432dffdf
4 changed files with 21 additions and 32 deletions

View file

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [./randomWallpaper.nix ./redShift.nix]; imports = [./randomWallpaper.nix];
config = lib.mkIf config.ar.home.desktop.sway.enable { config = lib.mkIf config.ar.home.desktop.sway.enable {
ar.home.theme.gtk.hideTitleBar = ar.home.theme.gtk.hideTitleBar =

View file

@ -1,14 +0,0 @@
{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.home.desktop.sway.redShift {
home.packages = with pkgs; [gammastep];
wayland.windowManager.sway.config.startup = [
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}
];
};
}

View file

@ -216,22 +216,25 @@ in {
}; };
}; };
startup = [ startup =
{ [
command = {
if cfg.desktop.sway.randomWallpaper command =
then "true" if cfg.desktop.sway.randomWallpaper
else "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}"; then "true"
} else "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";
{command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";} }
{command = "${scripts.idleD}";} {command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";}
{command = lib.getExe pkgs.autotiling;} {command = "${scripts.idleD}";}
{command = lib.getExe' pkgs.blueman "blueman-applet";} {command = lib.getExe pkgs.autotiling;}
{command = lib.getExe' pkgs.networkmanagerapplet "nm-applet";} {command = lib.getExe' pkgs.blueman "blueman-applet";}
{command = lib.getExe' pkgs.playerctl "playerctld";} {command = lib.getExe' pkgs.networkmanagerapplet "nm-applet";}
{command = lib.getExe' pkgs.swayosd "swayosd-server";} {command = lib.getExe' pkgs.playerctl "playerctld";}
{command = lib.getExe pkgs.mako;} {command = lib.getExe' pkgs.swayosd "swayosd-server";}
]; {command = lib.getExe pkgs.mako;}
]
++ lib.optional cfg.desktop.sway.redShift
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";};
output = { output = {
"BOE 0x095F Unknown".scale = "1.5"; "BOE 0x095F Unknown".scale = "1.5";

View file

@ -21,7 +21,7 @@
touchdevice.output = "eDP-1"; touchdevice.output = "eDP-1";
}; };
}; };
ar.home.desktop.sway.enable = true; ar.home.desktop.sway.enable = true;
ar.home.desktop.hyprland = { ar.home.desktop.hyprland = {