From 67ad6c4f892aade9060ab4e218685bfe331d4991 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Jul 2015 22:49:49 +0200 Subject: Added systemd units for emacs and urxvtd --- .config/systemd/user/default.target.wants/emacs.service | 1 + .config/systemd/user/default.target.wants/urxvtd.service | 1 + .config/systemd/user/emacs.service | 12 ++++++++++++ .config/systemd/user/urxvtd.service | 10 ++++++++++ 4 files changed, 24 insertions(+) create mode 120000 .config/systemd/user/default.target.wants/emacs.service create mode 120000 .config/systemd/user/default.target.wants/urxvtd.service create mode 100644 .config/systemd/user/emacs.service create mode 100644 .config/systemd/user/urxvtd.service (limited to '.config/systemd') diff --git a/.config/systemd/user/default.target.wants/emacs.service b/.config/systemd/user/default.target.wants/emacs.service new file mode 120000 index 0000000..ae565e2 --- /dev/null +++ b/.config/systemd/user/default.target.wants/emacs.service @@ -0,0 +1 @@ +/home/gkleen/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/urxvtd.service b/.config/systemd/user/default.target.wants/urxvtd.service new file mode 120000 index 0000000..a0216ce --- /dev/null +++ b/.config/systemd/user/default.target.wants/urxvtd.service @@ -0,0 +1 @@ +/home/gkleen/.config/systemd/user/urxvtd.service \ No newline at end of file diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service new file mode 100644 index 0000000..9f9e4f9 --- /dev/null +++ b/.config/systemd/user/emacs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Emacs: the extensible, self-documenting text editor + +[Service] +Type=forking +ExecStart=%s -c "emacs --daemon" +ExecStop=%s -c 'emacsclient --eval "(kill-emacs)"' +Environment=PATH=%h/bin:/var/setuid-wrappers:%h/.nix-profile/bin:%h/.nix-profile/sbin:%h/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec +Restart=always + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/urxvtd.service b/.config/systemd/user/urxvtd.service new file mode 100644 index 0000000..4efe794 --- /dev/null +++ b/.config/systemd/user/urxvtd.service @@ -0,0 +1,10 @@ +[Unit] +Description=urxvtd - urxvt terminal daemon + +[Service] +Type=simple +ExecStart=%s -c urxvtd +Restart=always + +[Install] +WantedBy=default.target -- cgit v1.2.3 From 6b2f1ba42459b7a3b62502baab88997613178d7e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Jul 2015 22:55:31 +0200 Subject: =?UTF-8?q?Dropped=20support=20for=20arbitrary=20user=20shell=20to?= =?UTF-8?q?=20please=20p=C3=B6ttering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/systemd/user/emacs.service | 4 ++-- .config/systemd/user/urxvtd.service | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '.config/systemd') diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service index 9f9e4f9..a552611 100644 --- a/.config/systemd/user/emacs.service +++ b/.config/systemd/user/emacs.service @@ -3,8 +3,8 @@ Description=Emacs: the extensible, self-documenting text editor [Service] Type=forking -ExecStart=%s -c "emacs --daemon" -ExecStop=%s -c 'emacsclient --eval "(kill-emacs)"' +ExecStart=/bin/sh -c "emacs --daemon" +ExecStop=/bin/sh -c 'emacsclient --eval "(kill-emacs)"' Environment=PATH=%h/bin:/var/setuid-wrappers:%h/.nix-profile/bin:%h/.nix-profile/sbin:%h/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec Restart=always diff --git a/.config/systemd/user/urxvtd.service b/.config/systemd/user/urxvtd.service index 4efe794..c5ff9b9 100644 --- a/.config/systemd/user/urxvtd.service +++ b/.config/systemd/user/urxvtd.service @@ -3,7 +3,7 @@ Description=urxvtd - urxvt terminal daemon [Service] Type=simple -ExecStart=%s -c urxvtd +ExecStart=/bin/sh -c urxvtd Restart=always [Install] -- cgit v1.2.3 From 5262d988777e45cb76a53da781bab4242594516b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Jul 2015 23:05:49 +0200 Subject: =?UTF-8?q?Removed=20=C2=BBautostart=C2=AB=20entries=20for=20syste?= =?UTF-8?q?md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/systemd/user/default.target.wants/emacs.service | 1 - .config/systemd/user/default.target.wants/urxvtd.service | 1 - 2 files changed, 2 deletions(-) delete mode 120000 .config/systemd/user/default.target.wants/emacs.service delete mode 120000 .config/systemd/user/default.target.wants/urxvtd.service (limited to '.config/systemd') diff --git a/.config/systemd/user/default.target.wants/emacs.service b/.config/systemd/user/default.target.wants/emacs.service deleted file mode 120000 index ae565e2..0000000 --- a/.config/systemd/user/default.target.wants/emacs.service +++ /dev/null @@ -1 +0,0 @@ -/home/gkleen/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/urxvtd.service b/.config/systemd/user/default.target.wants/urxvtd.service deleted file mode 120000 index a0216ce..0000000 --- a/.config/systemd/user/default.target.wants/urxvtd.service +++ /dev/null @@ -1 +0,0 @@ -/home/gkleen/.config/systemd/user/urxvtd.service \ No newline at end of file -- cgit v1.2.3 From 8f0c21a828f9f2b854f5850b454a3b0b76476493 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 19:29:03 +0200 Subject: Moved urxvtd back into xmonad; Fixed spawnKeychain in xmonad --- .config/systemd/user/urxvtd.service | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .config/systemd/user/urxvtd.service (limited to '.config/systemd') diff --git a/.config/systemd/user/urxvtd.service b/.config/systemd/user/urxvtd.service deleted file mode 100644 index c5ff9b9..0000000 --- a/.config/systemd/user/urxvtd.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=urxvtd - urxvt terminal daemon - -[Service] -Type=simple -ExecStart=/bin/sh -c urxvtd -Restart=always - -[Install] -WantedBy=default.target -- cgit v1.2.3