mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
kanshi
This commit is contained in:
parent
25a8b45d79
commit
d12c5d5e4e
2 changed files with 51 additions and 0 deletions
50
nixcfgs/users/js0ny/programs/desktop/wayland-wm/kanshi.nix
Normal file
50
nixcfgs/users/js0ny/programs/desktop/wayland-wm/kanshi.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{...}: let
|
||||
g14-internal = "Samsung Display Corp. ATNA40CU05-0 Unknown";
|
||||
lg4k60 = "LG Electronics LG HDR 4K 0x0004DC58";
|
||||
in {
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
# Outputs
|
||||
{
|
||||
output = {
|
||||
criteria = g14-internal;
|
||||
alias = "g14-internal";
|
||||
mode = "2880x1800@120";
|
||||
scale = 1.5;
|
||||
};
|
||||
}
|
||||
{
|
||||
output = {
|
||||
criteria = lg4k60;
|
||||
alias = "lg4k60";
|
||||
mode = "3840x2160@59.997";
|
||||
scale = 1.75;
|
||||
};
|
||||
}
|
||||
# Profiles
|
||||
{
|
||||
profile.name = "laptop";
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = g14-internal;
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
profile.name = "docked";
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = g14-internal;
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = lg4k60;
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@ in {
|
|||
../../rofi.nix
|
||||
./waybar.nix
|
||||
./swww.nix
|
||||
./kanshi.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
swayidle # Screensaver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue