From 06b22df02c76797e617259af690adcad31337c52 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 16 Feb 2024 11:32:48 +0100 Subject: Update naming scheme for applications --- .config/systemd/user/bscv-dunst.service | 19 ------------------- .config/systemd/user/bscv-ntfy@.service | 15 --------------- .config/systemd/user/bscv-sxhkd.service | 19 ------------------- .../user/dapp-.service.d/00-ExecSearchPath.conf | 4 ++++ .../user/dapp-.service.d/00-WorkingDirectory.conf | 2 ++ .../systemd/user/dapp-bg-.service.d/00-Restart.conf | 2 ++ .config/systemd/user/dapp-bg-dunst.service | 11 +++++++++++ .config/systemd/user/dapp-bg-ntfy@.service | 11 +++++++++++ .config/systemd/user/dapp-bg-sxhkd.service | 11 +++++++++++ .../systemd/user/dapp-fg-.service.d/00-Restart.conf | 2 ++ .config/systemd/user/dapp-fg-evolution.service | 19 +++++++++++++++++++ .config/systemd/user/dapp-fg-firefox.service | 18 ++++++++++++++++++ .config/systemd/user/dapp-fg-irc.service | 18 ++++++++++++++++++ .config/systemd/user/dapp-fg-keepassxc.service | 17 +++++++++++++++++ .config/systemd/user/dapp-fg-networkmanager.service | 18 ++++++++++++++++++ .config/systemd/user/fsvc-evolution.service | 19 ------------------- .config/systemd/user/fsvc-firefox.service | 18 ------------------ .config/systemd/user/fsvc-irc.service | 18 ------------------ .config/systemd/user/fsvc-keepassxc.service | 17 ----------------- .config/systemd/user/fsvc-nm-applet.service | 18 ------------------ 20 files changed, 133 insertions(+), 143 deletions(-) delete mode 100644 .config/systemd/user/bscv-dunst.service delete mode 100644 .config/systemd/user/bscv-ntfy@.service delete mode 100644 .config/systemd/user/bscv-sxhkd.service create mode 100644 .config/systemd/user/dapp-.service.d/00-ExecSearchPath.conf create mode 100644 .config/systemd/user/dapp-.service.d/00-WorkingDirectory.conf create mode 100644 .config/systemd/user/dapp-bg-.service.d/00-Restart.conf create mode 100644 .config/systemd/user/dapp-bg-dunst.service create mode 100644 .config/systemd/user/dapp-bg-ntfy@.service create mode 100644 .config/systemd/user/dapp-bg-sxhkd.service create mode 100644 .config/systemd/user/dapp-fg-.service.d/00-Restart.conf create mode 100644 .config/systemd/user/dapp-fg-evolution.service create mode 100644 .config/systemd/user/dapp-fg-firefox.service create mode 100644 .config/systemd/user/dapp-fg-irc.service create mode 100644 .config/systemd/user/dapp-fg-keepassxc.service create mode 100644 .config/systemd/user/dapp-fg-networkmanager.service delete mode 100644 .config/systemd/user/fsvc-evolution.service delete mode 100644 .config/systemd/user/fsvc-firefox.service delete mode 100644 .config/systemd/user/fsvc-irc.service delete mode 100644 .config/systemd/user/fsvc-keepassxc.service delete mode 100644 .config/systemd/user/fsvc-nm-applet.service diff --git a/.config/systemd/user/bscv-dunst.service b/.config/systemd/user/bscv-dunst.service deleted file mode 100644 index ac64078..0000000 --- a/.config/systemd/user/bscv-dunst.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target -After=wman.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin -WorkingDirectory=%h - -ExecStart=/usr/bin/dunst - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/bscv-ntfy@.service b/.config/systemd/user/bscv-ntfy@.service deleted file mode 100644 index 0490ea1..0000000 --- a/.config/systemd/user/bscv-ntfy@.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Start ntfy -After=network.target -After=wman.target - -[Service] -Type=exec -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -ExecStart=ntfy subscribe "%i" 'notify-send "$t" "$m"' -Restart=on-failure - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/bscv-sxhkd.service b/.config/systemd/user/bscv-sxhkd.service deleted file mode 100644 index f1dde07..0000000 --- a/.config/systemd/user/bscv-sxhkd.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target -After=wman.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin -WorkingDirectory=%h - -ExecStart=/usr/bin/sxhkd - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/dapp-.service.d/00-ExecSearchPath.conf b/.config/systemd/user/dapp-.service.d/00-ExecSearchPath.conf new file mode 100644 index 0000000..3fdf3af --- /dev/null +++ b/.config/systemd/user/dapp-.service.d/00-ExecSearchPath.conf @@ -0,0 +1,4 @@ +[Service] +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin diff --git a/.config/systemd/user/dapp-.service.d/00-WorkingDirectory.conf b/.config/systemd/user/dapp-.service.d/00-WorkingDirectory.conf new file mode 100644 index 0000000..d99a24c --- /dev/null +++ b/.config/systemd/user/dapp-.service.d/00-WorkingDirectory.conf @@ -0,0 +1,2 @@ +[Service] +WorkingDirectory=%h diff --git a/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf b/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf new file mode 100644 index 0000000..8a764e3 --- /dev/null +++ b/.config/systemd/user/dapp-bg-.service.d/00-Restart.conf @@ -0,0 +1,2 @@ +[Service] +Restart=always diff --git a/.config/systemd/user/dapp-bg-dunst.service b/.config/systemd/user/dapp-bg-dunst.service new file mode 100644 index 0000000..2aff5ce --- /dev/null +++ b/.config/systemd/user/dapp-bg-dunst.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run dunst +PartOf=graphical-session.target +After=wman.target + +[Service] +Type=exec +ExecStart=/usr/bin/dunst + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-bg-ntfy@.service b/.config/systemd/user/dapp-bg-ntfy@.service new file mode 100644 index 0000000..6297fea --- /dev/null +++ b/.config/systemd/user/dapp-bg-ntfy@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run ntfy +After=network.target +After=wman.target + +[Service] +Type=exec +ExecStart=ntfy subscribe "%i" 'notify-send "$t" "$m"' + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-bg-sxhkd.service b/.config/systemd/user/dapp-bg-sxhkd.service new file mode 100644 index 0000000..e250f1e --- /dev/null +++ b/.config/systemd/user/dapp-bg-sxhkd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run the Simple X HotKey Daemon +PartOf=graphical-session.target +After=wman.target + +[Service] +Type=exec +ExecStart=/usr/bin/sxhkd + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-fg-.service.d/00-Restart.conf b/.config/systemd/user/dapp-fg-.service.d/00-Restart.conf new file mode 100644 index 0000000..eedb19c --- /dev/null +++ b/.config/systemd/user/dapp-fg-.service.d/00-Restart.conf @@ -0,0 +1,2 @@ +[Service] +Restart=on-failure diff --git a/.config/systemd/user/dapp-fg-evolution.service b/.config/systemd/user/dapp-fg-evolution.service new file mode 100644 index 0000000..a1dade0 --- /dev/null +++ b/.config/systemd/user/dapp-fg-evolution.service @@ -0,0 +1,19 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +After=fsvc-keepassxc.service + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +WorkingDirectory=%h + +ExecStart=evolution + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-fg-firefox.service b/.config/systemd/user/dapp-fg-firefox.service new file mode 100644 index 0000000..10e72a3 --- /dev/null +++ b/.config/systemd/user/dapp-fg-firefox.service @@ -0,0 +1,18 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin +WorkingDirectory=%h + +ExecStart=firefox + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-fg-irc.service b/.config/systemd/user/dapp-fg-irc.service new file mode 100644 index 0000000..efd4b81 --- /dev/null +++ b/.config/systemd/user/dapp-fg-irc.service @@ -0,0 +1,18 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin +WorkingDirectory=%h + +ExecStart=irc + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-fg-keepassxc.service b/.config/systemd/user/dapp-fg-keepassxc.service new file mode 100644 index 0000000..a634ece --- /dev/null +++ b/.config/systemd/user/dapp-fg-keepassxc.service @@ -0,0 +1,17 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +WorkingDirectory=%h + +ExecStart=keepassxc + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/dapp-fg-networkmanager.service b/.config/systemd/user/dapp-fg-networkmanager.service new file mode 100644 index 0000000..54cbd9e --- /dev/null +++ b/.config/systemd/user/dapp-fg-networkmanager.service @@ -0,0 +1,18 @@ +[Unit] +Description=Manage an x11 application +PartOf=graphical-session.target + +[Service] +Type=exec +Restart=on-failure + +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin +WorkingDirectory=%h + +ExecStart=nm-applet + +[Install] +WantedBy=wman.target diff --git a/.config/systemd/user/fsvc-evolution.service b/.config/systemd/user/fsvc-evolution.service deleted file mode 100644 index a1dade0..0000000 --- a/.config/systemd/user/fsvc-evolution.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target - -After=fsvc-keepassxc.service - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -WorkingDirectory=%h - -ExecStart=evolution - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/fsvc-firefox.service b/.config/systemd/user/fsvc-firefox.service deleted file mode 100644 index 10e72a3..0000000 --- a/.config/systemd/user/fsvc-firefox.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin -WorkingDirectory=%h - -ExecStart=firefox - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/fsvc-irc.service b/.config/systemd/user/fsvc-irc.service deleted file mode 100644 index efd4b81..0000000 --- a/.config/systemd/user/fsvc-irc.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin -WorkingDirectory=%h - -ExecStart=irc - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/fsvc-keepassxc.service b/.config/systemd/user/fsvc-keepassxc.service deleted file mode 100644 index a634ece..0000000 --- a/.config/systemd/user/fsvc-keepassxc.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -WorkingDirectory=%h - -ExecStart=keepassxc - -[Install] -WantedBy=wman.target diff --git a/.config/systemd/user/fsvc-nm-applet.service b/.config/systemd/user/fsvc-nm-applet.service deleted file mode 100644 index 54cbd9e..0000000 --- a/.config/systemd/user/fsvc-nm-applet.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=Manage an x11 application -PartOf=graphical-session.target - -[Service] -Type=exec -Restart=on-failure - -ExecSearchPath=%h/.local/bin -ExecSearchPath=/usr/local/bin -ExecSearchPath=/usr/bin -Environment=PATH=/home/tyil/.local/bin:/home/tyil/.config/shell/wrappers.d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin -WorkingDirectory=%h - -ExecStart=nm-applet - -[Install] -WantedBy=wman.target -- cgit v1.1