fix quirks on multi monitors
This commit is contained in:
parent
31b26268be
commit
840f804b89
4 changed files with 27 additions and 9 deletions
|
|
@ -36,11 +36,6 @@ in
|
||||||
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
|
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
|
||||||
default-root-container-layout = "tiles";
|
default-root-container-layout = "tiles";
|
||||||
default-root-container-orientation = "auto";
|
default-root-container-orientation = "auto";
|
||||||
# exec-on-workspace-change = [
|
|
||||||
# "/bin/bash"
|
|
||||||
# "-c"
|
|
||||||
# "sketchybar --trigger aerospace_workspace_change FOCUSED=$AEROSPACE_FOCUSED_WORKSPACE"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
gaps = {
|
gaps = {
|
||||||
inner = {
|
inner = {
|
||||||
|
|
@ -50,7 +45,11 @@ in
|
||||||
outer = {
|
outer = {
|
||||||
left = 10;
|
left = 10;
|
||||||
bottom = 5;
|
bottom = 5;
|
||||||
top = 12;
|
top = [
|
||||||
|
{ monitor."LG ULTRAWIDE" = 50; }
|
||||||
|
{ monitor."ZOWIE XL LCD" = 50; }
|
||||||
|
12
|
||||||
|
];
|
||||||
right = 10;
|
right = 10;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -206,11 +205,14 @@ in
|
||||||
"4" = "main";
|
"4" = "main";
|
||||||
"5" = "main";
|
"5" = "main";
|
||||||
"6" = "main";
|
"6" = "main";
|
||||||
"7" = "main";
|
"7" = [
|
||||||
|
"2"
|
||||||
|
"main"
|
||||||
|
];
|
||||||
"8" = "main";
|
"8" = "main";
|
||||||
"9" = "main";
|
"9" = "main";
|
||||||
"10" = [
|
"10" = [
|
||||||
"secondary"
|
"2"
|
||||||
"main"
|
"main"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
vscode = mkEnableOption "Enable VSCode";
|
vscode = mkEnableOption "Enable VSCode";
|
||||||
firefox = mkEnableOption "Enable Firefox";
|
firefox = mkEnableOption "Enable Firefox";
|
||||||
chromium = mkEnableOption "Enable Chromium";
|
chromium = mkEnableOption "Enable Chromium";
|
||||||
|
aldente = mkEnableOption "Enable AlDente";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
|
|
@ -113,5 +114,10 @@
|
||||||
"chromium"
|
"chromium"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
(lib.mkIf config.custom.brew.aldente {
|
||||||
|
homebrew.casks = [
|
||||||
|
"aldente"
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
-- https://github.com/Tnixc/nix-config/blob/main/home/programs/aerospace-sketchybar/sbar-config-libs/items/aerospaces.lua
|
||||||
|
|
||||||
local Promise = require("promise")
|
local Promise = require("promise")
|
||||||
local colors = require("colors")
|
local colors = require("colors")
|
||||||
local utils = require("utils")
|
local utils = require("utils")
|
||||||
|
|
@ -27,6 +29,13 @@ local function getAllWindows()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getMonitorId(obj)
|
local function getMonitorId(obj)
|
||||||
|
if obj["monitor-name"] then
|
||||||
|
if obj["monitor-name"] == "ZOWIE XL LCD" then
|
||||||
|
return "2"
|
||||||
|
elseif obj["monitor-name"] == "LG ULTRAWIDE" then
|
||||||
|
return "1"
|
||||||
|
end
|
||||||
|
end
|
||||||
if obj["monitor-appkit-nsscreen-screens-id"] then
|
if obj["monitor-appkit-nsscreen-screens-id"] then
|
||||||
return obj["monitor-appkit-nsscreen-screens-id"]
|
return obj["monitor-appkit-nsscreen-screens-id"]
|
||||||
end
|
end
|
||||||
|
|
@ -91,7 +100,7 @@ function getState()
|
||||||
else
|
else
|
||||||
workspacestate["appicons"] = ""
|
workspacestate["appicons"] = ""
|
||||||
end
|
end
|
||||||
-- print(utils.dump(workspacestate))
|
print(utils.dump(workspacestate))
|
||||||
end
|
end
|
||||||
|
|
||||||
return newstate
|
return newstate
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@
|
||||||
vscode = true;
|
vscode = true;
|
||||||
firefox = true;
|
firefox = true;
|
||||||
chromium = true;
|
chromium = true;
|
||||||
|
aldente = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue