diff options
author | zachir <zachir@librem.one> | 2023-02-10 12:40:29 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-10 12:40:29 -0600 |
commit | c33f60bb5c2509bc735377478c24f88ae034d0ec (patch) | |
tree | e399697c208b024480f28d2ff34322609b69b230 /autostart.sh | |
parent | 5e74241bb8b2a672a7adcc4a8b6e1dea03f2f5a2 (diff) |
simplify autostart.sh to X11, add computerrc.sh for system specific commands
Diffstat (limited to 'autostart.sh')
-rwxr-xr-x | autostart.sh | 47 |
1 files changed, 10 insertions, 37 deletions
diff --git a/autostart.sh b/autostart.sh index b8d1aa5..38d0a79 100755 --- a/autostart.sh +++ b/autostart.sh @@ -8,44 +8,17 @@ runifnot () { fi } -runifnot `crcparse snd` -if type mpd >/dev/null; then - runifnot mpd -elif type musicpd >/dev/null; then - runifnot musicpd -fi -#pkill pipewire ; pkill pipewire-pulse ; pkill wireplumber ; snd.sh & runifnot picom runifnot mpd-mpris -network unix runifnot mpd-notification -runifnot transmission-daemon -#runifnot dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus -runifnot openrazer-daemon -razer-cli -e static -#runifnot nextcloud -if [ -z "$WAYLAND_DISPLAY" ]; then - runifnot xss-lock -n notify-send slockd - #if pgrep -x swhkd; then - # doas killall swhkd && pkexec swhkd - #fi - #pkexec swhkd & - #runifnot swhks - runifnot sxhkd - runifnot dunst - runifnot caffeine-ng - if [ "$(crcparse WM)" = "$(which xmonad)" ]; then - runifnot stalonetray - fi - xwallpaper --zoom ~/background.jpg - setxkbmap -option "caps:escape" -else - toggle swaybg -i ~/background.jpg - gsettings set org.gnome.desktop.interface gtk-theme Sweet-Dark-v40 - gsettings set org.gnome.desktop.interface icon-theme Paper-Mono-Dark - runifnot swayidle -w - hotkeys.sh - runifnot mako - if [ "$(crcparse WC)" != "$(which qtile)" ]; then - runifnot waybar - fi +runifnot xss-lock slockd +runifnot sxhkd +runifnot dunst +runifnot caffeine +if [ "$(crcparse WM)" = "$(which xmonad)" ]; then + runifnot stalonetray fi +xwallpaper --zoom ~/background.jpg +setxkbmap -option "caps:escape" + +[ -x "$XDG_CONFIG_HOME/computerrc.sh" ] && "$XDG_CONFIG_HOME/computerrc.sh" |