mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-05-01 06:19:12 +00:00
nixos/workflows/a-happy-gnome: add autostart Kando extra arguments module option
This commit is contained in:
parent
2614280b9e
commit
8bb50749f9
@ -12,14 +12,6 @@ let
|
|||||||
# The application launcher for your one-handed keyboard handling (the
|
# The application launcher for your one-handed keyboard handling (the
|
||||||
# other is in the mouse, if you're thinking something else).
|
# other is in the mouse, if you're thinking something else).
|
||||||
kando
|
kando
|
||||||
(makeDesktopItem {
|
|
||||||
name = "kando";
|
|
||||||
desktopName = "Kando";
|
|
||||||
destination = "/etc/xdg/autostart";
|
|
||||||
exec = "${lib.getExe kando} --gapplication-service";
|
|
||||||
icon = "kando";
|
|
||||||
genericName = "Pie Menu";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Valent...ines 'tis season to share... phone data or something.
|
# Valent...ines 'tis season to share... phone data or something.
|
||||||
valent
|
valent
|
||||||
@ -164,6 +156,17 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
kando = {
|
||||||
|
extraArgs = lib.mkOption {
|
||||||
|
type = with lib.types; listOf str;
|
||||||
|
default = [ ];
|
||||||
|
description = ''
|
||||||
|
A list of extra arguments to be added to Kando autostart service.
|
||||||
|
'';
|
||||||
|
example = [ "--settings" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
paperwm = {
|
paperwm = {
|
||||||
workspaces = lib.mkOption {
|
workspaces = lib.mkOption {
|
||||||
type = with lib.types; attrsOf (submodule workspaceSubmodule);
|
type = with lib.types; attrsOf (submodule workspaceSubmodule);
|
||||||
@ -235,6 +238,16 @@ in {
|
|||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.autostart.entries = {
|
||||||
|
"${workflowName}-kando" = {
|
||||||
|
name = "kando";
|
||||||
|
desktopName = "Kando";
|
||||||
|
exec = "${lib.getExe pkgs.kando} --gapplication-service ${lib.concatStringsSep " " cfg.kando.extraArgs}";
|
||||||
|
icon = "kando";
|
||||||
|
genericName = "Pie Menu";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
workflows.workflows.a-happy-gnome.paperwm.workspaces =
|
workflows.workflows.a-happy-gnome.paperwm.workspaces =
|
||||||
lib.mkIf cfg.paperwm.enablePresetWorkspaces {
|
lib.mkIf cfg.paperwm.enablePresetWorkspaces {
|
||||||
media = {
|
media = {
|
||||||
|
Loading…
Reference in New Issue
Block a user