purhan/RICE/werewolf/configuration/awspawn
2020-08-28 22:50:04 +05:30

43 lines
965 B
Bash
Executable file

#!/bin/bash
## This configuration file is meant for applications that
# still run in the background when a reload is triggered
# for awesome, this script just kills the running instance
# and starts a new one.
# Only add applications/scripts without parameters here
# (if you want to apply parameters then use a script file!)
# List of applications to run
# the script $HOME/.config/awesomestart
# is intended to be a copy of this file
# to allow out of tree autostart programs
APPS=(
keepassxc
kdeconnect-indicator
radeon-profile
$HOME/.config/awesomestart
)
# Some applications start child applications that need to be killed on reload
KILL=(
synergyc
nextcloud
)
#Kill the polkit
killall xfce-polkit
# First kill lingering apps
for app in "${APPS[@]}"
do
kill -9 $(pidof $app)
done
for app in "${KILL[@]}"
do
kill -9 $(pidof $app)
done
# Start new instances
for app in "${APPS[@]}"
do
env $app ${@:2} &
done