new wm, hyprland gone
This commit is contained in:
parent
003f37bfbd
commit
cb4b22b4e5
41 changed files with 1145 additions and 1364 deletions
40
modules/desktop/wl-clip-persist.nix
Normal file
40
modules/desktop/wl-clip-persist.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.wl-clip-persist;
|
||||
in {
|
||||
options.modules.desktop.wl-clip-persist = {
|
||||
enable = mkEnableOption "Enable wl-clip-persist, keep clipboard contents after app exit";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.wl-clip-persist;
|
||||
};
|
||||
clipboard = mkOption {
|
||||
description = "clipboard type to persist";
|
||||
default = "regular";
|
||||
type = types.enum ["regular" "primary" "both"];
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.systemd.user.services.wl-clip-persist = {
|
||||
Unit = {
|
||||
Description = "wl-clip-persist, keep clipboard contents after app exit";
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe cfg.package} --clipboard ${cfg.clipboard}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue