Files
dotfiles/env/.local/bin/system/start-scripts/autostart.sh
iceyrazor 5c4872f306 Squashed commit of the following:
- auto game restart after killing game thread
    - detect_leaks 0 for dap
    - excludes to backup
    - fixed typo "suff"
    - another one
    - added new mime
    - added serv sync script
    - unset qt theme for mumble
    - switched to printf on kaomoji-picker
    - moved stuff from wayland to hyprland
    - keybind to kill GameThread
2025-12-12 22:57:51 -06: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
QT_QPA_PLATFORMTHEME="" 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