summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-21 13:27:04 +0200
committerKyren223 <Kyren223@proton.me>2025-01-21 13:27:04 +0200
commit188acad6d8c9ed71e984afafee5b9e068d154d2f (patch)
tree44172694a1d0f28e8d50f49fcee1ca4314b82130 /.zshrc
parenta5d7caffeabed1274a2df6fcf9b71e82e2d46088 (diff)
Automatically start some applications when a shell starts for the first
time (which is when I startup my pc)
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc18
1 files changed, 7 insertions, 11 deletions
diff --git a/.zshrc b/.zshrc
index 351e4b0..aa2e88b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -102,23 +102,19 @@ esac
# Start ssh-agent if not running
eval $(keychain --quiet --eval ~/.ssh/id_ed25519)
-# HACK: Send a notification so systemd notification will work
-MARKER_FILE="/run/user/$(id -u)/zshrc_once_marker"
+MARKER_FILE="/run/user/$(id -u)/autorun_once_marker"
if [ ! -f "$MARKER_FILE" ]; then
+ # HACK: Send a notification so systemd notification will work
notify-send --urgency=normal --expire-time=1 " "
- touch "$MARKER_FILE"
-fi
-MARKER_FILE="/run/user/$(id -u)/activitywatch"
-if [ ! -f "$MARKER_FILE" ]; then
+ # Start activity watcher
nohup aw-qt &>/dev/null & disown
nohup awatcher &>/dev/null & disown
- touch "$MARKER_FILE"
- {
- wait $aw_qt_pid || rm -f "$MARKER_FILE"
- wait $awatcher_pid || rm -f "$MARKER_FILE"
- } & disown
+ # Start albert (app launcher like krunner)
+ nohup albert --platform xcb &>/dev/null & disown
+
+ touch "$MARKER_FILE"
fi
# Install catppuccin automatically if it's not installed already