Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Agregué tbg - terminal background en Xfce #1

Merged
merged 1 commit into from

2 participants

@ppaez

Uso este script desde hace semanas y es muy útil para alternar entre condiciones de mucha y poca luz ambiental.

@renich
Owner

Hola, Patricio,

Un buen README estaría bien.

@renich renich merged commit f14d6ad into LinuxCabal:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 6, 2013
  1. @ppaez
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 0 deletions.
  1. +18 −0 generales/tbg
View
18 generales/tbg
@@ -0,0 +1,18 @@
+#! /bin/bash
+
+# tbg - terminal background in Xfce
+#
+# Alternates between white and black
+# background colors
+
+terminalrc=~/.config/Terminal/terminalrc
+light_color=ffffffffffff
+dark_color=000000000000
+
+if grep "ColorBackground=#${light_color}" $terminalrc >/dev/null; then
+ sed -i -e "s/\(ColorBackground=#\)${light_color}/\1${dark_color}/" \
+ -e "s/\(ColorForeground=#\)${dark_color}/\1${light_color}/" $terminalrc
+else
+ sed -i -e "s/\(ColorForeground=#\)${light_color}/\1${dark_color}/" \
+ -e "s/\(ColorBackground=#\)${dark_color}/\1${light_color}/" $terminalrc
+fi
Something went wrong with that request. Please try again.