revert...
This commit is contained in:
parent
c4d10652e8
commit
4f9f683ac4
1 changed files with 2 additions and 14 deletions
16
hybris.zsh
16
hybris.zsh
|
|
@ -1,23 +1,11 @@
|
||||||
# resize term font
|
|
||||||
term-fontsize() {
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
printf '\33]710;%s%d\007' "xft:Source Code Pro:pixelsize=$1:antialias=true"
|
|
||||||
printf '\33]711;%s%d\007' "xft:Source Code Pro:pixelsize=$1:antialias=true"
|
|
||||||
printf '\33]712;%s%d\007' "xft:Source Code Pro:pixelsize=$1:antialias=true"
|
|
||||||
printf '\33]713;%s%d\007' "xft:Source Code Pro:pixelsize=$1:antialias=true"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# bip at command end
|
# bip at command end
|
||||||
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)
|
main_screen=$(echo "if require('awful.screen').focused().index == 1 then return('main-screen') end" | awesome-client)
|
||||||
if [ $main_screen ]; then
|
if [ $main_screen ]; then
|
||||||
term-fontsize $(cat ~/.config/term-fontsize_1)
|
/home/hybris/.scripts/term-fontsize $(cat ~/.config/term-fontsize_1)
|
||||||
else
|
else
|
||||||
term-fontsize $(cat ~/.config/term-fontsize_2)
|
/home/hybris/.scripts/term-fontsize $(cat ~/.config/term-fontsize_2)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue