diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 22:49:49 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 22:49:49 +0200 |
commit | 67ad6c4f892aade9060ab4e218685bfe331d4991 (patch) | |
tree | 3f3e0679330a8ee34e4388d192b76f15e846875b | |
parent | 4cb0c1bfd386a3a9bf69bc94d8d394988565dffe (diff) | |
download | dotfiles-67ad6c4f892aade9060ab4e218685bfe331d4991.tar dotfiles-67ad6c4f892aade9060ab4e218685bfe331d4991.tar.gz dotfiles-67ad6c4f892aade9060ab4e218685bfe331d4991.tar.bz2 dotfiles-67ad6c4f892aade9060ab4e218685bfe331d4991.tar.xz dotfiles-67ad6c4f892aade9060ab4e218685bfe331d4991.zip |
Added systemd units for emacs and urxvtd
l--------- | .config/systemd/user/default.target.wants/emacs.service | 1 | ||||
l--------- | .config/systemd/user/default.target.wants/urxvtd.service | 1 | ||||
-rw-r--r-- | .config/systemd/user/emacs.service | 12 | ||||
-rw-r--r-- | .config/systemd/user/urxvtd.service | 10 |
4 files changed, 24 insertions, 0 deletions
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 @@ | |||
1 | [Unit] | ||
2 | Description=Emacs: the extensible, self-documenting text editor | ||
3 | |||
4 | [Service] | ||
5 | Type=forking | ||
6 | ExecStart=%s -c "emacs --daemon" | ||
7 | ExecStop=%s -c 'emacsclient --eval "(kill-emacs)"' | ||
8 | 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 | ||
9 | Restart=always | ||
10 | |||
11 | [Install] | ||
12 | 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 @@ | |||
1 | [Unit] | ||
2 | Description=urxvtd - urxvt terminal daemon | ||
3 | |||
4 | [Service] | ||
5 | Type=simple | ||
6 | ExecStart=%s -c urxvtd | ||
7 | Restart=always | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=default.target | ||