aurora15f3e25
aurora: bar toggle ipc, super+b toggles bar, super+shift+b restarts
+5 −1
2 files changed
- M .config/hypr/source/keybinds.lua +2 −1
- M .config/quickshell/aurora/shell.qml +3 −0
| @@ -31,7 +31,8 @@ hl.bind( | |||
| 31 | 31 | -- Aurora Shell | |
| 32 | 32 | ----------------- | |
| 33 | 33 | hl.bind(mainMod .. " + c", hl.dsp.exec_cmd("qs -c aurora ipc call shell toggle")) | |
| 34 | − | hl.bind(mainMod .. " + b", hl.dsp.exec_cmd("systemctl --user restart aurora")) | |
| 34 | + | hl.bind(mainMod .. " + b", hl.dsp.exec_cmd("qs -c aurora ipc call shell bar")) | |
| 35 | + | hl.bind(mainMod .. " + SHIFT + b", hl.dsp.exec_cmd("systemctl --user restart aurora")) | |
| 35 | 36 | ||
| 36 | 37 | hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu)) | |
| 37 | 38 | -- bind = $mainMod SHIFT, P, pseudo, # dwindle | |
| @@ -17,6 +17,7 @@ ShellRoot { | |||
| 17 | 17 | readonly property var focusedScr: focusedScreen() | |
| 18 | 18 | // centered overlay windows (wallpaper picker, clipboard, ...): one at a time, on the focused monitor | |
| 19 | 19 | property string overlay: "" | |
| 20 | + | property bool barShown: true // `bar` IPC (SUPER+B); not persisted, a restart shows it again | |
| 20 | 21 | property var overlayScreen: focusedScreen() | |
| 21 | 22 | readonly property var tabNames: ["home", "audio", "net", "bt", "sys", "notif", "settings"] | |
| 22 | 23 | ||
| @@ -85,6 +86,7 @@ ShellRoot { | |||
| 85 | 86 | Variants { | |
| 86 | 87 | model: Quickshell.screens | |
| 87 | 88 | Bar { | |
| 89 | + | visible: root.barShown | |
| 88 | 90 | onTogglePanel: (name, scr) => root.togglePanel(name, scr) | |
| 89 | 91 | onToggleOverlay: (name, scr) => root.toggleOverlay(name, scr) | |
| 90 | 92 | } | |
| @@ -158,6 +160,7 @@ ShellRoot { | |||
| 158 | 160 | function clip(): void { root.toggleOverlay("clip") } | |
| 159 | 161 | function wall(): void { root.toggleOverlay("wall") } | |
| 160 | 162 | function power(): void { root.toggleOverlay("power") } | |
| 163 | + | function bar(): void { root.barShown = !root.barShown } | |
| 161 | 164 | function wallrandom(): void { Wall.random() } | |
| 162 | 165 | function wallset(path: string): void { Wall.apply(path) } // absolute path (setwall resolves it) | |
| 163 | 166 | function rec(mode: string): void { root.close(); Rec.toggle(mode === "region" ? "region" : "screen") } // screen (default) | region | |