feat: add kanshi

This commit is contained in:
Moritz Böhme 2024-11-05 09:17:14 +01:00
parent e193064224
commit c59e19a7cc

View file

@ -51,15 +51,61 @@
keyMap = "de";
};
home-manager.users.moritz.services.kanshi.settings = [
{
profile.name = "undocked";
profile.outputs = [
{
criteria = "eDP-1";
}
];
}
{
profile.name = "docked";
profile.outputs = [
{
criteria = "eDP-1";
position = "2133,1800"; # NOTE: 2160 / 1.2 = 1800
}
{
criteria = "DP-6";
scale = 1.2;
position = "2133,0";
}
{
criteria = "DP-7";
scale = 1.2;
position = "0,0";
}
];
}
{
profile.name = "home";
profile.outputs = [
{
criteria = "LG Electronics LG TV SSCR2 0x01010101";
scale = 1.2;
position = "1920,0";
}
{
criteria = "eDP-1";
position = "0,1080";
}
];
}
];
services.xserver = {
# Configure keymap in X11
layout = "de";
# map caps to escape.
xkbOptions = "caps:escape";
# Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.moritz = {
isNormalUser = true;