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 36 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 systemd.user.services.copyq = { 22 wantedBy = [ "graphical-session.target" ]; 23 requires = [ "xmonad.service" ]; 24 environment = { 25 DISPLAY = ":${toString config.services.xserver.display}"; 26 }; 27 serviceConfig = { 28 SyslogIdentifier = "copyq"; 29 ExecStart = "${pkgs.copyq}/bin/copyq"; 30 ExecStartPost = copyqConfig; 31 Restart = "always"; 32 RestartSec = "15s"; 33 StartLimitBurst = 0; 34 }; 35 }; 36}