mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: reorganise repo
This commit is contained in:
parent
b391e03c87
commit
67a78879db
278 changed files with 102 additions and 182 deletions
13
home/dot_config/systemd/user/emacs-daemon.service
Normal file
13
home/dot_config/systemd/user/emacs-daemon.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Emacs text editor
|
||||
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/emacs --daemon
|
||||
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
|
||||
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
13
home/dot_config/systemd/user/keyd-app.service
Normal file
13
home/dot_config/systemd/user/keyd-app.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Keyd Application Specific Mapping
|
||||
Documentation=man:keyd-application-mapper(1) https://github.com/rvaiya/keyd
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/keyd-application-mapper -d
|
||||
ExecStop=pkill keyd-applicatio
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
27
home/dot_config/systemd/user/mihomo.service
Normal file
27
home/dot_config/systemd/user/mihomo.service
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# ~/.config/systemd/user/mihomo.service
|
||||
|
||||
[Unit]
|
||||
Description=mihomo Service
|
||||
# This ensures the service only starts after your network is online.
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# The main process to run.
|
||||
# The WorkingDirectory is set to your user's home directory.
|
||||
# This assumes your mihomo configuration is located at ~/.config/mihomo/
|
||||
WorkingDirectory=%h/.config/mihomo
|
||||
# It's common for user-level applications to be in a directory like ~/.local/bin
|
||||
# or simply in your PATH.
|
||||
ExecStart=mihomo
|
||||
|
||||
# This tells systemd to restart the service if it stops unexpectedly.
|
||||
Restart=on-failure
|
||||
# This sets the restart interval to 5 seconds.
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
# This unit should be active when the user's session is active,
|
||||
# ensuring it starts when you log in.
|
||||
WantedBy=default.target
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue