LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   need better fluxbox tool for changing desktop picture (https://www.linuxquestions.org/questions/linux-desktop-74/need-better-fluxbox-tool-for-changing-desktop-picture-874073/)

Melzanis 04-10-2011 01:34 AM

need better fluxbox tool for changing desktop picture
 
Hello Forum,

I am trying to changing the desktop image in the fluxbox environment. But every time I use "fbsetbg -f /path to image" and restart it doesnt change the image. I did load on image but I had to force restart because that "fbsetbg command will sometimes lock up my computer. I was wondering if anyone knows of a better tool, how to get it, and how I use it to change the desktop image

thanks

linus72 04-10-2011 06:59 PM

you should have a "lastwallpaper" file in ~/.fluxbox/ and fbsetbg should be in your ~/.fluxbox/startup file
here's mine

Code:

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# fbsetbg -f /root/pictures/wallpaper.png
#
# This sets a black background

/usr/bin/fbsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# This sets a random background
# fbsetbg -r /usr/share/wallpapers/

# This sets the last used background in ~/.fluxbox/lastwallpaper
 fbsetbg -l /usr/share/wallpapers/


# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp "/root/.fonts"
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap "$HOME/.Xmodmap"



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# nitrogen --restore
# yeahconsole --perl-lib ${HOME}/.urxvt-perl/ -pe tabbed &
 lxpanel &
 conky -d
# pcmanfm -d &
# fbpanel &
# systray-volume-control &
# parcellite &

# tint2 &
# wbar-start &
 gvolwheel &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log "/root/.fluxbox/log"

and here is my "lastwallpaper" file
Quote:

$full $full|/usr/share/wallpapers//Fantasy-Dragon-14084-789948.jpeg||:0.0
you can use Nitrogen (SlackBuilds), PCManFM can also show folders on desktop and set the background
there are many others

coralfang 04-10-2011 07:05 PM

Open up /home/username/.fluxbox/init and edit "rootCommand":
Code:

session.screen0.rootCommand: fbsetbg -l
`fbsetbg -l` sets the previous wallpaper.

You can also add this to your menu file to change wallpapers quickly:
Code:

[wallpapers] (/home/username/pictures/wallpapers/) {}

frankbell 04-10-2011 08:51 PM

fbsetbg should change your wall paper immediately. It should not require a restart.

I prefer to put my wallpaper command in .fluxbox/startup, but it works either way.

What is the output of fbsetbg -i?


All times are GMT -5. The time now is 02:10 PM.