From a4b59e5d09f3069452d0bf1885828326b9340a74 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 27 Oct 2014 15:07:46 -0500 Subject: Add low vision profile for gnome-terminal --- gnome-terminal-low-vision.xml | 226 ++++++++++++++++++++++++++++++++++++++++++ low-vision.sh | 23 +++++ 2 files changed, 249 insertions(+) create mode 100644 gnome-terminal-low-vision.xml diff --git a/gnome-terminal-low-vision.xml b/gnome-terminal-low-vision.xml new file mode 100644 index 0000000..c820069 --- /dev/null +++ b/gnome-terminal-low-vision.xml @@ -0,0 +1,226 @@ + + + + LowVision/allow_bold + + true + + + + LowVision/alternate_screen_scroll + + true + + + + LowVision/background_color + + #FFFFE0DF7F7F + + + + LowVision/background_darkness + + 0.5 + + + + LowVision/background_image + + + + + + LowVision/background_type + + solid + + + + LowVision/backspace_binding + + ascii-del + + + + LowVision/bold_color + + #000000000000 + + + + LowVision/bold_color_same_as_fg + + true + + + + LowVision/cursor_blink_mode + + system + + + + LowVision/cursor_shape + + block + + + + LowVision/custom_command + + + + + + LowVision/default_show_menubar + + true + + + + LowVision/default_size_columns + + 80 + + + + LowVision/default_size_rows + + 24 + + + + LowVision/delete_binding + + escape-sequence + + + + LowVision/exit_action + + close + + + + LowVision/font + + Monospace 16 + + + + LowVision/foreground_color + + #000000000000 + + + + LowVision/login_shell + + false + + + + LowVision/palette + + #000000000000:#AAAA00000000:#0000AAAA0000:#AAAA55550000:#00000000AAAA:#AAAA0000AAAA:#0000AAAAAAAA:#AAAAAAAAAAAA:#555555555555:#FFFF55555555:#5555FFFF5555:#FFFFFFFF5555:#55555555FFFF:#FFFF5555FFFF:#5555FFFFFFFF:#FFFFFFFFFFFF + + + + LowVision/scroll_background + + true + + + + LowVision/scroll_on_keystroke + + true + + + + LowVision/scroll_on_output + + false + + + + LowVision/scrollback_lines + + 512 + + + + LowVision/scrollback_unlimited + + false + + + + LowVision/scrollbar_position + + right + + + + LowVision/silent_bell + + false + + + + LowVision/title + + Terminal + + + + LowVision/title_mode + + replace + + + + LowVision/update_records + + true + + + + LowVision/use_custom_command + + false + + + + LowVision/use_custom_default_size + + false + + + + LowVision/use_system_font + + false + + + + LowVision/use_theme_colors + + false + + + + LowVision/visible_name + + Low Vision + + + + LowVision/word_chars + + -A-Za-z0-9,./?%&#:_=+@~ + + + + diff --git a/low-vision.sh b/low-vision.sh index fef7103..a434d74 100755 --- a/low-vision.sh +++ b/low-vision.sh @@ -17,3 +17,26 @@ gsettings set org.gnome.desktop.wm.preferences theme HighContrast #as lightdm gsettings set com.canonical.unity-greeter theme-name HighContrast #as lightdm gsettings set com.canonical.unity-greeter icon-theme-name HighContrast +# Low vision terminal profile +gconftool --load gnome-terminal-low-vision.xml +PROFILE_LIST=/apps/gnome-terminal/global/profile_list +num_profiles=$(gconftool --get-list-size $PROFILE_LIST) +found=false +profile_list="" +for i in $(seq 0 $num_profiles | head -n $num_profiles); do + profile=$(gconftool --get-list-element $PROFILE_LIST $i) + if test LowVision = "$profile"; then + found=true + break + fi + if test -z "$profile_list"; then + profile_list="[$profile" + else + profile_list="$profile_list,$profile" + fi +done +if ! $found; then + gconftool --set --type=list --list-type=string $PROFILE_LIST \ + "$profile_list,LowVision]" +fi +gconftool --set --type=string /apps/gnome-terminal/global/default_profile LowVision -- cgit v1.2.3-18-g5258