[Feature] Change shell mode per monitor (#736)

This commit is contained in:
end-4
2024-08-15 20:54:50 +07:00
committed by GitHub
3 changed files with 38 additions and 11 deletions
@@ -221,6 +221,12 @@ let configOptions = {
'cycleTab': "Ctrl+Tab",
}
},
'bar': {
// Array of bar modes for each monitor. Hit Ctrl+Alt+Slash to cycle.
// Modes: "normal", "focus" (workspace indicator only), "nothing"
// Example for four monitors: ["normal", "focus", "normal", "nothing"]
'modes': ["normal"]
},
}
// Override defaults with user's options
+1 -2
View File
@@ -101,8 +101,7 @@ export const Bar = async (monitor = 0) => {
'nothing': nothingContent,
},
setup: (self) => self.hook(currentShellMode, (self) => {
self.shown = currentShellMode.value;
self.shown = currentShellMode.value[monitor];
})
}),
});