mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
30 lines
563 B
Bash
Executable File
30 lines
563 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
## Autostart Programs
|
|
|
|
# Kill already running process
|
|
_ps=(waybar mako mpd xfce-polkit)
|
|
for _prs in "${_ps[@]}"; do
|
|
if [[ $(pidof ${_prs}) ]]; then
|
|
killall -9 ${_prs}
|
|
fi
|
|
done
|
|
|
|
# Polkit agent
|
|
/usr/lib/xfce-polkit/xfce-polkit &
|
|
|
|
# Set wallpaper
|
|
swaybg --output '*' --mode fill --image ~/.config/hypr/wallpapers/wallpaper.png &
|
|
|
|
# Apply themes
|
|
~/.config/hypr/scripts/gtkthemes &
|
|
|
|
# Lauch notification daemon (mako)
|
|
~/.config/hypr/scripts/notifications &
|
|
|
|
# Lauch statusbar (waybar)
|
|
~/.config/hypr/scripts/statusbar &
|
|
|
|
# Start mpd
|
|
exec mpd &
|