rework services & alacritty
move back to alacritty and install various services
This commit is contained in:
54
home/services/kanshi.nix
Normal file
54
home/services/kanshi.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ kanshi ];
|
||||
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
systemdTarget = "graphical-session.target";
|
||||
settings = [
|
||||
{
|
||||
profile.name = "laptop undocked";
|
||||
profile.outputs = [ { criteria = "eDP-1"; } ];
|
||||
profile.exec = [
|
||||
"systemctl --user start hypridle.service"
|
||||
];
|
||||
}
|
||||
{
|
||||
profile.name = "laptop docked";
|
||||
profile.exec = [
|
||||
"systemctl --user start hypridle.service"
|
||||
];
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
mode = "1920x1080@60Hz";
|
||||
position = "1920,0";
|
||||
}
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
mode = "1920x1080@60Hz";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
}
|
||||
# {
|
||||
# profile.name = "desktop";
|
||||
# profile.exec = [
|
||||
# "systemctl --user start hypridle.service"
|
||||
# ];
|
||||
# profile.outputs = [
|
||||
# {
|
||||
# criteria = "eDP-1";
|
||||
# mode = "1920x1080@60Hz";
|
||||
# position = "1920,0";
|
||||
# }
|
||||
# {
|
||||
# criteria = "HDMI-A-1";
|
||||
# mode = "1920x1080@60Hz";
|
||||
# position = "0,0";
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user