aboutsummaryrefslogtreecommitdiff
path: root/util/bsetbg
diff options
context:
space:
mode:
Diffstat (limited to 'util/bsetbg')
-rwxr-xr-xutil/bsetbg22
1 files changed, 18 insertions, 4 deletions
diff --git a/util/bsetbg b/util/bsetbg
index ccf0fd0..0250495 100755
--- a/util/bsetbg
+++ b/util/bsetbg
@@ -223,6 +223,16 @@ find_app()
223 esac 223 esac
224} 224}
225 225
226search_xsri()
227{
228 ### xsri
229 full="xsri --scale-width=100 --scale-width=100"
230 tile="xsri --tile"
231 center="xsri --center-x --center-y"
232 default=$center
233 find_app xsri
234}
235
226search_display() 236search_display()
227{ 237{
228 ### display 238 ### display
@@ -311,7 +321,7 @@ create_config()
311 case $UID in 0) 321 case $UID in 0)
312 if [ "$ARGUMENT" != "-r" ]; then 322 if [ "$ARGUMENT" != "-r" ]; then
313 echo "$NAME: running X as root is a security hazard, and is NOT a good idea!" 323 echo "$NAME: running X as root is a security hazard, and is NOT a good idea!"
314 echo "$NAME: if you insist upon having a ~/.bsetbgrc for root, run bsetbg with" 324 echo "$NAME: if you insist upon having a ~/.fluxbox/bsetbg for root, run bsetbg with"
315 echo "$NAME: the '-r' flag to force its creation. you have been warned!" 325 echo "$NAME: the '-r' flag to force its creation. you have been warned!"
316 exit 1 326 exit 1
317 fi 327 fi
@@ -336,6 +346,10 @@ create_config()
336 INFO= && error_msg 3 346 INFO= && error_msg 3
337 fi 347 fi
338 348
349 if [ ! -d ~/.fluxbox ]; then
350 mkdir ~/.fluxbox
351 fi
352
339 echo "# $CONFIG" >> $CONFIG 353 echo "# $CONFIG" >> $CONFIG
340 echo "#" >> $CONFIG 354 echo "#" >> $CONFIG
341 echo "# automagically generated with loving care by $NAME $VERSION on `date`" >> $CONFIG 355 echo "# automagically generated with loving care by $NAME $VERSION on `date`" >> $CONFIG
@@ -600,8 +614,8 @@ debug()
600 echo 614 echo
601} 615}
602 616
603IMAGE_APPS="display Esetroot wmsetbg xv xli qiv" 617IMAGE_APPS="display Esetroot wmsetbg xv xli qiv xsri"
604CONFIG="$HOME/.bsetbgrc" 618CONFIG="$HOME/.fluxbox/bsetbg"
605NAME=bsetbg 619NAME=bsetbg
606VERSION=1.12 620VERSION=1.12
607MORE="(C) 2000 by lordzork industries (http://lordzork.com/)" 621MORE="(C) 2000 by lordzork industries (http://lordzork.com/)"
@@ -696,4 +710,4 @@ case $1 in
696 fi 710 fi
697 help_msg 711 help_msg
698 fi 712 fi
699esac \ No newline at end of file 713esac