initial commit
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.modules
|
||||
import qs.services
|
||||
|
||||
ShellRoot {
|
||||
// One panel per screen. Variants tracks screen hotplug, so panels appear and
|
||||
// disappear with monitors without a reload.
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
Bar {}
|
||||
}
|
||||
|
||||
// Lets the menus be bound to keys in the compositor, e.g.
|
||||
// bindsym $mod+d exec qs -c att_menu ipc call launcher toggle
|
||||
// `close` closes whichever menu is open — only one ever is.
|
||||
IpcHandler {
|
||||
target: "launcher"
|
||||
|
||||
function toggle(): void {
|
||||
Session.toggle("launcher", "");
|
||||
}
|
||||
|
||||
function open(): void {
|
||||
Session.open("launcher", "");
|
||||
}
|
||||
|
||||
function close(): void {
|
||||
Session.close();
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "power"
|
||||
|
||||
function toggle(): void {
|
||||
Session.toggle("power", "");
|
||||
}
|
||||
|
||||
function open(): void {
|
||||
Session.open("power", "");
|
||||
}
|
||||
|
||||
function close(): void {
|
||||
Session.close();
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "wifi"
|
||||
|
||||
function toggle(): void {
|
||||
Session.toggle("wifi", "");
|
||||
}
|
||||
|
||||
function open(): void {
|
||||
Session.open("wifi", "");
|
||||
}
|
||||
|
||||
function close(): void {
|
||||
Session.close();
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "bluetooth"
|
||||
|
||||
function toggle(): void {
|
||||
Session.toggle("bluetooth", "");
|
||||
}
|
||||
|
||||
function open(): void {
|
||||
Session.open("bluetooth", "");
|
||||
}
|
||||
|
||||
function close(): void {
|
||||
Session.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user