diff options
author | A Farzat <a@farzat.xyz> | 2024-10-18 12:10:55 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-11-02 16:11:11 +0900 |
commit | ed66f94e59853a8bc11983fb82bf320973e515e9 (patch) | |
tree | 970ca4b37d35ebe8d3008045fa2bf0d59e7cfe29 /.config | |
parent | 538d9d4eb2994945a648fbb8c78d955a744eb5a8 (diff) | |
download | dotfiles-ed66f94e59853a8bc11983fb82bf320973e515e9.tar.gz dotfiles-ed66f94e59853a8bc11983fb82bf320973e515e9.zip |
Add systemd config
Diffstat (limited to '.config')
-rw-r--r-- | .config/systemd/user/.gitignore | 1 | ||||
-rw-r--r-- | .config/systemd/user/clipper.service | 16 | ||||
-rw-r--r-- | .config/systemd/user/dunst.service | 9 | ||||
-rw-r--r-- | .config/systemd/user/playerctld.service | 16 | ||||
-rw-r--r-- | .config/systemd/user/speakersawake.service | 7 | ||||
-rw-r--r-- | .config/systemd/user/speakersawake.timer | 9 | ||||
-rw-r--r-- | .config/systemd/user/wallpaper-continuous.service | 15 |
7 files changed, 73 insertions, 0 deletions
diff --git a/.config/systemd/user/.gitignore b/.config/systemd/user/.gitignore new file mode 100644 index 0000000..503ada6 --- /dev/null +++ b/.config/systemd/user/.gitignore @@ -0,0 +1 @@ +*.target.wants diff --git a/.config/systemd/user/clipper.service b/.config/systemd/user/clipper.service new file mode 100644 index 0000000..10614bf --- /dev/null +++ b/.config/systemd/user/clipper.service @@ -0,0 +1,16 @@ +[Unit] +Description=Clipper clipboard access for local and remote tmux sessions +Documentation=https://github.com/wincent/clipper + +[Service] +Environment=DISPLAY=:0 + +ExecStart=/usr/bin/clipper + +Restart=always +# Restart service after 10 seconds if service crashes +RestartSec=10 +SyslogIdentifier=clipper + +[Install] +WantedBy=basic.target diff --git a/.config/systemd/user/dunst.service b/.config/systemd/user/dunst.service new file mode 100644 index 0000000..ff2b779 --- /dev/null +++ b/.config/systemd/user/dunst.service @@ -0,0 +1,9 @@ +[Unit] +Description=Dunst notification daemon +Documentation=man:dunst(1) +PartOf=graphical-session.target + +[Service] +Type=dbus +BusName=org.freedesktop.Notifications +ExecStart=/usr/bin/dunst diff --git a/.config/systemd/user/playerctld.service b/.config/systemd/user/playerctld.service new file mode 100644 index 0000000..3d93a28 --- /dev/null +++ b/.config/systemd/user/playerctld.service @@ -0,0 +1,16 @@ +[Unit] +Description=Playerctl control media players via MPRIS +Documentation=https://github.com/altdesktop/playerctl + +[Service] +Environment=DISPLAY=:0 + +ExecStart=/usr/bin/playerctld + +Restart=always +# Restart service after 10 seconds if service crashes +RestartSec=10 +SyslogIdentifier=playerctld + +[Install] +WantedBy=basic.target diff --git a/.config/systemd/user/speakersawake.service b/.config/systemd/user/speakersawake.service new file mode 100644 index 0000000..1d39880 --- /dev/null +++ b/.config/systemd/user/speakersawake.service @@ -0,0 +1,7 @@ +[Unit] +Description=Play a 10 Hz sound for 5 seconds +Wants=sound.target +After=sound.target + +[Service] +ExecStart=/home/farzat/bin/speakersawake.sh diff --git a/.config/systemd/user/speakersawake.timer b/.config/systemd/user/speakersawake.timer new file mode 100644 index 0000000..b27bbd4 --- /dev/null +++ b/.config/systemd/user/speakersawake.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run speakerawake every 5 minutes + +[Timer] +OnStartupSec=20 +OnUnitActiveSec=5min + +[Install] +WantedBy=timers.target diff --git a/.config/systemd/user/wallpaper-continuous.service b/.config/systemd/user/wallpaper-continuous.service new file mode 100644 index 0000000..bc8a33b --- /dev/null +++ b/.config/systemd/user/wallpaper-continuous.service @@ -0,0 +1,15 @@ +[Unit] +Description=Change the wallpaper periodically + +[Service] +Environment=DISPLAY=:0 + +ExecStart=/usr/bin/sh -lc wallpaper-continuous.sh + +Restart=always +# Restart service after 10 seconds if service crashes +RestartSec=10 +SyslogIdentifier=wallpaper-continuous + +[Install] +WantedBy=basic.target |