work: Set workspace-display assignment, wallpapers, include anyrun

This commit is contained in:
Erwin Boskma 2023-09-29 09:39:21 +02:00
parent 9ccfe2be56
commit 3bab1423c0
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -27,6 +27,27 @@ let
${config.home-manager.users.erwin.eboskma.programs.eww.package}/bin/eww $@
'';
workspacePartition = builtins.concatLists (builtins.attrValues (builtins.mapAttrs
(
name: workspaces:
let
output =
if name == "right"
then "DP-1"
else "DP-3";
in
builtins.map
(ws: {
inherit output;
workspace = toString ws;
})
workspaces
)
(builtins.partition
(n: (trivial.mod n 2) != 0)
(lists.range 1 10))));
in
{
config = mkIf cfg.work {
@ -37,6 +58,7 @@ in
var.workSystem = true;
programs = {
alacritty.enable = false;
anyrun.enable = true;
atuin.enable = true;
bat.enable = true;
cargo = {
@ -125,12 +147,13 @@ in
sway = {
enable = true;
output = {
"DP-0" = {
# bg = "${./wallpapers/jwst-saturn-nircam-2560.png} fill";
"DP-1" = {
bg = "${../../home-manager/modules/sway/wallpapers/river-3840.png} fill";
mode = "3840x2160@60Hz";
position = "0 0";
};
"DP-4" = {
"DP-3" = {
bg = "${../../home-manager/modules/sway/wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png} fill";
mode = "3840x2160@60Hz";
position = "3840 0";
};
@ -149,6 +172,7 @@ in
{ command = "${ewwDaemon} --restart open bar-work"; always = true; }
{ command = "${pkgs.wayvnc}/bin/wayvnc -g 0.0.0.0"; }
];
workspaceOutputs = workspacePartition;
};
swaynotificationcenter.enable = true;
zellij = {
@ -327,6 +351,7 @@ in
imports = [
../../modules/options
inputs.anyrun.nixosModules.home-manager
] ++ (map (mod: (../../home-manager/modules + "/${mod}")) (builtins.attrNames (builtins.readDir ../../home-manager/modules)));
};