fix for the fbsetbg-fix from yesterday
This commit is contained in:
parent
fa675bb367
commit
0e2a8b9a43
1 changed files with 13 additions and 13 deletions
26
util/fbsetbg
26
util/fbsetbg
|
@ -46,7 +46,7 @@
|
|||
# _NET_CURRENT_DESKTOP
|
||||
|
||||
# The wallpapersetter is selected in this order
|
||||
wpsetters="${wpsetters:=fbsetroot Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg'
|
||||
wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg'
|
||||
lastwallpaper="${HOME}/.fluxbox/lastwallpaper"
|
||||
|
||||
|
||||
|
@ -194,6 +194,16 @@ debugfbsetbg() {
|
|||
exit 0
|
||||
}
|
||||
|
||||
use_fbsetroot() {
|
||||
|
||||
fbsetroot $wallpaper
|
||||
if [ ! "$remember" = false ]; then
|
||||
remembercommand
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
message "no options given"
|
||||
display_usage
|
||||
|
@ -263,11 +273,13 @@ while [ $# -gt 0 ]; do
|
|||
-b) option=fbsetroot
|
||||
shift
|
||||
wallpaper=$*
|
||||
use_fbsetroot
|
||||
break ;;
|
||||
-B) option=fbsetroot
|
||||
shift
|
||||
wallpaper=$*
|
||||
remember=false
|
||||
use_fbsetroot
|
||||
break ;;
|
||||
-r) option2=$option
|
||||
option=random
|
||||
|
@ -357,9 +369,6 @@ standardok=\
|
|||
"$WPSETTER is a nice wallpapersetter. You won't have any problems."
|
||||
|
||||
case $WPSETTER in
|
||||
fbsetroot)
|
||||
debugstory="fbsetroot does not show any pictures."
|
||||
;;
|
||||
chbg)
|
||||
full='-once -mode maximize'
|
||||
tile='-once -mode tile'
|
||||
|
@ -470,15 +479,6 @@ if [ -z "$DISPLAY" ]; then
|
|||
fi
|
||||
|
||||
|
||||
if [ "$option" = fbsetroot ]; then
|
||||
fbsetroot $wallpaper
|
||||
if [ ! "$remember" = false ]; then
|
||||
remembercommand
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# random wallpaper code
|
||||
if [ "$option" = random ]; then
|
||||
# Lets make one thing clear...
|
||||
|
|
Loading…
Reference in a new issue