mirror of
https://github.com/kmein/niveum
synced 2026-03-29 16:51:07 +02:00
Compare commits
2 Commits
85ab948ccd
...
a65a4b28da
| Author | SHA1 | Date | |
|---|---|---|---|
| a65a4b28da | |||
| 41f87bdc37 |
37
configs/copyq.nix
Normal file
37
configs/copyq.nix
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
copyqConfig = pkgs.writers.writeDash "copyq-config" ''
|
||||||
|
${pkgs.copyq}/bin/copyq config check_clipboard true
|
||||||
|
${pkgs.copyq}/bin/copyq config check_selection false
|
||||||
|
${pkgs.copyq}/bin/copyq config copy_clipboard true
|
||||||
|
${pkgs.copyq}/bin/copyq config copy_selection false
|
||||||
|
|
||||||
|
${pkgs.copyq}/bin/copyq config activate_closes true
|
||||||
|
${pkgs.copyq}/bin/copyq config clipboard_notification_lines 0
|
||||||
|
${pkgs.copyq}/bin/copyq config clipboard_tab \&clipboard
|
||||||
|
${pkgs.copyq}/bin/copyq config disable_tray false
|
||||||
|
${pkgs.copyq}/bin/copyq config hide_tabs false
|
||||||
|
${pkgs.copyq}/bin/copyq config hide_toolbar false
|
||||||
|
${pkgs.copyq}/bin/copyq config item_popup_interval true
|
||||||
|
${pkgs.copyq}/bin/copyq config maxitems 1000
|
||||||
|
${pkgs.copyq}/bin/copyq config move true
|
||||||
|
${pkgs.copyq}/bin/copyq config text_wrap true
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
environment.systemPackages = [ pkgs.copyq ];
|
||||||
|
|
||||||
|
systemd.user.services.copyq = {
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
environment = {
|
||||||
|
DISPLAY = ":${toString config.services.xserver.display}";
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
SyslogIdentifier = "copyq";
|
||||||
|
ExecStart = "${pkgs.copyq}/bin/copyq";
|
||||||
|
ExecStartPost = copyqConfig;
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = "15s";
|
||||||
|
StartLimitBurst = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -199,6 +199,7 @@ in {
|
|||||||
./engiadina.nix
|
./engiadina.nix
|
||||||
./chromium.nix
|
./chromium.nix
|
||||||
./cloud.nix
|
./cloud.nix
|
||||||
|
./copyq.nix
|
||||||
./compton.nix
|
./compton.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./distrobump.nix
|
./distrobump.nix
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
let
|
let
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
playlistAPI = "prism.r:8001";
|
playlistAPI = "https://radio.lassul.us";
|
||||||
|
|
||||||
sendIRC = pkgs.writers.writeDash "send-irc" ''
|
sendIRC = pkgs.writers.writeDash "send-irc" ''
|
||||||
${pkgs.ircaids}/bin/ircsink \
|
${pkgs.ircaids}/bin/ircsink \
|
||||||
@@ -51,6 +51,9 @@ pkgs.writers.writeDashBin "pls" ''
|
|||||||
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
||||||
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
||||||
;;
|
;;
|
||||||
|
recent)
|
||||||
|
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/current" \
|
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/current" \
|
||||||
| ${pkgs.miller}/bin/mlr --ijson --oxtab cat \
|
| ${pkgs.miller}/bin/mlr --ijson --oxtab cat \
|
||||||
|
|||||||
Reference in New Issue
Block a user