mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
wm.sway module
This commit is contained in:
parent
35cf3c5d4a
commit
00b46789d6
17 changed files with 34 additions and 29 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./desktopEnvironments
|
||||
./modules
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,15 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.alacritty;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.alacritty = { enable = mkEnableOption "user.gui.alacritty"; };
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = import ./config/alacritty.nix;
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@
|
|||
./fun
|
||||
./utils
|
||||
./writing
|
||||
./wm
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 609 KiB After Width: | Height: | Size: 609 KiB |
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
let
|
||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||
wallpapers = builtins.path {
|
||||
path = ./wallpapers;
|
||||
name = "wallpapers";
|
||||
};
|
||||
|
||||
in
|
||||
{ enable = true;
|
||||
|
|
@ -17,13 +21,13 @@ in
|
|||
HDMI-A-1 = {
|
||||
resolution = "1920x1080";
|
||||
position = "0,0";
|
||||
bg = "~/Pictures/wallpapers/${config.user.wallpaper} fill";
|
||||
bg = "${wallpapers}/${config.user.wallpaper} fill";
|
||||
};
|
||||
DP-1 = {
|
||||
resolution = "1080x1920";
|
||||
position = "1920,0";
|
||||
transform = "90";
|
||||
bg = "~/Pictures/wallpapers/${config.user.wallpaper} fill";
|
||||
bg = "${wallpapers}/${config.user.wallpaper} fill";
|
||||
};
|
||||
};
|
||||
modifier = "Mod1";
|
||||
1
src/user/modules/gui/modules/wm/sway/config/wallpapers
Symbolic link
1
src/user/modules/gui/modules/wm/sway/config/wallpapers
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../../wallpapers/
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.sway;
|
||||
cfg = config.modules.user.gui.wm.sway;
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.sway = { enable = mkEnableOption "user.gui.sway"; };
|
||||
{ options.modules.user.gui.wm.sway = { enable = mkEnableOption "user.gui.wm.sway"; };
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; };
|
||||
programs.rofi = import ./config/rofi.nix { inherit pkgs config lib; };
|
||||
|
|
@ -55,10 +55,5 @@ in
|
|||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
home.file."Pictures/wallpapers" = {
|
||||
source = ../../wallpapers;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue