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" ];
|
||||
default-root-container-layout = "tiles";
|
||||
default-root-container-orientation = "auto";
|
||||
# exec-on-workspace-change = [
|
||||
# "/bin/bash"
|
||||
# "-c"
|
||||
# "sketchybar --trigger aerospace_workspace_change FOCUSED=$AEROSPACE_FOCUSED_WORKSPACE"
|
||||
# ];
|
||||
|
||||
gaps = {
|
||||
inner = {
|
||||
|
|
@ -50,7 +45,11 @@ in
|
|||
outer = {
|
||||
left = 10;
|
||||
bottom = 5;
|
||||
top = 12;
|
||||
top = [
|
||||
{ monitor."LG ULTRAWIDE" = 50; }
|
||||
{ monitor."ZOWIE XL LCD" = 50; }
|
||||
12
|
||||
];
|
||||
right = 10;
|
||||
};
|
||||
};
|
||||
|
|
@ -206,11 +205,14 @@ in
|
|||
"4" = "main";
|
||||
"5" = "main";
|
||||
"6" = "main";
|
||||
"7" = "main";
|
||||
"7" = [
|
||||
"2"
|
||||
"main"
|
||||
];
|
||||
"8" = "main";
|
||||
"9" = "main";
|
||||
"10" = [
|
||||
"secondary"
|
||||
"2"
|
||||
"main"
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
vscode = mkEnableOption "Enable VSCode";
|
||||
firefox = mkEnableOption "Enable Firefox";
|
||||
chromium = mkEnableOption "Enable Chromium";
|
||||
aldente = mkEnableOption "Enable AlDente";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
|
|
@ -113,5 +114,10 @@
|
|||
"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 colors = require("colors")
|
||||
local utils = require("utils")
|
||||
|
|
@ -27,6 +29,13 @@ local function getAllWindows()
|
|||
end
|
||||
|
||||
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
|
||||
return obj["monitor-appkit-nsscreen-screens-id"]
|
||||
end
|
||||
|
|
@ -91,7 +100,7 @@ function getState()
|
|||
else
|
||||
workspacestate["appicons"] = ""
|
||||
end
|
||||
-- print(utils.dump(workspacestate))
|
||||
print(utils.dump(workspacestate))
|
||||
end
|
||||
|
||||
return newstate
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
vscode = true;
|
||||
firefox = true;
|
||||
chromium = true;
|
||||
aldente = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue