From 90dfd5bf8c84597f930796544606d1acaebf97fb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 11 May 2018 13:27:52 -0700 Subject: [PATCH] [Linux] Add services for gitter and discord --- dotfiles/config/systemd/user/discord.service | 11 +++++++++++ dotfiles/config/systemd/user/gitter.service | 11 +++++++++++ dotfiles/lib/bin/run_unity.sh | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 dotfiles/config/systemd/user/discord.service create mode 100644 dotfiles/config/systemd/user/gitter.service create mode 100755 dotfiles/lib/bin/run_unity.sh diff --git a/dotfiles/config/systemd/user/discord.service b/dotfiles/config/systemd/user/discord.service new file mode 100644 index 00000000..1290ea85 --- /dev/null +++ b/dotfiles/config/systemd/user/discord.service @@ -0,0 +1,11 @@ +[Unit] +Description=discord +Wants=taffybar.service +After=taffybar.service + +[Service] +ExecStart=/usr/bin/env run_unity.sh discord +Restart=always + +[Install] +WantedBy=wm.target diff --git a/dotfiles/config/systemd/user/gitter.service b/dotfiles/config/systemd/user/gitter.service new file mode 100644 index 00000000..5779ba95 --- /dev/null +++ b/dotfiles/config/systemd/user/gitter.service @@ -0,0 +1,11 @@ +[Unit] +Description=gitter +Wants=taffybar.service +After=taffybar.service + +[Service] +ExecStart=/usr/bin/env run_unity.sh gitter +Restart=always + +[Install] +WantedBy=wm.target diff --git a/dotfiles/lib/bin/run_unity.sh b/dotfiles/lib/bin/run_unity.sh new file mode 100755 index 00000000..32b01d0a --- /dev/null +++ b/dotfiles/lib/bin/run_unity.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +XDG_CURRENT_DESKTOP='Unity' $@