postmarketos-ui-awesome-mobile/awesome-mobile.sh

9 lines
405 B
Bash
Executable File

#!/bin/sh
# This script will check for a user configuration file, and if it exists, run
# awesome-mobile from there. Otherwise, it runs from /usr/share.
if [ -f ~/.config/awesome-mobile/rc.lua ]; then
awesome --search ~/.config/awesome-mobile/ --search /usr/share/awesome-mobile/ -c ~/.config/awesome-mobile/rc.lua
else
awesome --search /usr/share/awesome-mobile/ -c /usr/share/awesome-mobile/rc.lua
fi