l browsers: add cx- command for copy & paste

This commit is contained in:
lassulus 2018-04-05 17:35:25 +02:00
parent 8ff594c92f
commit f079302590

View File

@ -26,7 +26,12 @@ let
lass.xjail.${name} = {
inherit script groups dpi;
};
environment.systemPackages = [ config.lass.xjail-bins.${name} ];
environment.systemPackages = [
config.lass.xjail-bins.${name}
(pkgs.writeDashBin "cx-${name}" ''
DISPLAY=:${toString (genid_signed name)} ${pkgs.xclip}/bin/xclip -o | DISPLAY=:0 ${pkgs.xclip}/bin/xclip
'')
];
lass.browser.paths.${name} = {
path = config.lass.xjail-bins.${name};
inherit precedence;