1
0
Fork 0

term-fontsize resize according to configuration file

This commit is contained in:
Maurice Audin 2019-04-09 16:44:27 +02:00
parent 4f9f683ac4
commit 0c68a53020

View file

@ -1,12 +1,7 @@
# bip at command end # bip at command end, resize font
function precmd() { function precmd() {
echo -n -e "\a" echo -n -e "\a"
main_screen=$(echo "if require('awful.screen').focused().index == 1 then return('main-screen') end" | awesome-client) /home/hybris/.scripts/term-fontsize
if [ $main_screen ]; then
/home/hybris/.scripts/term-fontsize $(cat ~/.config/term-fontsize_1)
else
/home/hybris/.scripts/term-fontsize $(cat ~/.config/term-fontsize_2)
fi
} }
# do not share history between terms... # do not share history between terms...