forked from Shinonome/dots-hyprland
bar: add "nothing" mode (#544)
This commit is contained in:
@@ -21,12 +21,16 @@ globalThis['currentMode'] = currentShellMode;
|
||||
globalThis['cycleMode'] = () => {
|
||||
if (currentShellMode.value === 'normal') {
|
||||
currentShellMode.value = 'focus';
|
||||
} else {
|
||||
}
|
||||
else if (currentShellMode.value === 'focus') {
|
||||
currentShellMode.value = 'nothing';
|
||||
}
|
||||
else {
|
||||
currentShellMode.value = 'normal';
|
||||
}
|
||||
}
|
||||
|
||||
// // Window controls
|
||||
// Window controls
|
||||
const range = (length, start = 1) => Array.from({ length }, (_, i) => i + start);
|
||||
globalThis['toggleWindowOnAllMonitors'] = (name) => {
|
||||
range(Gdk.Display.get_default()?.get_n_monitors() || 1, 0).forEach(id => {
|
||||
|
||||
Reference in New Issue
Block a user