From f42c633ee5f265d533a27827cf1ed0d2c4f95907 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Tue, 6 Feb 2024 17:43:09 +0100 Subject: Update services for desktop use --- .config/awesome/rc.lua | 13 +++++++++++++ .config/sxhkd/sxhkdrc | 2 +- .config/systemd/user/irc-client.service | 14 ++++++++++++++ .config/systemd/user/mumble.service | 11 +++++++++++ .config/systemd/user/ntfy@.service | 5 ++++- 5 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .config/systemd/user/irc-client.service create mode 100644 .config/systemd/user/mumble.service (limited to '.config') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 4d07024..42f93b7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -502,6 +502,17 @@ awful.rules.rules = { }, }, + { -- Tag rules for social + rule_any = { + class = { + "irc", + }, + }, + properties = { + tag = "social", + }, + }, + { -- Tag rules for www rule_any = { class = { @@ -519,6 +530,7 @@ awful.rules.rules = { { -- Tag rules for email rule_any = { class = { + "evolution", "thunderbird", "kmail", }, @@ -536,6 +548,7 @@ awful.rules.rules = { "tsmapplication.exe", "lutris", "pathofexile.exe", + "mumble" }, }, properties = { diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 0c5035c..d00104b 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,6 +1,6 @@ # spawn applications super + Return - term + ~/.local/bin/term super + alt + Return term -c diff --git a/.config/systemd/user/irc-client.service b/.config/systemd/user/irc-client.service new file mode 100644 index 0000000..b1d0544 --- /dev/null +++ b/.config/systemd/user/irc-client.service @@ -0,0 +1,14 @@ +[Unit] +Description=Start preferred IRC client +PartOf=graphical-session.target + +[Service] +Type=exec +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +ExecStart=alacritty --class irc -e mosh oolah .local/bin/ta irc +Restart=on-failure + +[Install] +WantedBy=desktop.target diff --git a/.config/systemd/user/mumble.service b/.config/systemd/user/mumble.service new file mode 100644 index 0000000..ad127ca --- /dev/null +++ b/.config/systemd/user/mumble.service @@ -0,0 +1,11 @@ +[Unit] +Description=Start the Mumble +PartOf=graphical-session.target + +[Service] +Type=exec +ExecStart=/usr/bin/mumble +Restart=on-failure + +[Install] +WantedBy=desktop.target diff --git a/.config/systemd/user/ntfy@.service b/.config/systemd/user/ntfy@.service index 22a7c3a..6f2587b 100644 --- a/.config/systemd/user/ntfy@.service +++ b/.config/systemd/user/ntfy@.service @@ -5,7 +5,10 @@ After=network.target [Service] Type=exec -ExecStart=/usr/bin/ntfy subscribe "%i" 'notify-send "$t" "$m"' +ExecSearchPath=%h/.local/bin +ExecSearchPath=/usr/local/bin +ExecSearchPath=/usr/bin +ExecStart=ntfy subscribe "%i" 'notify-send "$t" "$m"' Restart=on-failure [Install] -- cgit v1.1