Remove emacs service and add ranger service

This commit is contained in:
Thomas Dehaeze 2020-01-28 21:30:34 +01:00
parent f46c0586aa
commit 9a3120f6e0

View File

@ -283,29 +283,6 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=default.target WantedBy=default.target
#+END_SRC #+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 * Vdirsyncer
** Service ** Service
:PROPERTIES: :PROPERTIES:
@ -344,6 +321,27 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=timers.target WantedBy=timers.target
#+end_src #+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 * Weechat
** Service ** Service
:PROPERTIES: :PROPERTIES:
@ -364,7 +362,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=default.target WantedBy=multi-user.target
#+end_src #+end_src
* Neomutt * Neomutt
@ -385,7 +383,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=default.target WantedBy=multi-user.target
#+end_src #+end_src
* Powertop * Powertop
@ -424,11 +422,11 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=default.target WantedBy=multi-user.target
#+end_src #+end_src
* Newsboat * Newsboat
** Service - tmux ** Service
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/newsboat.service :header-args: :tangle ~/.config/systemd/user/newsboat.service
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
@ -446,9 +444,11 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=default.target WantedBy=multi-user.target
#+end_src #+end_src
* SSH Agent * SSH Agent
** Service
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/ssh-agent.service :header-args: :tangle ~/.config/systemd/user/ssh-agent.service
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
@ -466,7 +466,9 @@ ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install] [Install]
WantedBy=default.target WantedBy=default.target
#+end_src #+end_src
* Mopidy * Mopidy
** Service
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/mopidy.service :header-args: :tangle ~/.config/systemd/user/mopidy.service
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
@ -484,7 +486,7 @@ After=remote-fs.target
After=sound.target After=sound.target
[Service] [Service]
ExecStart=/usr/bin/mopidy ExecStart=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target