Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable zoom for xfce-terminal #11

Open
wikimatze opened this issue Oct 13, 2016 · 1 comment
Open

Enable zoom for xfce-terminal #11

wikimatze opened this issue Oct 13, 2016 · 1 comment

Comments

@wikimatze
Copy link
Owner

My basic colors:

ColorCursor=#0f0f49499999
ColorSelection=#16163b3b5959

Zoom script:

#!/bin/bash
# Details see http://askubuntu.com/a/785864

# Check if Xfce4 Terminal is running. If it is not, exit.
status=$(pgrep xfce4-terminal)

if [ -z "$status" ]; then
    notify-send "No Xfce4 Terminal session is open."
    exit 1
fi

#1. Get the full line. 2. Get the entire line minus font size. 3. Get only font size.
line=$(grep "FontName" ~/.config/xfce4/terminal/terminalrc)
font_name=$(echo "$line" | sed s/'\w*$'//)
font_size=$(echo "$line" | grep -oE '[^ ]+$')

# Increase or decrease font size. You might want to change this to increase and decrease by two.
if [ "$1" = "+" ]; then
    new_size=$((font_size + 1))
elif [ "$1" = "-" ]; then
    new_size=$((font_size - 1))
else
    echo "Available options: +, -"
    exit 1
fi

# Replace the line with the new font size.
action='s/'$font_name$font_size'/'$font_name$new_size'/'
sed -i "$action" ~/.config/xfce4/terminal/terminalrc

Grab additional fonts: https://simplyian.com/2014/03/29/how-to-change-the-theme-of-the-xfce-terminal/

wikimatze added a commit that referenced this issue Oct 13, 2016
@wikimatze
Copy link
Owner Author

An alternative can be reached under: https://github.com/noah/xfce4-terminal-font.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant