1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

[FIX] Allow setting quickshell package (#166)

* feat: Add config option to set quickshell package

* refactor: Use configured quickshell package for ipc calls

* fix: Fixes niri binds

---------

Co-authored-by: Eduardo Barreto Alexandre <git@dummy.com>
This commit is contained in:
Eduardo B. A.
2025-09-05 23:24:07 -03:00
committed by GitHub
parent 353ee355a3
commit 9ba3bfb4db

View File

@@ -65,11 +65,11 @@
}; };
}; };
programs.niri.settings = lib.mkMerge let programs.niri.settings = lib.mkMerge [
quickShellIpc = spawn "${cfg.quickshell.package}/bin/qs" "-c" "DankMaterialShell" "ipc" "call";
in [
(lib.mkIf cfg.enableKeybinds { (lib.mkIf cfg.enableKeybinds {
binds = { binds = with config.lib.niri.actions; let
quickShellIpc = spawn "${cfg.quickshell.package}/bin/qs" "-c" "DankMaterialShell" "ipc" "call";
in {
"Mod+Space".action = quickShellIpc "spotlight" "toggle"; "Mod+Space".action = quickShellIpc "spotlight" "toggle";
"Mod+V".action = quickShellIpc "clipboard" "toggle"; "Mod+V".action = quickShellIpc "clipboard" "toggle";
"Mod+M".action = quickShellIpc "processlist" "toggle"; "Mod+M".action = quickShellIpc "processlist" "toggle";