Thursday, March 29, 2012

Make Firefox work with dark themes in Gnome/GTK/Unity

Google and stackoverflow like to fuck with the colors for their search boxes.. after fighting with greasemonkey for the whole day I finally gave up and installed Stylish then added this as a global stylesheet:

input, textarea {
    background: #000000 ! important;
    color: #FFFFFF ! important;
}

In conkeror, simply changed everything with a stylesheet in the .conkerorrc file (or folder).
in .conkerorrc/main.js


let (sheet = get_home_directory()) {
    sheet.appendRelativePath(".conkerorrc/stylesheets/input_color_fix-user.css");
    register_user_stylesheet(make_uri(sheet));
}

in .conkerorrc/stylesheet/input_color_fix-user.css


input, textarea {
    background: #000000 ! important;
    color: #FFFFFF ! important;
} 
 

Tuesday, March 27, 2012

Ubuntu, Unity, Xmonad and the missing appmenu

Finally figured out how to remove the global appmenu in unity that causes the text based menu at the top of my apps to disappear in xmonad.  Have to remove indicator-appmenu.

sudo apt-get remove indicator-appmenu

Monday, March 26, 2012

Changing theme colors in Unity for Ubuntu without installing gnome-tweak-tool

gnome-tweak-tool seems to want to install all of gnome for it to work.  Instead just edit these files:

/usr/share/themes/[theme]/gtk-3.0/settings.ini
 
/usr/share/themes/[theme]/gtk-3.0/gtk.css 
 
/usr/share/themes/[theme]/gtk-2.0/gtkrc 
 
source

Sunday, March 4, 2012

Geben CheatSheet

istep into
ostep over
rstep out
bset breakpoint at current line
uunset breakpoint at current line
Bbreakpoint menu
(set conditional break points, call breakpoints, etc)..
investigate later
grun
qquit
eevaluate php
crun to current line (run to cursor)
C-c fopen file in geben, useful for setting
breakpoints in files further down the call stack
(use after geben has started with a call to
http://yoururl/?XDEBUG_SESSION_START)