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:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user