Separated concerns in desktop environment
This commit is contained in:
@@ -16,6 +16,9 @@ in
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
bgColour = my.mkOpt' types.str "#808F85" "Background colour for the wallpaper";
|
||||
wallpapers = my.mkOpt' types.path ../../data/wallpapers/flors "Path to a folder containing wallpapers";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
@@ -50,19 +53,22 @@ in
|
||||
|
||||
samfelag.modules = {
|
||||
|
||||
# Basic
|
||||
app.alacritty.enable = true;
|
||||
desktop.polybar.enable = true;
|
||||
desktop.rofi.enable = true;
|
||||
desktop.polybar.enable = true;
|
||||
app.firefox.enable = true;
|
||||
|
||||
desktop.i3 = {
|
||||
enable = true;
|
||||
laptop = cfg.laptop;
|
||||
launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run";
|
||||
terminal.command = "${pkgs.alacritty}/bin/alacritty";
|
||||
browser.command = "${pkgs.firefox}/bin/firefox";
|
||||
locker.command = "${pkgs.i3lock-blur}/bin/i3lock-color -c 808F85 && sleep 1";
|
||||
app.firefox.enable = true;
|
||||
launcher = "${pkgs.rofi}/bin/rofi rofi -show run";
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
locker = "${pkgs.i3lock-blur}/bin/i3lock-color -c 808F85 && sleep 1";
|
||||
|
||||
extraStartup = [
|
||||
{ command = "systemctl --user restart polybar"; always = true; notification = false; }
|
||||
{ command = "feh --bg-center -B \"${cfg.bgColour}\" -z --no-fehbg ${cfg.wallpapers}"; always = true; notification = false; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user