NixOS-Configs/home/gui/services.nix
2024-05-22 09:47:41 -05:00

111 lines
2.8 KiB
Nix

{ ... }:
{
services = {
wayland-pipewire-idle-inhibit = {
enable = true;
systemdTarget = "sway-session.target";
settings = {
verbosity = "INFO";
media_minimum_duration = 10;
idle_inhibitor = "wayland";
# sink_whitelist = [
# { name = "Starship/Matisse HD Audio Controller Analog Stereo"; }
# ];
node_blacklist = [
{ name = "nov"; }
];
};
};
gnome-keyring = {
enable = true;
};
ssh-agent = {
enable = true;
};
kanshi = {
enable = true;
profiles = {
undocked = {
outputs = [
{
criteria = "eDP-1";
status = "enable";
}
];
};
docked = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "DP-5";
status = "enable";
position = "0,0";
}
{
criteria = "DP-6";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output DP-5"
"swaymsg workspace 5, move workspace to output DP-6"
"swaymsg workspace 6, move workspace to output DP-5"
"swaymsg workspace 9, move workspace to output DP-6"
];
};
docked2 = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "DP-7";
status = "enable";
position = "0,0";
}
{
criteria = "DP-8";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output DP-7"
"swaymsg workspace 5, move workspace to output DP-8"
"swaymsg workspace 6, move workspace to output DP-7"
"swaymsg workspace 9, move workspace to output DP-8"
];
};
docked3 = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "DP-9";
status = "enable";
position = "0,0";
}
{
criteria = "DP-10";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output DP-9"
"swaymsg workspace 5, move workspace to output DP-10"
"swaymsg workspace 6, move workspace to output DP-9"
"swaymsg workspace 9, move workspace to output DP-10"
];
};
};
};
};
}