This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / copyq.nix
1.3 kB 37 lines
1{ config, pkgs, ... }: 2let 3 copyqConfig = pkgs.writeDash "copyq-config" '' 4 ${pkgs.copyq}/bin/copyq config check_clipboard true 5 ${pkgs.copyq}/bin/copyq config check_selection true 6 ${pkgs.copyq}/bin/copyq config copy_clipboard true 7 ${pkgs.copyq}/bin/copyq config copy_selection true 8 9 ${pkgs.copyq}/bin/copyq config activate_closes true 10 ${pkgs.copyq}/bin/copyq config clipboard_notification_lines 0 11 ${pkgs.copyq}/bin/copyq config clipboard_tab \&clipboard 12 ${pkgs.copyq}/bin/copyq config disable_tray true 13 ${pkgs.copyq}/bin/copyq config hide_tabs true 14 ${pkgs.copyq}/bin/copyq config hide_toolbar true 15 ${pkgs.copyq}/bin/copyq config item_popup_interval true 16 ${pkgs.copyq}/bin/copyq config maxitems 1000 17 ${pkgs.copyq}/bin/copyq config move true 18 ${pkgs.copyq}/bin/copyq config text_wrap true 19 ''; 20in 21{ 22 systemd.user.services.copyq = { 23 wantedBy = [ "graphical-session.target" ]; 24 requires = [ "xmonad.service" ]; 25 environment = { 26 DISPLAY = ":${toString config.services.xserver.display}"; 27 }; 28 serviceConfig = { 29 SyslogIdentifier = "copyq"; 30 ExecStart = "${pkgs.copyq}/bin/copyq"; 31 ExecStartPost = copyqConfig; 32 Restart = "always"; 33 RestartSec = "15s"; 34 StartLimitBurst = 0; 35 }; 36 }; 37}