#!/bin/bash autostart() { # General run "fix_xcursor" run "xmodmap" "$HOME/.Xmodmap" # Display run "nvidia-settings --load-config-only" run "dunst" run "picom" run "zsh $HOME/.config/polybar/launch.sh" run "nitrogen --restore" run "unclutter --timeout 5 --jitter 5 --ignore-scrolling" run "light-locker" #run "sleep 5; xsnow -snowflakes 50 -notrees" # Audio run "zsh -c 'pactl unload-module module-role-cork'" # Config run "yadm pull" run "yadm submodule update --recursive" # Misc run "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" run "rfkill unblock bluetooth" run "blueberry-tray" run "nextcloud" run "glances -w -p 60000" } run() { run_std "$1" "$2" } # Print all output run_std() { runDetached "$1" "$2" } # Print stderr only run_err() { runDetached "$1" "$2" >/dev/null } # Print no output run_nul() { runDetached "$1" "$2" &>/dev/null } runDetached() { #setsid -f "$1" "$2" eval "$1 $2" & } echo "[Starting]" autostart echo "[Done]" exit