Wallpaper setter

Programming issues and discussion
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Wallpaper setter

Postby simargl » 27 Nov 2013, 10:10

wpset is a new wallpaper setter for alphaOS, written in Vala and Gtk3

Bitbucket repository
https://bitbucket.org/simargl/alphaos

AUR package
https://aur.archlinux.org/packages/wpset

alphaos-20140116185641.png


Changelog:

0.0.6
- Sort images by name
- Don't show empty line in wallpapers list
- Install 5 small images with wpset package

0.0.5
- Set wallpaper on double click
- Show preview on cursor_changed signal

0.0.3
- Initial release

to install:
extract and type make install

to remove:
type make uninstall

depends on: imlibsetroot

this program is replacement for: gwp wallpaper changer from nfisher written in gtkdialog

How does it work?
* Two main files are wpset (GUI) and wpset_shell
* wpset_shell has two options: --set $2 and --init
* wpset_shell --set $2 will change wallpaper, and write wallpaper's path to file $HOME/.config/wpset/config.ini
* wpset_shell --init started from $HOME/.start will read from config file and set wallpaper on openbox start

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: wpset

Postby Scooby » 27 Nov 2013, 15:22

will download and try.

How much of vala code is autogenerated? is it like visual basic?

*edit*
tried it, worked like a charm.

When I added dir though I got an extra blankline in image files list

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: wpset

Postby simargl » 30 Nov 2013, 10:51

Version 0.0.6 released, list of changes in first post

Scooby wrote:How much of vala code is autogenerated? is it like visual basic?


Instead of make install in wpset source directory you can type

Code: Select all

valac --target-glib=2.38 --pkg gtk+-3.0 wpset.vala -C

and wpset.vala will be converted to wpset.c

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Wallpaper setter

Postby simargl » 16 Jan 2014, 19:19

I made lot of changes to wallpaper setter program: completely different (and better) user interface, always show images preview not just when item from the list is activated, don't show full path only file name and save list of added wallpaper's directories. User interface design inspired by Nitrogen http://projects.l3ib.org/nitrogen/

Image

efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

Re: Wallpaper setter

Postby efgee » 16 Jan 2014, 22:16

Nice to see that you and GTK3 get along well ...as I'm not.
I'm at a point of frustration with the GTK3 online documentation.
Too much stuff outdated and therefore wrong - maybe it's me not them.
Wasting too much time.
Thinking of switching over to Qt for my programming needs.

BTW: I'm not the only one frustrated about the direction GTK3 is going:
From the SpaceFM creator:
http://igurublog.wordpress.com/2012/11/05/gnome-et-al-rotting-in-threes

From an Intel guy:
http://www.phoronix.com/scan.php?page=news_item&px=MTU2ODM

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Wallpaper setter

Postby simargl » 17 Jan 2014, 19:51

I use valadoc.org and when stuck somewhere search for function's samples with google, their site is up do date with latest Gtk releases. Switching in this system from Gtk Vala applications to Qt is not possible because of its bigger size.

efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

Re: Wallpaper setter

Postby efgee » 18 Jan 2014, 00:04

Yeah I know.
I was just venting.

BTW: alphaOS is great!


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 11 guests

cron