Remove kanshi

This commit is contained in:
Casper V. Kristensen 2023-08-26 19:04:17 +02:00
parent a60cc0118e
commit 1ae77093cf
9 changed files with 38 additions and 52 deletions

View file

@ -1,6 +1,7 @@
{ ... }: { { ... }: {
imports = [ imports = [
./hardware.nix ./hardware.nix
./sway.nix
../../overlays ../../overlays
../../modules/base ../../modules/base
../../modules/desktop ../../modules/desktop

18
hosts/omega/sway.nix Normal file
View file

@ -0,0 +1,18 @@
{ home-manager, ... }: {
home-manager.users.caspervk = {
wayland.windowManager.sway = {
config = {
output = {
"ASUSTek COMPUTER INC ROG XG27AQ M3LMQS370969" = {
mode = "2560x1440@144.006Hz";
position = "0,0";
};
"BNQ BenQ XL2411Z SCD06385SL0" = {
mode = "1920x1080@144.001Hz";
position = "2560,200";
};
};
};
};
};
}

View file

@ -1,6 +1,7 @@
{ ... }: { { ... }: {
imports = [ imports = [
./hardware.nix ./hardware.nix
./sway.nix
../../overlays ../../overlays
../../modules/base ../../modules/base
../../modules/desktop ../../modules/desktop

14
hosts/zeta/sway.nix Normal file
View file

@ -0,0 +1,14 @@
{ home-manager, ... }: {
home-manager.users.caspervk = {
wayland.windowManager.sway = {
config = {
output = {
"Chimei Innolux Corporation 0x14D2 Unknown" = {
mode = "1920x1080@60.008Hz";
position = "0,0";
};
};
};
};
};
}

View file

@ -3,7 +3,6 @@
./alacritty.nix ./alacritty.nix
./clipman.nix ./clipman.nix
./gammastep.nix ./gammastep.nix
./kanshi.nix
./network.nix ./network.nix
./pipewire.nix ./pipewire.nix
./programs.nix ./programs.nix

View file

@ -1,35 +0,0 @@
{ home-manager, ... }: {
# kanshi allows you to define output profiles that are automatically enabled
# and disabled on hotplug. For instance, this can be used to turn a laptop's
# internal screen off when docked. This is a Wayland equivalent for tools
# like autorandr.
# https://sr.ht/~emersion/kanshi/
home-manager.users.caspervk = {
services.kanshi = {
enable = true;
profiles = {
# Output names (criteria) from `swaymsg -t get_outputs`.
omega.outputs = [
{
criteria = "ASUSTek COMPUTER INC ROG XG27AQ M3LMQS370969";
mode = "2560x1440@144Hz";
position = "0,0";
adaptiveSync = false; # seems to flicker
}
{
criteria = "BNQ BenQ XL2411Z SCD06385SL0";
mode = "1920x1080@144Hz";
position = "2560,200";
}
];
zeta.outputs = [
{
criteria = "Chimei Innolux Corporation 0x14D2 Unknown";
mode = "1920x1080@60Hz";
}
];
};
};
};
}

View file

@ -26,7 +26,7 @@
}; };
output = { output = {
"*" = { "*" = {
bg = "${./img/background.png} fill"; background = "${./img/background.png} fill";
}; };
}; };
modifier = "Mod4"; # super modifier = "Mod4"; # super
@ -65,6 +65,9 @@
"XF86AudioNext" = "exec 'playerctl next'"; "XF86AudioNext" = "exec 'playerctl next'";
"XF86AudioPrev" = "exec 'playerctl previous'"; "XF86AudioPrev" = "exec 'playerctl previous'";
}; };
assigns = {
"9" = [{ class = "Spotify"; }];
};
focus = { focus = {
# Don't automatically focus hovered windows # Don't automatically focus hovered windows
followMouse = "no"; followMouse = "no";

View file

@ -1,6 +1,5 @@
{ ... }: { { ... }: {
imports = [ imports = [
./kanshi.nix
./ripgrep.nix ./ripgrep.nix
]; ];
} }

View file

@ -1,14 +0,0 @@
{ home-manager, home-manager-unstable, nixpkgs-unstable, ... }: {
# adaptiveSync requires the unstable kanshi nixpkgs and home-manager module
nixpkgs.overlays = [
(self: super: {
kanshi = nixpkgs-unstable.legacyPackages.${super.system}.kanshi;
})
];
home-manager.users.caspervk = {
disabledModules = [ "${home-manager}/modules/services/kanshi.nix" ];
imports = [ "${home-manager-unstable}/modules/services/kanshi.nix" ];
};
}