leftwm-skylark/up

30 lines
658 B
Text
Raw Permalink Normal View History

2023-12-05 20:14:26 +00:00
#!/usr/bin/env bash
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
#down the last running theme
if [ -f "/tmp/leftwm-theme-down" ]; then
/tmp/leftwm-theme-down
rm /tmp/leftwm-theme-down
fi
ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down
#boot picom or compton if it exists
if [ -x "$(command -v picom)" ]; then
picom &> /dev/null &
elif [ -x "$(command -v compton)" ]; then
compton &> /dev/null &
fi
#set the theme.ron config
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
#set background
if [ -x "$(command -v feh)" ]; then
feh --bg-scale $SCRIPTPATH/background
fi
polybar -c $SCRIPTPATH/polybar.config $barname &> /dev/null &