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

9 lines
405 B
Bash
Raw Normal View History

2022-08-27 16:00:45 +10:00
#!/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