home/sway: move display configuration to hosts

This commit is contained in:
Aly Raffauf 2024-07-21 22:25:42 -04:00
parent fdd4b61a43
commit a95c7d5ee3
7 changed files with 33 additions and 32 deletions

View file

@ -231,23 +231,6 @@ in {
++ lib.optional cfg.desktop.sway.randomWallpaper {command = "${scripts.randomWallpaper}";}
++ lib.optional (!cfg.desktop.sway.randomWallpaper) {command = "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";};
output = {
"BOE 0x095F Unknown".scale = "1.5";
"LG Display 0x0569 Unknown".scale = "1.0";
"Samsung Display Corp. 0x4152 Unknown".scale = "2.0";
"LG Electronics LG ULTRAWIDE 311NTAB5M720".scale = "1.25";
"Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = {
scale = "1.5";
pos = "-2560 0";
};
"HP Inc. HP 24mh 3CM037248S " = {
scale = "1.0";
pos = "-1920 0";
};
};
floating.criteria = [
{app_id = ".blueman-manager-wrapped";}
{app_id = "Bitwarden";}
@ -340,7 +323,7 @@ in {
blur enable
blur_passes 1
corner_radius 10
# corner_radius 10
shadows enable
shadows_on_csd enable
shadow_color ${cfg.theme.colors.shadow}

View file

@ -14,6 +14,18 @@
"workspace 10: zoom" = [{class = "zoom";} {app_id = "Zoom";}];
};
output = {
"Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = {
scale = "1.5";
pos = "-2560 0";
};
"HP Inc. HP 24mh 3CM037248S " = {
scale = "1.0";
pos = "-1920 0";
};
};
startup = [
{command = ''${lib.getExe' pkgs.keepassxc "keepassxc"}'';}
];

View file

@ -1,6 +1,7 @@
{
home-manager.sharedModules = [
{
wayland.windowManager.sway.config.output = {"BOE 0x095F Unknown".scale = "1.5";};
ar.home.desktop.hyprland.laptopMonitors = ["desc:BOE 0x095F,preferred,auto,1.566667"];
}
];

View file

@ -1,6 +1,8 @@
{
home-manager.sharedModules = [
{
wayland.windowManager.sway.config.output = {"BOE 0x095F Unknown".scale = "1.5";};
ar.home = {
desktop.hyprland.laptopMonitors = ["desc:BOE 0x095F,preferred,auto,1.566667"];

View file

@ -7,6 +7,7 @@
home-manager = {
sharedModules = [
{
wayland.windowManager.sway.config.output = {"LG Electronics LG ULTRAWIDE 311NTAB5M720".scale = "1.25";};
xdg.userDirs.music = "/mnt/Media/Music";
ar.home = {

View file

@ -6,7 +6,8 @@
}: {
home-manager.sharedModules = [
{
wayland.windowManager.hyprland.settings = {
wayland.windowManager = {
hyprland.settings = {
bind = [
",xf86launch4,exec,${lib.getExe self.inputs.pp-adjuster.packages.${pkgs.system}.default}"
",xf86launch2,exec,${lib.getExe pkgs.playerctl} play-pause"
@ -22,7 +23,8 @@
};
};
ar.home.desktop.sway.enable = true;
sway.config.output = {"Samsung Display Corp. 0x4152 Unknown".scale = "2.0";};
};
ar.home.desktop.hyprland = {
laptopMonitors = ["desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0"];

View file

@ -3,7 +3,7 @@
{
gtk.font.size = lib.mkForce 14;
home.pointerCursor.size = lib.mkForce 24;
programs.vscode.userSettings."editor.fontSize" = lib.mkForce "16";
wayland.windowManager.sway.config.output = {"LG Display 0x0569 Unknown".scale = "1.0";};
ar.home = {
desktop.hyprland.laptopMonitors = ["desc:LG Display 0x0569,preferred,auto,1.0"];