Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 17:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
wallpaper2
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Author Message
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Mon 05 Aug 2013, 15:05    Post subject:  wallpaper2
Subject description: This is intended to be the successor to the wallpaper setter I wrote in 2007.
 

First release for testing. Alpha status, please don't try it if you don't know how to put things back together again. That said, I really think this has the potential to be an even better program than the original version, which is now completely out of date. The old interface was cluttered and ungainly. This one's nice and clean, just giving the average user what they need and no more.

You must have some development tools to install, at the very least "make". I'll distribute official packages when it's well tested. Typical source type distribution except no "./configure". See the INSTALL and README files.

It has 2 backends at the moment for setting the wallpaper. In a brand new install it will default to using feh, but you can change that by clicking the "Options" tab and clicking the combobox over to "rox" for use in Puppy.

The directory will default to /usr/share/backgrounds or the first directory under it that contains any files. You can add other directories to the list by typing them into the combobox and pressing Enter, or by clicking the folder icon to bring up a file browser. Once you've opened a new directory the program remembers it for later visits.

All comments welcome. Contributions are welcome, but please keep the following in mind.

My preference for code submissions are in this order:
1) pull requests on bitbucket
2) pull requests on github once I get it mirrored there
3) patch files created with "diff -Naur"
4) My least favorite is raw code pasted on the forum. I'll look it over but please at least comment it well.

Anything that goes in MUST be portable code that would work on any OS with a bourne shell and gtkdialog. No assumption of other tools being installed or whether or not the user is root.

Download the tarball from bitbucket

================================
EDIT: next alpha release

See attached pet package
wallpaper2-2.0a2.pet
Description 
pet

 Download 
Filename  wallpaper2-2.0a2.pet 
Filesize  4.52 KB 
Downloaded  236 Time(s) 
wallpaper2-2.png
 Description   
 Filesize   157.65 KB
 Viewed   762 Time(s)

wallpaper2-2.png


_________________
Bring on the locusts ...

Last edited by Nathan F on Sat 10 Aug 2013, 12:14; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
koulaxizis


Joined: 17 Jul 2011
Posts: 428
Location: Greece

PostPosted: Mon 05 Aug 2013, 15:50    Post subject:  

Just tried it! Nice one! Smile Do you want me to translate it into Greek? Smile
_________________
Christos Koulaxizis
Woof woof from Greece...

[ Puppy packages | Puppy search ]
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Mon 05 Aug 2013, 16:28    Post subject:  

Eventually that would be great. For now, it's in an unfinished state. I haven't prepared it for gettext yet, but will be doing so fairly soon.
_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Mon 05 Aug 2013, 16:45    Post subject: Re: wallpaper2
Subject description: This is intended to be the successor to the wallpaper setter I wrote in 2007.
 

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:28; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 646
Location: Staffordshire

PostPosted: Mon 05 Aug 2013, 16:45    Post subject:  

Works well, but found a little quirk...
When I navigate to a different folder, the first image is displayed, but the list box is blank. If I use the drop down box (recently used locations) and select the current directory, it will display the list.
Also, the recently used list is repeating the same directory when I re-visit it. Hardly a show stopper, but it would be cleaner if 'repeats' got zapped.
Oh, the terminal shows:
Code:
ls: cannot access : No such file or directory

I think this shows up when I go to a different location - maybe why the file list is not shown??
Tried it on Wary 5.5 and Precise 5.7.1 using rox backend.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Mon 05 Aug 2013, 17:30    Post subject:  

@Keef - thanks for reporting it. I'll get those two issues fixed. I was aware of the first, but not the second.

@Simargl - sounds like a good plan. Was planning for an esetroot backend and perhaps wmsetbg, but I'll look into imlibsetbg too. I assume by the name it uses imlib, so it's probably a good candidate.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 06 Aug 2013, 14:29    Post subject:  

I just committed the following to bitbucket.
1) Changed the file list from a list widget to a tree widget as list is deprecated in gtk3. Thanks to Zigbert for the tip. A side effect, at least until I figure out a workaround, is that the tree widget is not automatically selecting the first entry upon opening, so you continue to see the preview for the last selected image until you click on another one.
2) Zap duplicate entries in the directory list on program startup. You will still have dups within the same session if you press enter twice, but they get removed the next time the program starts.
3) The behavior of the backend has been slightly changed to make it easier to use separately from the gui, per Sunburnt's request. The script <prefix>/lib wallpaper now takes <mode> as arg1 and <file> as arg2. I intend this to be stable moving forward, as he expressed an interest in possibly creating an alternate gui.
4) This part is the trickiest so far. It seems that refreshing the comboboxentry widget -always- puts a blank line into the active cell, unless I'm missing something. In layman's terms it was causing the directory and contents list to vanish when you manually type a directory and press enter to save it, as Keef described.

My solution to 4) is not ideal. The current code no longer refreshes the widget. It will still take you to that directory, and it will still save the contents, but the new entry will not show up in the dropdown list until the next time you start the program.

TODO:
1) I'm going to experiment with placing a few of the widgets into eventbox enclosures in order to get a tooltip when you hover the mouse cursor over them. The goal is to provide some usage hints to the user without cluttering up the gui. This is another Zigbert suggestion.
2) Various new backends
3) Sanity checking for the backends so they will only be available if the needed programs are installed.
4) Documentation
5) gettextize everything for localization

I'm not going to create a new tarball just yet, but anyone wanting to try it with the latest changes is welcome to download the automatically created zipfile from my bitbucket site (see top post). My plan is to incorporate a few of the proposed changes (particularly the tooltips and localization) and get alpha2 up by the end of the weekend.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 06 Aug 2013, 15:11    Post subject:  

One last commit today. I added esetroot and imlibsetroot backends. I can see adding fbsetbg, wmsetbg, and maybe icewmbg. That should provide some pretty good coverage for a ton of different scenarios. Any other suggestions?
_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 06 Aug 2013, 16:51    Post subject:  

OK I lied. I fixed a couple issues.
1) The preview is automatically updated again when changing directory, as in the first alpha.
2) Potential bug - previously multiple files could be selected. This has been changed to allow only one selection at a time.

The README is also updated. That is all.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Tue 06 Aug 2013, 17:24    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:28; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 06 Aug 2013, 19:04    Post subject:  

Ack, the dreaded spaces in filenames bug...I'll fix it. Forgot some quotes somewhere.

As for the suggestions:
1) Merging into one file -is- doable, but I don't want to as it would require some extra sed'ding and I like it fast. I could, however, place those particular files into a subdirectory (say, <configdir>/state or <configdir>/cache)
2) A specific icon is a good idea, and I would welcome somebody offering to help with it. I'd request it be in svg format so I can resize for different uses.
3) Name - I was actually thinking shorter and sweeter. I use dwb, dmenu, and dwm a lot and love not having to type long names. I was thinking "wp" for a possible command line interface and "gwp" for the gui. Very Unix-ey

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 07 Aug 2013, 06:51    Post subject:  

I pushed a small changeset that fixes the spaces in filenames bug. As I thought, just forgot some quotes. While I was at it I fixed the error messages that were being thrown in the terminal while typing into the combobox to enter a new path.

Off the bed.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 07 Aug 2013, 15:18    Post subject:  

@Simargl - after some experimentation I realized it would be a lot easier to create a single "state" file than I realized. No promises as to when it will happen, but I'll try to make the required changes because it really would be more tidy.
_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 07 Aug 2013, 16:27    Post subject:  

OK that change was less work than I imagined. There are now only 3 files created in the config directory.
1) current.png - a soft link to the image currently selected in the file browser
2) wp-dirs - the list of saved directories, basically like a bookmarks file
3) state - tells the next session what backend and mode were chosen by the user as well as the directory that was open

That's nice and clean, and frankly it's actually less code than the previous versions.

Done for now. Next project will be to gettext-ize it.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 08 Aug 2013, 15:49    Post subject:  

New changeset:
* The name is officially gwp.
* The tabs are now just "Images" and "Options"
* It should be prepared for translation using gettext now. There is a gwp.pot template included in the package.
* Various minor fixes and cleanups to help maintainability

A beta release is on the horizon. Will create a .pet when I do.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0946s ][ Queries: 12 (0.0111s) ][ GZIP on ]