mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-06-20 04:30:53 +02:00
92 lines
2.0 KiB
Bash
92 lines
2.0 KiB
Bash
#!/bin/bash
|
|
|
|
# YOGA3 i3 config:
|
|
|
|
# # General
|
|
# exec_always --no-startup-id fix_xcursor
|
|
# exec --no-startup-id xmodmap ~/.Xmodmap
|
|
|
|
# # display
|
|
# exec --no-startup-id "picom"
|
|
# exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
|
|
# exec --no-startup-id "nitrogen --restore"
|
|
# exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
|
|
|
|
# # audio
|
|
# exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/restart_pulseaudio.sh
|
|
# exec --no-startup-id zsh -c "pactl unload-module module-role-cork"
|
|
|
|
# # extra
|
|
# exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
# exec --no-startup-id "rfkill unblock bluetooth"
|
|
# exec --no-startup-id blueberry-tray
|
|
# #exec --no-startup-id onboard
|
|
# exec --no-startup-id nm-applet
|
|
# #exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/launch_insync.sh
|
|
# exec --no-startup-id "nextcloud --background"
|
|
|
|
autostart() {
|
|
# General
|
|
run "gnome-keyring-daemon" "--start"
|
|
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'"
|
|
run "xset -b"
|
|
|
|
# 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"
|
|
|
|
# Network
|
|
run "nm-applet"
|
|
}
|
|
|
|
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
|