clipse
This commit is contained in:
parent
d1f61ed5e1
commit
4291e0cbb4
2 changed files with 38 additions and 0 deletions
|
@ -56,6 +56,7 @@
|
|||
batsignal.enable = true;
|
||||
wob.enable = true;
|
||||
gammastep.enable = true;
|
||||
clipse.enable = true;
|
||||
|
||||
# display manager
|
||||
sddm.enable = true;
|
||||
|
|
37
modules/desktop/clipse.nix
Normal file
37
modules/desktop/clipse.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.clipse;
|
||||
in {
|
||||
options.modules.desktop.clipse = {
|
||||
enable = mkEnableOption "Enable clipse, a generic clipboard manager";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.clipse;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# runtime dependencies
|
||||
user.packages = with pkgs; [ wl-clipboard ];
|
||||
|
||||
hm.wayland.windowManager.hyprland.settings = let
|
||||
class = "clipse";
|
||||
in {
|
||||
exec-once = [ "${lib.getExe cfg.package} -listen-shell" ];
|
||||
|
||||
windowrulev2 = [
|
||||
"float, class:^${class}$"
|
||||
"size 622 652, class:^${class}$"
|
||||
"center, class:^${class}$"
|
||||
"stayfocused, class:^${class}$"
|
||||
"dimaround, class:^${class}$"
|
||||
];
|
||||
|
||||
bind = [
|
||||
"$mod, V, exec, ${lib.getExe pkgs.wezterm} start --class ${class} -e '${lib.getExe cfg.package}'"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue