1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

switched to autostart script

This commit is contained in:
Simon
2021-01-21 12:16:44 +01:00
parent d6cc395b59
commit 1984146a28
2 changed files with 62 additions and 32 deletions
+61
View File
@@ -0,0 +1,61 @@
#!/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_polybar_floating.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
+1 -32
View File
@@ -12,39 +12,8 @@ set $backupTerminal xterm
set $borderThickness 2
# Autostart w/ i3 #######################################################################
exec --no-startup-id "bash ~/.config/autostart.sh"
# General
exec_always --no-startup-id fix_xcursor
exec --no-startup-id "yadm pull"
exec --no-startup-id "yadm submodule update --recursive"
exec_always --no-startup-id "xmodmap ~/.Xmodmap"
# display
exec --no-startup-id "nvidia-settings --load-config-only"
exec --no-startup-id "dunst"
exec --no-startup-id "picom"
#exec --no-startup-id "picom --experimental-backends"
#exec --no-startup-id zsh ~/.screenlayout/layout_2mon.sh
#exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
exec --no-startup-id zsh ~/.config/polybar/launch_polybar_floating.sh
exec --no-startup-id "nitrogen --restore"
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
exec --no-startup-id "light-locker"
#exec --no-startup-id "sleep 5; xsnow -snowflakes 50 -notrees"
# audio
#exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.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/launch_insync.sh
exec --no-startup-id "nextcloud"
exec --no-startup-id "glances -w -p 60000"
################################################################################################