升级E17后恢复设置的脚本。
Enlightenment DR17 现在还没有正式发布,因此每次升级都会重置配置,为了不至于忘了自己做过那些配置,故将这些配置命令写个脚本,也可以在升级之后省些时间。
#!/bin/sh
# The shell is used to restore my settings of E17
ER=/usr/bin/enlightenment_remote
if [ ! -x $ER ]; then
echo "Sorry, it looks like that you don't install E17"
exit 1
fi
# restore my font setting
# Because of bad support of bitmap font, I use ukai instead of uming
$ER -font -fallback-prepend Ukai
# restore my key binding.
$ER -binding -key-add ANY Print NONE 0 exec 'import ~/screenshot/$(date +%Y%m%d)-$$.jpg '
# Set SMART maximize policy
$ER -maximize -policy-set SMART
# disable and unload unwanted module
for MODULE in cpufreq start ibar ibox render
do
$ER -module-disable $MODULE
$ER -module-unload $MODULE
done
# load moudle
for MODULE in engage monitor
do
$ER -module-load $MODULE
$ER -module-enable $MODULE
done
评论