diff options
author | David Barksdale <amatus@amatus.name> | 2014-10-27 15:07:46 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-10-27 15:07:46 -0500 |
commit | a4b59e5d09f3069452d0bf1885828326b9340a74 (patch) | |
tree | 72694659effd97b2d9474e7f23fde16c9fc1b4a8 | |
parent | ba1f129f72a90b75345dc752b6c65dacbc666219 (diff) |
Add low vision profile for gnome-terminal
-rw-r--r-- | gnome-terminal-low-vision.xml | 226 | ||||
-rwxr-xr-x | low-vision.sh | 23 |
2 files changed, 249 insertions, 0 deletions
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 @@ +<gconfentryfile> + <entrylist base="/apps/gnome-terminal/profiles"> + <entry> + <key>LowVision/allow_bold</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/alternate_screen_scroll</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/background_color</key> + <value> + <string>#FFFFE0DF7F7F</string> + </value> + </entry> + <entry> + <key>LowVision/background_darkness</key> + <value> + <float>0.5</float> + </value> + </entry> + <entry> + <key>LowVision/background_image</key> + <value> + <string></string> + </value> + </entry> + <entry> + <key>LowVision/background_type</key> + <value> + <string>solid</string> + </value> + </entry> + <entry> + <key>LowVision/backspace_binding</key> + <value> + <string>ascii-del</string> + </value> + </entry> + <entry> + <key>LowVision/bold_color</key> + <value> + <string>#000000000000</string> + </value> + </entry> + <entry> + <key>LowVision/bold_color_same_as_fg</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/cursor_blink_mode</key> + <value> + <string>system</string> + </value> + </entry> + <entry> + <key>LowVision/cursor_shape</key> + <value> + <string>block</string> + </value> + </entry> + <entry> + <key>LowVision/custom_command</key> + <value> + <string></string> + </value> + </entry> + <entry> + <key>LowVision/default_show_menubar</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/default_size_columns</key> + <value> + <int>80</int> + </value> + </entry> + <entry> + <key>LowVision/default_size_rows</key> + <value> + <int>24</int> + </value> + </entry> + <entry> + <key>LowVision/delete_binding</key> + <value> + <string>escape-sequence</string> + </value> + </entry> + <entry> + <key>LowVision/exit_action</key> + <value> + <string>close</string> + </value> + </entry> + <entry> + <key>LowVision/font</key> + <value> + <string>Monospace 16</string> + </value> + </entry> + <entry> + <key>LowVision/foreground_color</key> + <value> + <string>#000000000000</string> + </value> + </entry> + <entry> + <key>LowVision/login_shell</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/palette</key> + <value> + <string>#000000000000:#AAAA00000000:#0000AAAA0000:#AAAA55550000:#00000000AAAA:#AAAA0000AAAA:#0000AAAAAAAA:#AAAAAAAAAAAA:#555555555555:#FFFF55555555:#5555FFFF5555:#FFFFFFFF5555:#55555555FFFF:#FFFF5555FFFF:#5555FFFFFFFF:#FFFFFFFFFFFF</string> + </value> + </entry> + <entry> + <key>LowVision/scroll_background</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/scroll_on_keystroke</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/scroll_on_output</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/scrollback_lines</key> + <value> + <int>512</int> + </value> + </entry> + <entry> + <key>LowVision/scrollback_unlimited</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/scrollbar_position</key> + <value> + <string>right</string> + </value> + </entry> + <entry> + <key>LowVision/silent_bell</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/title</key> + <value> + <string>Terminal</string> + </value> + </entry> + <entry> + <key>LowVision/title_mode</key> + <value> + <string>replace</string> + </value> + </entry> + <entry> + <key>LowVision/update_records</key> + <value> + <bool>true</bool> + </value> + </entry> + <entry> + <key>LowVision/use_custom_command</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/use_custom_default_size</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/use_system_font</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/use_theme_colors</key> + <value> + <bool>false</bool> + </value> + </entry> + <entry> + <key>LowVision/visible_name</key> + <value> + <string>Low Vision</string> + </value> + </entry> + <entry> + <key>LowVision/word_chars</key> + <value> + <string>-A-Za-z0-9,./?%&#:_=+@~</string> + </value> + </entry> + </entrylist> +</gconfentryfile> 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 |