#!/usr/bin/env bash
export SCRIPTPATH="$HOME/.config/leftwm/themes/current"

#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

#set the theme.toml config
leftwm-command "LoadTheme $SCRIPTPATH/theme.toml"
 
