update cross-module package references, nuke execOnStart
This commit is contained in:
parent
6d61976106
commit
ff647de9ce
13 changed files with 135 additions and 73 deletions
|
@ -9,28 +9,28 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.clipse;
|
||||
example = "pkgs.clipse";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# runtime dependencies
|
||||
user.packages = with pkgs; [ wl-clipboard ];
|
||||
hm.systemd.user.services.clipse = {
|
||||
Unit = {
|
||||
Description = "clipse, a generic clipboard manager";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
modules.desktop.execOnStart = [ "${lib.getExe cfg.package} -listen-shell" ];
|
||||
hm.wayland.windowManager.hyprland.settings = let
|
||||
class = "clipse";
|
||||
in {
|
||||
windowrulev2 = [
|
||||
"float, class:^${class}$"
|
||||
"size 622 652, class:^${class}$"
|
||||
"center, class:^${class}$"
|
||||
"stayfocused, class:^${class}$"
|
||||
"dimaround, class:^${class}$"
|
||||
];
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
bind = [
|
||||
"$mod, V, exec, ${lib.getExe pkgs.wezterm} start --class ${class} -e '${lib.getExe cfg.package}'"
|
||||
];
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe cfg.package} -listen-shell";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue