mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-22 14:18:21 -05:00
20 lines
544 B
Bash
Executable File
20 lines
544 B
Bash
Executable File
## Current Theme
|
|
DEFAULT_TYPE='type-1'
|
|
DEFAULT_STYLE='style-1'
|
|
|
|
# INPUT_THEME should be set by the script that sources this file,
|
|
# if the user wants to override the default theme.
|
|
if [ -z "$INPUT_THEME" ]; then
|
|
theme="$SCRIPT_DIR/../$DEFAULT_TYPE/$DEFAULT_STYLE.rasi"
|
|
elif [[ $1 == "-h" || $1 == "--help" ]]; then
|
|
echo "Usage: $SCRIPT_INVOCATION [theme]"
|
|
exit 0
|
|
else
|
|
theme="$SCRIPT_DIR/../$theme.rasi"
|
|
if [ ! -f "$theme" ]; then
|
|
# fail if we still can't find it.
|
|
echo "Theme not found!"
|
|
exit 1
|
|
fi
|
|
fi
|