Files
dotfiles/.config/compton/launch.sh
druckdev 08c5c66e1e X11: Move pieces from i3 and zshenv into xinitrc
Move everything that is desirable independent of the WM or shell into
xinitrc.
Move .Xresources and .Xmodmap into .config/X11.
Remove all unneeded GNOME bits from i3 config.
Make compositor launch script portable.
Add locker symlink and launch.sh similar to the compositor.
2020-10-31 22:33:26 +01:00

11 lines
255 B
Bash
Executable File

#!/bin/sh
basedir="$(cd "$(dirname "$0")" && pwd -P)"
compositor="$(basename "$basedir")"
if [ "$1" = "-k" ]; then
killall -q "$compositor"
elif ! pgrep -ax "$compositor" >/dev/null 2>&1; then
"$compositor" --config "$basedir/$compositor".conf -b
fi