all repos — fluxbox @ 1fe9ef3056e80dfed05bbb1b00443c11a64223c1

custom fork of the fluxbox windowmanager

Renaming of 'bsetroot' to 'fbsetroot' (Mathias)
blackbox's 'bsetroot' and fluxbox's 'bsetroot' have different syntax
nowadays and collide when you install fluxbox and blackbox. hence
the renaming.
mathias mathias
commit

1fe9ef3056e80dfed05bbb1b00443c11a64223c1

parent

9531144097b7fdae1051933fd2aa89c8928b72b2

M ChangeLogChangeLog

@@ -1,6 +1,14 @@

(Format: Year/Month/Day) Changes for 0.9.14: -*05/07/07: +*05/07/12: + Renaming of 'bsetroot' to 'fbsetroot' (Mathias) + blackbox's 'bsetroot' and fluxbox's 'bsetroot' have different syntax + nowadays and collide when you install fluxbox and blackbox. hence + the renaming + updated manpage, helper utils (fbgm, startfluxbox, fbsetbg), nls etc +*05/07/06: + Added even more applications to fbgm (Mathias) + fluxbox-generate_menu.in * Added info about locale path in -info argument (Thanks php-coder) src/main.cc, nls/* *05/07/05:
M doc/Makefile.amdoc/Makefile.am

@@ -4,9 +4,9 @@

SUBDIRS = ru CLEANFILES = fluxbox.1 fluxstyle.1 MAINTAINERCLEANFILES = Makefile.in -man_MANS = fluxbox.1 bsetroot.1 fbrun.1 fbsetbg.1 \ +man_MANS = fluxbox.1 fbsetroot.1 fbrun.1 fbsetbg.1 \ startfluxbox.1 fluxstyle.1 fbrun.1 -EXTRA_DIST=fluxbox.1.in bsetroot.1 fbrun.1 startfluxbox.1 fbsetbg.1 \ +EXTRA_DIST=fluxbox.1.in fbsetroot.1 fbrun.1 startfluxbox.1 fbsetbg.1 \ fluxstyle.1.in Coding_style distclean-local: rm -f *\~
M doc/bsetroot.1doc/fbsetroot.1

@@ -1,5 +1,5 @@

.\" -.\" Man page for Bsetroot +.\" Man page for fbsetroot .\" .\" Copyright (c) 2000 by Wilbert Berendsen <wbsoft@xs4all.nl> .\" Copyright (c) 2004 by Curt "Asenchi" Micol <asenchi@asenchi.com>

@@ -19,36 +19,35 @@ .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER

.\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS DOCUMENTATION .\" -.TH bsetroot 1 "June 25th, 2004" "0.60.3" +.TH fbsetroot 1 "July 8th, 2005" "0.9.13" .SH NAME -bsetroot \- a simple background utility used by the Fluxbox window manager, ori -ginally written -for and by the original Blackbox window manager team. +fbsetroot \- a simple background utility used by the Fluxbox window manager, originally +written for and by the original Blackbox window manager team. .SH SYNOPSIS -.BR bsetroot " \-help" +.BR fbsetroot " \-help" .br -.B bsetroot +.B fbsetroot .RI "[ \-display " display " ] \-solid " color .br -.B bsetroot +.B fbsetroot .RI "[ \-display " display " ] \-mod " "x y" " \-fg " color " \-bg " color .br -.B bsetroot +.B fbsetroot .RI "[ \-display " display " ] \-gradient " texture " \-from " color " \-to " color .SH DESCRIPTION -Bsetroot is a utility that can control the appearance of the root window in +fbsetroot is a utility that can control the appearance of the root window in three ways: Either give it a solid color, or write a two color modula pattern to it, or render a gradient texture, based on two different colors. .PP -Bsetroot resembles +fbsetroot resembles .IR xsetroot (1) in this functionality but it supports multiple screen displays, and gradient textures the same way as Blackbox or Fluxbox does. It doesn't handle cursors etc. -Bsetroot was originally part of the Blackbox package and was carried over with -the code that became Fluxbox. +fbsetroot was originally part of the Blackbox package and was carried over with +the code that became Fluxbox. It was called bsetroot back in those days. .SH OPTIONS -Bsetroot operates in three ways, you must choose one of the first 3 options: +fbsetroot operates in three ways, you must choose one of the first 3 options: .TP .BI \-solid " color" Sets the root window to specified color.

@@ -75,7 +74,7 @@ color.

.RE .TP .BI \-display " display" -Tells Bsetroot to connect to the specified display. +Tells fbsetroot to connect to the specified display. .TP .BI "\-bg, \-background " color Background color.

@@ -104,13 +103,7 @@ .TP

.B \-help Prints version info and short help text. .SH AUTHOR -Bsetroot is written and maintained by Brad Hughes -.nh \" hyphenation off -(blackbox@alug.org) -.hy \" on again -and Jeff Raven -.nh -(jraven@psu.edu). +fbsetroot is written and maintained by the Fluxbox Development Team .PP This manpage was modified by Curt "Asenchi" Micol <asenchi@asenchi.com> for the Fluxbox window manager.
M nls/C/Translation.mnls/C/Translation.m

@@ -213,7 +213,7 @@ 2 Workspaces

3 New Workspace 4 Remove Last -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 2 Couldn't create pixmap atoms, giving up!
M nls/be_BY/Translation.mnls/be_BY/Translation.m

@@ -211,7 +211,7 @@ 2 Ïðàöî¢íûÿ ìåñöû

3 Íîâàå ïðàöî¢íàå ìåñöà 4 Âûäàë³öü àïîøíÿå -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: ïàìûëêà: ïàâ³ííà áûöü íåøòà ç íàñòóïíàãà: -solid, -mod, -gradient\n 2 Couldn't create pixmap atoms, giving up!
M nls/bg_BG/Translation.mnls/bg_BG/Translation.m

@@ -104,7 +104,7 @@ 2 Ðàáîòíè Ìåñòà

3 Íîâî Ðàáîòíî Ìÿñòî 4 Ìàõíè Ïîñëåäíîòî -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/cs_CZ/Translation.mnls/cs_CZ/Translation.m

@@ -210,7 +210,7 @@ 2 Seznam ploch

3 Nová plocha 4 Odstranit poslední -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 2 Couldn't create pixmap atoms, giving up!
M nls/da_DK/Translation.mnls/da_DK/Translation.m

@@ -104,7 +104,7 @@ 2 Skriveborde

3 Nyt skrivebord 4 Fjern sidste -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: fejl: specificér en af følgende: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/de_DE/Translation.mnls/de_DE/Translation.m

@@ -206,7 +206,7 @@ 2 Desktops

3 Neuer Desktop 4 Letzten Desktop entfernen -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 2 Couldn't create pixmap atoms, giving up!
M nls/es_ES/Translation.mnls/es_ES/Translation.m

@@ -104,7 +104,7 @@ 2 Escritorios

3 Escritorio nuevo 4 Quitar el último escritorio -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: es necesario especifiar uno de: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/et_EE/Translation.mnls/et_EE/Translation.m

@@ -102,7 +102,7 @@ 2 Töölauad

3 Uus töölaud 4 Eemalda viimane -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: viga: pead määratlema ühe järgnevaist: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/fluxbox-nls.hhnls/fluxbox-nls.hh

@@ -202,10 +202,10 @@ WorkspaceMenuTitle = 2,

WorkspaceNewWorkspace = 3, WorkspaceRemoveLast = 4, - bsetrootSet = 18, - bsetrootMustSpecify = 1, - bsetrootNoPixmapAtoms = 2, - bsetrootUsage = 3, + fbsetrootSet = 18, + fbsetrootMustSpecify = 1, + fbsetrootNoPixmapAtoms = 2, + fbsetrootUsage = 3, mainSet = 19, mainDISPLAYRequiresArg = 1,
M nls/fr_FR/Translation.mnls/fr_FR/Translation.m

@@ -104,7 +104,7 @@ 2 Bureaux

3 Nouveau bureau 4 Supprimer le dernier -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: Erreur: il faut préciser: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/it_IT/Translation.mnls/it_IT/Translation.m

@@ -103,7 +103,7 @@ 2 Aree di lavoro

3 Crea una nuova 4 Elimina l'ultima -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: errore: specicare una delle opzioni : -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/ja_JP/Translation.mnls/ja_JP/Translation.m

@@ -106,7 +106,7 @@ 2 ¥ï¡¼¥¯¥¹¥Ú¡¼¥¹

3 ¿·µ¬¥ï¡¼¥¯¥¹¥Ú¡¼¥¹ºîÀ® 4 ËöÈø¤Î¥ï¡¼¥¯¥¹¥Ú¡¼¥¹¤òºï½ü -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: ¼¡¤ÎÃ椫¤é°ì¤Ä¤òÁªÂò¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/ko_KR/Translation.mnls/ko_KR/Translation.m

@@ -210,7 +210,7 @@ 2 ÀÛ¾÷°ø°£

3 »õ ÀÛ¾÷°ø°£ Ãß°¡ 4 ¸¶Áö¸· °Í Á¦°Å -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 2 Couldn't create pixmap atoms, giving up!
M nls/lv_LV/Translation.mnls/lv_LV/Translation.m

@@ -103,7 +103,7 @@ 2 Darba vietas

3 Jauna Darba vieta 4 Noòemt Pçdçjo -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: kïûda: jânosaka viens no: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/nl_NL/Translation.mnls/nl_NL/Translation.m

@@ -105,7 +105,7 @@ 2 Werkvelden

3 Nieuw werkveld 4 Verwijder laatste -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: error: must specify one of: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/pl_PL/Translation.mnls/pl_PL/Translation.m

@@ -217,7 +217,7 @@ 2 Pulpity

3 Nowy Pulpit 4 Usuñ Ostatni -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: b³±d: musisz okre¶liæ jedno z: -solid, -mod, -gradient\n 2 Nie mogê stowrzyæ elementów pixmap - dajê sobie spokój!
M nls/pt_BR/Translation.mnls/pt_BR/Translation.m

@@ -104,7 +104,7 @@ 2 Areas de Trabalho

3 Nova Area de Trabalho 4 Remover Ultima -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: erro: necessario especificar um dos seguintes argumentos: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/pt_PT/Translation.mnls/pt_PT/Translation.m

@@ -104,7 +104,7 @@ 2 Areas de Trabalho

3 Nova Area de Trabalho 4 Remover Ultima Area de Trabalho -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: erro: necessario especificar um dos seguintes argumentos: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/ru_RU/Translation.mnls/ru_RU/Translation.m

@@ -154,7 +154,7 @@ 2 òÁÂÏÞÉÅ ÓÔÏÌÙ

3 îÏ×ÙÊ ÒÁÂÏÞÉÊ ÓÔÏÌ 4 õÄÁÌÉÔØ ÐÏÓÌÅÄÎÉÊ -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: ÏÛÉÂËÁ: ÎÅÏÂÈÏÄÉÍÏ ÚÁÄÁÔØ ÏÄÉÎ ÉÚ ÓÌÅÄÕÀÝÉÈ ËÌÀÞÅÊ: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/sl_SI/Translation.mnls/sl_SI/Translation.m

@@ -105,7 +105,7 @@ 2 Delovne povr¹ine

3 Nova delovna povr¹ina 4 Odstrani zadnjo -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: napaka: doloèiti je treba eno: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/sv_SE/Translation.mnls/sv_SE/Translation.m

@@ -105,7 +105,7 @@ 2 Skrivbord

3 Nytt skrivbord 4 Ta bort sista -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: fel: måste specifiera en av: -solid, -mod, -gradient\n 3 %s 2.0: (c) 1997-2000 Brad Hughes\n\n\
M nls/tr_TR/Translation.mnls/tr_TR/Translation.m

@@ -104,7 +104,7 @@ 2 Masaüstleri

3 Yeni Masaüstü 4 Son Masaüstünü Kaldýr -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s : hata : -solid, -mod yada -gradient'den en az birisini belirlemek zorundasýnýz\n 3 %s 2.0 : Telif hakký (c) 1997-2000 Brad Hughes\n\n\
M nls/vi_VN/Translation.mnls/vi_VN/Translation.m

@@ -185,7 +185,7 @@ 2 Không gian

3 Không gian mới 4 Xóa không gian cuối -$set 18 #bsetroot +$set 18 #fbsetroot 1 %s: lỗi: cần đưa ra một trong các từ khóa sau: -solid, -mod, -gradient\n 2 Không thể tạo các pixmap!
M util/Makefile.amutil/Makefile.am

@@ -2,9 +2,9 @@ # util/Makefile.am for Fluxbox

SUBDIRS= fbrun INCLUDES= -I$(top_srcdir)/src -I$(top_srcdir)/src/FbTk bin_SCRIPTS= fbsetbg fluxbox-generate_menu startfluxbox -bin_PROGRAMS= bsetroot -bsetroot_SOURCES= bsetroot.cc bsetroot.hh -bsetroot_LDADD= ../src/FbRootWindow.o ../src/FbAtoms.o \ +bin_PROGRAMS= fbsetroot +fbsetroot_SOURCES= fbsetroot.cc fbsetroot.hh +fbsetroot_LDADD=../src/FbRootWindow.o ../src/FbAtoms.o \ ../src/FbTk/libFbTk.a MAINTAINERCLEANFILES= Makefile.in

@@ -16,7 +16,7 @@

clean-local: rm -f startfluxbox fluxbox-generate_menu -bsetroot.o: bsetroot.cc ../config.h $(srcdir)/bsetroot.hh \ +fbsetroot.o: fbsetroot.cc ../config.h $(srcdir)/fbsetroot.hh \ $(top_srcdir)/src/FbRootWindow.hh $(top_srcdir)/src/FbAtoms.hh startfluxbox: startfluxbox.in
M util/bsetroot.ccutil/fbsetroot.cc

@@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER

// $Id$ -#include "bsetroot.hh" +#include "fbsetroot.hh" #include "../src/FbTk/I18n.hh" #include "../src/FbTk/ImageControl.hh"

@@ -52,7 +52,7 @@ #include <iostream>

using namespace std; -bsetroot::bsetroot(int argc, char **argv, char *dpy_name) +fbsetroot::fbsetroot(int argc, char **argv, char *dpy_name) : FbTk::App(dpy_name), m_app_name(argv[0]) { pixmaps = (Pixmap *) 0;

@@ -121,7 +121,7 @@

if ((mod + sol + grd) != true) { _FB_USES_NLS; cerr<<m_app_name<< - _FBTEXT(bsetroot, MustSpecify, + _FBTEXT(fbsetroot, MustSpecify, "Error: must specify one of: -solid, -mod, -gradient\n", "user didn't give one of the required options")<<endl;

@@ -142,7 +142,7 @@

} -bsetroot::~bsetroot() { +fbsetroot::~fbsetroot() { XKillClient(display(), AllTemporary); if (pixmaps) { // should always be true

@@ -164,7 +164,7 @@ set root pixmap atoms so that apps like

Eterm and xchat will be able to use transparent background */ -void bsetroot::setRootAtoms(Pixmap pixmap, int screen) { +void fbsetroot::setRootAtoms(Pixmap pixmap, int screen) { Atom atom_root, atom_eroot, type; unsigned char *data_root, *data_eroot; int format;

@@ -196,7 +196,7 @@ atom_eroot = XInternAtom(display(), "ESETROOT_PMAP_ID", false);

if (atom_root == None || atom_eroot == None) { _FB_USES_NLS; - cerr<<_FBTEXT(bsetroot, NoPixmapAtoms, "Couldn't create pixmap atoms, giving up!", "Couldn't create atoms to point at root pixmap")<<endl; + cerr<<_FBTEXT(fbsetroot, NoPixmapAtoms, "Couldn't create pixmap atoms, giving up!", "Couldn't create atoms to point at root pixmap")<<endl; exit(1); }

@@ -209,7 +209,7 @@

/** Draws pixmaps with a single color */ -void bsetroot::solid() { +void fbsetroot::solid() { register int screen = 0; pixmaps = new Pixmap[ScreenCount(display())];

@@ -244,7 +244,7 @@ /**

Draws pixmaps with an 16x16 pattern with fg and bg colors. */ -void bsetroot::modula(int x, int y) { +void fbsetroot::modula(int x, int y) { char data[32]; long pattern;

@@ -322,7 +322,7 @@

/** draws pixmaps with a fluxbox texure */ -void bsetroot::gradient() { +void fbsetroot::gradient() { // using temporaray pixmap and then copying it to background pixmap, as it'll // get crashed somewhere on the way causing apps like XChat chrashing // as the pixmap has been destroyed

@@ -378,12 +378,12 @@

/** Shows information about usage */ -void bsetroot::usage(int exit_code) { +void fbsetroot::usage(int exit_code) { _FB_USES_NLS; - cerr<<m_app_name<<" 2.3 : (c) 2003-2004 Fluxbox Development Team"<<endl; + cerr<<m_app_name<<" 2.3 : (c) 2003-2005 Fluxbox Development Team"<<endl; cerr<<m_app_name<<" 2.1 : (c) 2002 Claes Nasten"<<endl; cerr<<m_app_name<<" 2.0 : (c) 1997-2000 Brad Hughes\n"<<endl; - cerr<<_FBTEXT(bsetroot, Usage, + cerr<<_FBTEXT(fbsetroot, Usage, " -display <string> display connection\n" " -mod <x> <y> modula pattern\n" " -foreground, -fg <color> modula foreground color\n"

@@ -393,7 +393,7 @@ " -from <color> gradient start color\n"

" -to <color> gradient end color\n\n" " -solid <color> solid color\n\n" " -help print this help text and exit\n", - "bsetroot usage options")<<endl; + "fbsetroot usage options")<<endl; exit(exit_code); }

@@ -421,7 +421,7 @@ display_name = argv[i];

} } - bsetroot app(argc, argv, display_name); + fbsetroot app(argc, argv, display_name); return (0); }
M util/bsetroot.hhutil/fbsetroot.hh

@@ -20,8 +20,8 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER

// $Id$ -#ifndef BSETROOT_HH -#define BSETROOT_HH +#ifndef FBSETROOT_HH +#define FBSETROOT_HH #include "../src/FbTk/App.hh"

@@ -31,10 +31,10 @@ class ImageControl;

}; -class bsetroot : public FbTk::App { +class fbsetroot : public FbTk::App { public: - bsetroot(int argc, char **argv, char * dpy_name= 0); - ~bsetroot(); + fbsetroot(int argc, char **argv, char * dpy_name= 0); + ~fbsetroot(); void gradient(); void modula(int, int);

@@ -52,4 +52,4 @@ char *m_app_name;

}; -#endif // BSETROOT_HH +#endif // FBSETROOT_HH
M util/fbsetbgutil/fbsetbg

@@ -61,7 +61,7 @@ display_usage() {

cat << EOF Usage: $command [-u/-U [wallpapersetter]] [-fFcCtTaA /path/to/wallpaper] [-r/-R /path/to/wallpaperdirectory] - [-b/-B bsetrootoptions] [-l] [-h] [-i] [-p] + [-b/-B fbsetrootoptions] [-l] [-h] [-i] [-p] Use \`\`$command -h'' for a complete help message. EOF

@@ -80,7 +80,7 @@ -a Set maximized wallpaper, preserving aspect.

( if your bgsetter doesn't support this we fall back to -f ) -u Use specified wallpapersetter, use no argument to forget. - -b Forward the options to bsetroot. + -b Forward the options to fbsetroot. -r set random wallpaper from a directory -F,-C,-T,-A,-U,-B,-R same as uncapsed but without remembering.

@@ -174,7 +174,7 @@

remembercommand() { grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp mv -f ${lastwallpaper}.tmp ${lastwallpaper} - if [ "$option" = bsetroot ]; then + if [ "$option" = fbsetroot ]; then echo $option'|'$wallpaper'|'$DISPLAY >> $lastwallpaper return fi

@@ -262,11 +262,11 @@ -T) option='$tile'

wallpaper=$2 remember=false break ;; - -b) option=bsetroot + -b) option=fbsetroot shift wallpaper=$* break ;; - -B) option=bsetroot + -B) option=fbsetroot shift wallpaper=$* remember=false

@@ -461,8 +461,8 @@ exit 1

fi -if [ "$option" = bsetroot ]; then - bsetroot $wallpaper +if [ "$option" = fbsetroot ]; then + fbsetroot $wallpaper if [ ! "$remember" = false ]; then remembercommand fi
M util/startfluxbox.inutil/startfluxbox.in

@@ -44,7 +44,7 @@ # bsetbg -f ~/pictures/wallpaper.png

# # This sets a black background -@pkgbindir@/bsetroot -solid black +@pkgbindir@/fbsetroot -solid black # This shows the fluxbox-splash-screen # fbsetbg -C @pkgdatadir@/splash.jpg