티스토리 뷰

Posted by jodrell@spod.uk.net on 2003-08-01 00:00:00

If you often switch between GNOME and another window manager, for example Blackbox, there's no obvious way to have a common background image that's used for both. However it's not hard to craft together some shell code using gconftool to get the filename of the current GNOME background. Then you can use bsetroot or xset to set your background to the same image that you use in GNOME.
#!/bin/sh
# setroot - a shell script to retrieve the current background from the gconf database and set it
BACKGROUND=`gconftool-2 --get /desktop/gnome/background/picture_filename
bsetroot $BACKGROUND

'hacking > linux&gnome' 카테고리의 다른 글

gconf-editor  (0) 2003.08.09
Setting your home directory to be the desktop  (0) 2003.08.09
Changin' Splash Image  (0) 2003.08.09
"Set Background" Nautilus script  (0) 2003.08.09
Defining shortcuts in Metacity  (0) 2003.08.09
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함