Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-06-03 03:14:10

johnywhy
Member
Registered: 2011-10-09
Posts: 288

How To Script .gtkrc-2.0 with bash?

hi

i'm writing a bash script to do stuff with the .gtkrc-2.0 file.

Question: are there any functions available in bash, or callable from bash, for reading from and writing to .gtkrc-2.0?

.gtkrc-2.0 appears to be structured strangely, otherwise i'd make a little script to read/write it myself. my .gtkrc-2.0 looks like this:

gtk-double-click-time = 500
gtk-tooltip-timeout = 2500

style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 0
    XfdesktopIconView::selected-label-alpha = 0
    XfdesktopIconVIew::ellipsize-icon-labels = 0

    XfdesktopIconVIew::cell-spacing = 0
    XfdesktopIconView::cell-padding = 5
    XfdesktopIconView::cell-text-width-proportion = 2
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

some stuff has "=", some has "::", some has neither, some is inside style tags, some isn't. seems very all over the place.

i was hoping perhaps your developers could share your .gtkrc-2.0 read/write functions, or explain how to call them from bash.

is there a simpler or more consistent way to structure this file? is there a sample file available containing ALL possible settings?

thanks!

alsp posted here-
http://saluki-linux.com/Forum/viewtopic … =248&p=375

Last edited by johnywhy (2012-06-03 16:50:22)


arch xfce x86_64

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 9 queries executed - Memory usage: 508.84 KiB (Peak: 509.68 KiB) ]