mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:24:10 +01:00
29 lines
624 B
Bash
Executable File
29 lines
624 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
## Fix anyrun
|
|
## https://github.com/anyrun-org/anyrun/issues/153
|
|
ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr
|
|
|
|
## Autostart Programs
|
|
|
|
# Kill already running process
|
|
_ps=(waybar mako mpd)
|
|
for _prs in "${_ps[@]}"; do
|
|
if [[ $(pidof ${_prs}) ]]; then
|
|
killall -9 ${_prs}
|
|
fi
|
|
done
|
|
|
|
# Set wallpaper via a wallpaper.service
|
|
# it will by start by home-manager automatically, do not need to restart it here.
|
|
# systemctl --user restart wallpaper.service
|
|
|
|
# Launch notification daemon (mako)
|
|
~/.config/hypr/scripts/notifications &
|
|
|
|
# Launch statusbar (waybar)
|
|
~/.config/hypr/scripts/statusbar &
|
|
|
|
# Start mpd
|
|
exec mpd &
|