LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2012, 05:35 PM   #1
PClOStinspace
Member
 
Registered: Jun 2008
Location: Bracknell, UK
Distribution: Ubuntu 13.10 Saucy
Posts: 152

Rep: Reputation: 19
How do I show wallpaper file name in conky


I am using fbsetbg -r to choose my wallpaper on my fluxbox desktop. I would like to have conky display the file name of the currently displayed wallpaper. Is this possible?? what line would I need to add to my conkyrc??
 
Old 01-10-2012, 04:20 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hello,

From this following page: http://en.gentoo-wiki.com/wiki/Fluxbox
Quote:
Now that you have a working Fluxbox installation, you will first want to customize the functionality to your needs and work habits. Let's check the files in the ~/.fluxbox directory.

init: Main configuration file.
menu: File that changes the items in your root menu.
keys: Lets you change keybindings and create new ones.
apps: Stores information about every application that you want Fluxbox to remember, such as default position, size and decoration.
lastwallpaper: Created by fbsetbg, more on that later, this file stores the information about the last wallpaper you used so that you don't have to specify its location again.
After you start up, and your wallpaper is set, have a look at the "lastwallpaper" file, and see if it points to the currently used wallpaper. If not, look in init; It should be lastwallpaper though, to my knowledge. Knowing that information, you can grep out the filename, and use it within your conky configuration.

Cheers,

Josh
 
Old 01-10-2012, 03:07 PM   #3
PClOStinspace
Member
 
Registered: Jun 2008
Location: Bracknell, UK
Distribution: Ubuntu 13.10 Saucy
Posts: 152

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by corp769 View Post
Knowing that information, you can grep out the filename, and use it within your conky configuration.

Cheers,

Josh
Thanks for the reply,
Whilst I understand the basics of what you are saying would you mind imagining you are talking to someone with no understanding of CLI then expand upon the 'grep out' bit!! I did 'man grep' to try and figure it out and got utterly confused, it's a long man page that is not friendly to people like me with a limited grasp of the 'under the hood' stuff.

A further obstacle for me comes when I look in the lastwallpaper file, I am setting random wallpapers with fbsetbg (hence it would be nice to have the file name in conky) so lastwallpaper reads:-
Quote:
random $full|/path/to/background_images||:0.0
No mention of the filename though!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky - Slackware 13.1 - Don't show temprature MarcosPauloBR Slackware 2 07-19-2011 02:49 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 12:21 PM
Conky won't show everything vockleya Linux - Software 4 03-30-2010 03:49 PM
conky under transparent gnome-terminal does not show synss Linux - Desktop 2 10-13-2007 12:46 AM
Wallpaper: SLide show wallpaper from online pictures eponymous Linux - Software 0 11-29-2004 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration