1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-21 04:50:53 +02:00
Files
dotfiles/.config/autostart.sh##h.pc
T
2021-12-02 20:48:00 +01:00

63 lines
1.1 KiB
PkgConfig

#!/bin/bash
autostart() {
# General
run "fix_xcursor"
run "xmodmap" "$HOME/.Xmodmap"
# Display
run "sh ~/.screenlayout/dual.sh"
run "nvidia-settings --load-config-only"
run "dunst"
run "picom -b"
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