2025-01-27 23:30:24 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
inherit (config.local.systemVars) username;
|
|
|
|
in {
|
2025-02-06 18:40:30 +01:00
|
|
|
config = mkIf (config.local.systemVars.desktop == "Hyprland") {
|
2025-01-27 23:30:24 +01:00
|
|
|
hjem.users.${username} = {
|
|
|
|
packages = [inputs.anyrun.packages.${pkgs.system}.anyrun-with-all-plugins];
|
|
|
|
files = {
|
|
|
|
".config/anyrun/config.ron".source = ./config.ron;
|
|
|
|
".config/anyrun/applications.ron".text = ''
|
|
|
|
Config(
|
|
|
|
// Also show the Desktop Actions defined in the desktop files, e.g. "New Window" from LibreWolf
|
2025-01-28 19:51:25 +01:00
|
|
|
desktop_actions: false,
|
2025-01-27 23:30:24 +01:00
|
|
|
max_entries: 5,
|
|
|
|
// The terminal used for running terminal based desktop entries, if left as `None` a static list of terminals is used
|
|
|
|
// to determine what terminal to use.
|
|
|
|
terminal: Some(Terminal(
|
|
|
|
// The main terminal command
|
2025-01-31 17:15:02 +01:00
|
|
|
command: "ghostty -e",
|
2025-01-27 23:30:24 +01:00
|
|
|
// What arguments should be passed to the terminal process to run the command correctly
|
|
|
|
// {} is replaced with the command in the desktop entry
|
|
|
|
args: "uwsm app -- {}",
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
'';
|
2025-02-02 13:55:49 +01:00
|
|
|
".config/anyrun/symbols.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: ":s",
|
|
|
|
symbols: {
|
|
|
|
"shrug": "¯\\_(ツ)_/¯",
|
|
|
|
},
|
|
|
|
max_entries: 5,
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
".config/anyrun/shell.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: ">"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
".config/anyrun/randr.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefi: ":dp",
|
|
|
|
max_entries: 5,
|
|
|
|
)
|
|
|
|
'';
|
2025-01-27 23:30:24 +01:00
|
|
|
".config/anyrun/style.css".source = ./style.css;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|