From 9a3120f6e067f16491c11379fb46f0c384c2bd61 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 28 Jan 2020 21:30:34 +0100 Subject: [PATCH] Remove emacs service and add ranger service --- dotfiles/systemd.org | 100 ++++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/dotfiles/systemd.org b/dotfiles/systemd.org index 9b9e64b..559faaa 100644 --- a/dotfiles/systemd.org +++ b/dotfiles/systemd.org @@ -283,29 +283,6 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- WantedBy=default.target #+END_SRC -* Emacs -** Service -:PROPERTIES: -:header-args: :tangle ~/.config/systemd/user/emacs.service -:header-args+: :comments both :mkdirp yes -:END: - -#+BEGIN_SRC conf - [Unit] - Description=Emacs text editor - Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ - - [Service] - Type=forking - ExecStart=/usr/bin/emacs --daemon - ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" - Environment=SSH_AUTH_SOCK=%t/keyring/ssh - Restart=on-failure - - [Install] - WantedBy=default.target -#+END_SRC - * Vdirsyncer ** Service :PROPERTIES: @@ -344,6 +321,27 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- WantedBy=timers.target #+end_src +* Ranger +** Service +:PROPERTIES: +:header-args: :tangle ~/.config/systemd/user/ranger.service +:header-args+: :comments both :mkdirp yes +:END: +#+begin_src conf + [Unit] + Description=Ranger using Tmux + + [Service] + Type=forking + ExecStart=/usr/bin/tmux -L ranger new -d -s ranger ranger + ExecStop=/usr/bin/tmux -L ranger kill-session -t ranger + Restart=always + RestartSec=1 + + [Install] + WantedBy=multi-user.target +#+end_src + * Weechat ** Service :PROPERTIES: @@ -364,7 +362,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- RestartSec=3 [Install] - WantedBy=default.target + WantedBy=multi-user.target #+end_src * Neomutt @@ -385,7 +383,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- RestartSec=3 [Install] - WantedBy=default.target + WantedBy=multi-user.target #+end_src * Powertop @@ -424,11 +422,11 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- RestartSec=3 [Install] - WantedBy=default.target + WantedBy=multi-user.target #+end_src * Newsboat -** Service - tmux +** Service :PROPERTIES: :header-args: :tangle ~/.config/systemd/user/newsboat.service :header-args+: :comments both :mkdirp yes @@ -446,46 +444,50 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage- RestartSec=3 [Install] - WantedBy=default.target + WantedBy=multi-user.target #+end_src + * SSH Agent +** Service :PROPERTIES: :header-args: :tangle ~/.config/systemd/user/ssh-agent.service :header-args+: :comments both :mkdirp yes :END: #+begin_src conf -[Unit] -Description=SSH key agent + [Unit] + Description=SSH key agent -[Service] -Type=simple -Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket -ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK + [Service] + Type=simple + Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket + ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK -[Install] -WantedBy=default.target + [Install] + WantedBy=default.target #+end_src + * Mopidy +** Service :PROPERTIES: :header-args: :tangle ~/.config/systemd/user/mopidy.service :header-args+: :comments both :mkdirp yes :END: #+begin_src conf -[Unit] -Description=Mopidy music server -After=avahi-daemon.service -After=dbus.service -After=network.target -After=nss-lookup.target -After=pulseaudio.service -After=remote-fs.target -After=sound.target + [Unit] + Description=Mopidy music server + After=avahi-daemon.service + After=dbus.service + After=network.target + After=nss-lookup.target + After=pulseaudio.service + After=remote-fs.target + After=sound.target -[Service] -ExecStart=/usr/bin/mopidy + [Service] + ExecStart=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf -[Install] -WantedBy=multi-user.target + [Install] + WantedBy=multi-user.target #+end_src