From c33f60bb5c2509bc735377478c24f88ae034d0ec Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 10 Feb 2023 12:40:29 -0600 Subject: simplify autostart.sh to X11, add computerrc.sh for system specific commands --- .gitignore | 1 + autostart.sh | 47 ++++++++++------------------------------------- 2 files changed, 11 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 25c91d7..567554a 100644 --- a/.gitignore +++ b/.gitignore @@ -144,6 +144,7 @@ dde-printer.ini dconf/ cordless/config.json configstore/ +computerrc.sh computerrc companion/ coc/extensions/db.json 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" -- cgit v1.2.3