diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-21 13:27:04 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-21 13:27:04 +0200 |
| commit | 188acad6d8c9ed71e984afafee5b9e068d154d2f (patch) | |
| tree | 44172694a1d0f28e8d50f49fcee1ca4314b82130 /.zshrc | |
| parent | a5d7caffeabed1274a2df6fcf9b71e82e2d46088 (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-- | .zshrc | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -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 |
