From e017568b41999679f25402e8e327a39dcf8db8db Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 24 Mar 2020 22:03:22 +0000 Subject: [PATCH] systemd: parameterise autocutsel service Enable three invocations, one for each kind of clipboard With this, they should all now stay in sync (I hope) --- .config/systemd/user/autocutsel-primary.service | 10 ---------- .config/systemd/user/autocutsel.service | 10 ---------- .config/systemd/user/autocutsel@.service | 12 ++++++++++++ .../autocutsel@CLIPBOARD.service | 1 + .../autocutsel@PRIMARY.service | 1 + .../autocutsel@SECONDARY.service | 1 + 6 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 .config/systemd/user/autocutsel-primary.service delete mode 100644 .config/systemd/user/autocutsel.service create mode 100644 .config/systemd/user/autocutsel@.service create mode 120000 .config/systemd/user/graphical-session.target.wants/autocutsel@CLIPBOARD.service create mode 120000 .config/systemd/user/graphical-session.target.wants/autocutsel@PRIMARY.service create mode 120000 .config/systemd/user/graphical-session.target.wants/autocutsel@SECONDARY.service diff --git a/.config/systemd/user/autocutsel-primary.service b/.config/systemd/user/autocutsel-primary.service deleted file mode 100644 index 99d5dde..0000000 --- a/.config/systemd/user/autocutsel-primary.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=autocutsel -selection primary -PartOf=graphical-session.target - -[Service] -ExecStart=/usr/bin/autocutsel -selection PRIMARY - -[Install] -WantedBy=graphical-session.target - diff --git a/.config/systemd/user/autocutsel.service b/.config/systemd/user/autocutsel.service deleted file mode 100644 index da2b70b..0000000 --- a/.config/systemd/user/autocutsel.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=autocutsel -PartOf=graphical-session.target - -[Service] -ExecStart=/usr/bin/autocutsel - -[Install] -WantedBy=graphical-session.target - diff --git a/.config/systemd/user/autocutsel@.service b/.config/systemd/user/autocutsel@.service new file mode 100644 index 0000000..5b87d7a --- /dev/null +++ b/.config/systemd/user/autocutsel@.service @@ -0,0 +1,12 @@ +[Unit] +Description=autocutsel selection %i +PartOf=graphical-session.target +Requires=xorg.target +After=xorg.target + +[Service] +ExecStart=/usr/bin/autocutsel -selection %i + +[Install] +WantedBy=graphical-session.target + diff --git a/.config/systemd/user/graphical-session.target.wants/autocutsel@CLIPBOARD.service b/.config/systemd/user/graphical-session.target.wants/autocutsel@CLIPBOARD.service new file mode 120000 index 0000000..2d2794e --- /dev/null +++ b/.config/systemd/user/graphical-session.target.wants/autocutsel@CLIPBOARD.service @@ -0,0 +1 @@ +/home/frebib/.config/systemd/user/autocutsel@.service \ No newline at end of file diff --git a/.config/systemd/user/graphical-session.target.wants/autocutsel@PRIMARY.service b/.config/systemd/user/graphical-session.target.wants/autocutsel@PRIMARY.service new file mode 120000 index 0000000..2d2794e --- /dev/null +++ b/.config/systemd/user/graphical-session.target.wants/autocutsel@PRIMARY.service @@ -0,0 +1 @@ +/home/frebib/.config/systemd/user/autocutsel@.service \ No newline at end of file diff --git a/.config/systemd/user/graphical-session.target.wants/autocutsel@SECONDARY.service b/.config/systemd/user/graphical-session.target.wants/autocutsel@SECONDARY.service new file mode 120000 index 0000000..2d2794e --- /dev/null +++ b/.config/systemd/user/graphical-session.target.wants/autocutsel@SECONDARY.service @@ -0,0 +1 @@ +/home/frebib/.config/systemd/user/autocutsel@.service \ No newline at end of file