Krolyxon
Commit 15f3e25

Branches

Refs →

aurora15f3e25

aurora: bar toggle ipc, super+b toggles bar, super+shift+b restarts

Author
krolyxon
Date
2026-10-19 21:43 +0530
Parent
a215858
Commit
15f3e25804f2846f586fb2520f2ce7dc241dba55

+5 −1

2 files changed

  1. M .config/hypr/source/keybinds.lua +2 −1
  2. M .config/quickshell/aurora/shell.qml +3 −0
M .config/hypr/source/keybinds.lua View
@@ -31,7 +31,8 @@ hl.bind(
3131 -- Aurora Shell
3232 -----------------
3333 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"))
3536
3637 hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu))
3738 -- bind = $mainMod SHIFT, P, pseudo, # dwindle
M .config/quickshell/aurora/shell.qml View
@@ -17,6 +17,7 @@ ShellRoot {
1717 readonly property var focusedScr: focusedScreen()
1818 // centered overlay windows (wallpaper picker, clipboard, ...): one at a time, on the focused monitor
1919 property string overlay: ""
20+ property bool barShown: true // `bar` IPC (SUPER+B); not persisted, a restart shows it again
2021 property var overlayScreen: focusedScreen()
2122 readonly property var tabNames: ["home", "audio", "net", "bt", "sys", "notif", "settings"]
2223
@@ -85,6 +86,7 @@ ShellRoot {
8586 Variants {
8687 model: Quickshell.screens
8788 Bar {
89+ visible: root.barShown
8890 onTogglePanel: (name, scr) => root.togglePanel(name, scr)
8991 onToggleOverlay: (name, scr) => root.toggleOverlay(name, scr)
9092 }
@@ -158,6 +160,7 @@ ShellRoot {
158160 function clip(): void { root.toggleOverlay("clip") }
159161 function wall(): void { root.toggleOverlay("wall") }
160162 function power(): void { root.toggleOverlay("power") }
163+ function bar(): void { root.barShown = !root.barShown }
161164 function wallrandom(): void { Wall.random() }
162165 function wallset(path: string): void { Wall.apply(path) } // absolute path (setwall resolves it)
163166 function rec(mode: string): void { root.close(); Rec.toggle(mode === "region" ? "region" : "screen") } // screen (default) | region