mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat[client]: add shikane
This commit is contained in:
parent
694dd794f7
commit
91f4393800
34 changed files with 2182 additions and 1802 deletions
77
modules/home/common/shikane.nix
Normal file
77
modules/home/common/shikane.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ lib, config, confLib, ... }:
|
||||
{
|
||||
options.swarselmodules.shikane = lib.mkEnableOption "kanshi settings";
|
||||
config = lib.mkIf config.swarselmodules.shikane {
|
||||
|
||||
systemd.user.services.shikane = confLib.overrideTarget "noctalia-shell.target";
|
||||
services.shikane = {
|
||||
enable = true;
|
||||
settings =
|
||||
let
|
||||
homeMonitor = [
|
||||
"m=PHL BDM3270"
|
||||
"s=AU11806002320"
|
||||
"v=Philips Consumer Electronics Company"
|
||||
];
|
||||
exec = [ "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\"" ];
|
||||
in
|
||||
{
|
||||
profile = [
|
||||
|
||||
{
|
||||
name = "internal-on";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = true;
|
||||
mode = "${config.swarselsystems.highResolution}@165.000";
|
||||
scale = 1.0;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
name = "home-internal-on";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = true;
|
||||
scale = 1.7;
|
||||
position = "2560,0";
|
||||
}
|
||||
{
|
||||
match = homeMonitor;
|
||||
enable = true;
|
||||
scale = 1.0;
|
||||
mode = "2560x1440";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
name = "home-internal-off";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = false;
|
||||
position = "2560,0";
|
||||
}
|
||||
{
|
||||
match = homeMonitor;
|
||||
scale = 1.0;
|
||||
enable = true;
|
||||
mode = "2560x1440";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue