summaryrefslogtreecommitdiffstats
path: root/lass/2configs/browsers.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-04-05 17:35:25 +0200
committerlassulus <lassulus@lassul.us>2018-04-05 17:35:27 +0200
commitf07930259080716fd8e325aae457d4bfaaecb99b (patch)
tree0008731e3e56e2ab7764645eccc4968648ac3289 /lass/2configs/browsers.nix
parent8ff594c92fb404e13f240d19a76d34e0d1db6a29 (diff)
l browsers: add cx- command for copy & paste
Diffstat (limited to 'lass/2configs/browsers.nix')
-rw-r--r--lass/2configs/browsers.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/lass/2configs/browsers.nix b/lass/2configs/browsers.nix
index 91ee08bfd..3030d8faf 100644
--- a/lass/2configs/browsers.nix
+++ b/lass/2configs/browsers.nix
@@ -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;