(home/wayland) use kanshi for monitor management

This commit is contained in:
Laureηt 2024-03-31 16:18:59 +02:00
parent 3d150c620e
commit 27cbe6a8d7
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
3 changed files with 32 additions and 1 deletions

View file

@ -3,6 +3,7 @@
./eww
./fuzzel
./hyprland
./kanshi
./mako
./swayidle
./swaylock

View file

@ -1,5 +1,6 @@
# https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,1920x1080@120,0x0,1
monitor=DP-3,1920x1080@120,0x0,1
monitor=eDP-1,1920x1200,0x1080,1
# https://wiki.hyprland.org/Configuring/Keywords/

View file

@ -0,0 +1,29 @@
{...}: {
services.kanshi = {
enable = true;
systemdTarget = "hyprland-session.target";
profiles = {
office = {
outputs = [
{
criteria = "DP-3";
status = "enable";
}
{
criteria = "eDP-1";
status = "disable";
}
];
};
home = {
outputs = [
{
criteria = "eDP-1";
status = "enable";
}
];
};
};
};
}