Migrate to flake
This commit is contained in:
parent
7e24481850
commit
6cdbba8c60
42 changed files with 842 additions and 770 deletions
65
home/fhauser/applications/kanshi.nix
Normal file
65
home/fhauser/applications/kanshi.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
# systemd.user.services.kanshi.Install.WantedBy = "home-manager-fhauser.service"; # TODO: Upstream array type of systemdTarget
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
profiles = let
|
||||
backgroundPicturePath = "~/pictures/backgrounds";
|
||||
backgroundCommand = ''
|
||||
#swaymsg "output * bg `find ${backgroundPicturePath} -type f | shuf -n 1` fill"
|
||||
'';
|
||||
mkScreen = (screen: {
|
||||
criteria = screen;
|
||||
status = "enable";
|
||||
scale = 1.0;
|
||||
});
|
||||
in rec {
|
||||
#mobile-work.exec = backgroundCommand;
|
||||
mobile-work.outputs = [
|
||||
(mkScreen "Unknown 0x08CE 0x00000000" // {
|
||||
position = "0,0";
|
||||
scale = 2.0;
|
||||
})
|
||||
];
|
||||
mobile-work-external.outputs = [
|
||||
(mkScreen "Unknown 0x08CE 0x00000000" // {
|
||||
position = "1920,0";
|
||||
scale = 2.0;
|
||||
})
|
||||
(mkScreen "Lenovo Group Limited M14 V907R2HD" // { position = "0,0"; })
|
||||
];
|
||||
mobile-private.outputs = [
|
||||
(mkScreen "Unknown 0x1536 0x00000000" // {
|
||||
position = "0,0";
|
||||
scale = 1.5;
|
||||
})
|
||||
];
|
||||
home-dock.outputs = mobile-work.outputs ++ [
|
||||
(mkScreen "Dell Inc. DELL P2720DC 22JPK53" // {
|
||||
position = "1920,0";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
})
|
||||
];
|
||||
office-dock.outputs = [
|
||||
(mkScreen "Dell Inc. DELL P2720DC BRKPK53" // { position = "0,0"; })
|
||||
(mkScreen "Dell Inc. DELL P2720DC 6JRRK53" // { position = "2560,0"; })
|
||||
(mkScreen "Unknown 0x08CE 0x00000000" // {
|
||||
position = "5120,0";
|
||||
scale = 2.0;
|
||||
})
|
||||
];
|
||||
home-pc.outputs = [
|
||||
(mkScreen "Dell Inc. DELL P2720DC 22JPK53" // { position = "0,0"; })
|
||||
(mkScreen "Unknown HP Z27 CN482201RP" // {
|
||||
position = "2560,0";
|
||||
scale = 1.5;
|
||||
})
|
||||
];
|
||||
home-pc-row.outputs = home-pc.outputs ++ [
|
||||
(mkScreen "Eizo Nanao Corporation EV2450 92395086" // {
|
||||
position = "5120,0";
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue