Files
dotfiles/env/.local/bin/system/start-scripts/autostart.sh
iceyrazor 4cd0854592 Squashed commit of the following:
- added private autostart script
    - removed cmus from backup scripts
    - separated more req install commands
    - cava change
    - i3 and rmpc ricing
    - added mpd to arch install. removed cmus
    - added mpv-mpris to autostart
2025-10-29 18:23:00 -05:00

77 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
sleep 0.1
xset s 0
nitrogen --restore &
if [ "$XDG_CURRENT_DESKTOP" == "sway:wlroots" ]; then
PID=$(pidof swaybg)
swaybg -o HDMI-A-1 -i "/home/iceyrazor/stuff/media/wallpapers/purple/IMG_0276.jpg" -m fill -o DP-1 -i "/home/iceyrazor/stuff/media/wallpapers/purple/IMG_0276.jpg" -m fill & disown
sleep 0.4s
kill $PID
fi
xrdb -merge /home/iceyrazor/.Xresources &
if [ -z "$WAYLAND_DISPLAY" ]; then
xcompmgr &
setxkbmap -option caps:swapescape
fi
# if [ -z $(pgrep -f stbar.sh) ]; then
# # ~/stuff/scripts/system/stbar/stbar.sh &
# fi
# added openrc services... may go back to this later
# pipewire & disown
# if [ -z "$(pgrep wireplumber)" ]; then
# wireplumber & disown
# fi
# pipewire-pulse & disown
sleep 0.5s
if [ "$WAYLAND_DISPLAY" ] && [ -z "$(pgrep -f waybar)" ]; then
waybar & disown
fi
if [ -z "$(pgrep -f newsboat-fetch.sh)" ]; then
./newsboat-fetch.sh &
fi
if [ -z "$(pgrep -f lessons-loop.sh)" ]; then
./lessons-loop.sh &
fi
pactl load-module module-null-sink sink_name=audio-share
if [ -z "$(pgrep wezterm)" ]; then
sleep 2
wezterm -e ~/.local/bin/system/task.sh &
fi
if [ "$(cat /etc/hostname)" == "Kasino" ]; then
if [ -z "$(pgrep vesktop)" ]; then
dbus-run-session vesktop & disown
fi
if [ -z "$(pgrep gajim)" ]; then
gajim & disown
fi
if [ -z "$(pgrep steam)" ]; then
steam & disown
fi
if [ -z "$(pgrep mumble)" ]; then
mumble & disown
fi
if [ -z "$(pgrep mpd)" ]; then
mpd & disown
sleep 0.5s
nohup mpd-mpris -host localhost > /dev/null 2> /dev/null < /dev/null & disown
fi
fi
[ -f "./autostart-priv.sh" ] && ./autostart-priv.sh