dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit bb8082fd7fa0d7cc8766ca3f828b56a961d414f5
parent d532c5820a118506eedfc7efa39396613a4d5571
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon, 21 Jan 2019 17:54:31 -0500

Launch different daemon depending on session type.

Diffstat:
M.config/sway/config | 2+-
A.local/bin/sway/start-notifyd | 9+++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.config/sway/config b/.config/sway/config
@@ -297,6 +297,6 @@ bar {
 
 ### Startup Applications
 exec --no-startup-id greenclip daemon
-exec --no-startup-id mako
+exec --no-startup-id ~/.local/bin/sway/start-notifyd
 exec --no-startup-id dropbox
 exec --no-startup-id fcitx -d
diff --git a/.local/bin/sway/start-notifyd b/.local/bin/sway/start-notifyd
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+# Starts corresponding notification daemon.
+
+if [[ $XDG_SESSION_TYPE -eq "wayland" ]]; then
+    exec mako
+else
+    exec dunst
+fi