Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Support for dual png icons ? [solved]

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

Support for dual png icons ? [solved]

  • Quote

Post by Dominique_71 » Sat Oct 30, 2010 5:14 pm

I find a package with some nice icons, but they are dual png icons : Ken's DualPNG Icons.

The files into the archive are named *.info, but if you take a look at them, it is 2 png files in each file. When I open them with comix or gimp, only the first one of those 2 pictures is showed.

Is it possible to, at least, extract the 2 png files of such icons?
Last edited by Dominique_71 on Sun Oct 31, 2010 8:14 pm, edited 1 time in total.
"Confirm You are a robot." - the singularity
Top
smileyguy
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Sun Dec 26, 2004 1:26 pm

  • Quote

Post by smileyguy » Sun Oct 31, 2010 7:13 pm

Save to info_split.py somewhere in your path, chmod u+x info_split.py, and info_split.py *.info. I haven't tested this much, but it seems to work with the info files you linked to.

Code: Select all

#!/usr/bin/env python
import sys
for arg in sys.argv [1:]:
    try:
        info_file = open (arg, "rb")
    except:
        exit (-1)
    info = info_file.read ()
    info_file.close ()
    pngs = []
    index = info.find (chr (0211) + "PNG")
    while index > -1:
        pngs.append (index)
        index = info.find (chr(0211) + "PNG", pngs[-1] + 1)
    pngs.append (len (info))
    n_pngs = len (pngs) - 1
    for n in range (n_pngs):
        png_file = open (arg + str (n) + ".png", "wb")
        png_file.write (info [pngs[n] : pngs[n+1]] )
        png_file.close ()
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Sun Oct 31, 2010 8:13 pm

Thanks a lot, it work just fine !

I will have to learn python when I get some time...
"Confirm You are a robot." - the singularity
Top
AaronPPC
Guru
Guru
Posts: 522
Joined: Sun May 29, 2005 8:22 am
Location: Tucson, AZ

  • Quote

Post by AaronPPC » Mon Nov 01, 2010 6:56 am

I sure do miss the Amiga.
--Aaron
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Mon Nov 01, 2010 5:24 pm

It was the best of all my pc. Simple, fast, reliable, easy to learn and use.

I am working on an amiga recipe for fvwm-crystal. It will mix the things I like into the amiga OS and the power of fvwm. It will be possible, among other things, to maximize into fullscreen almost any windows, and to cycle through them and the desktop.

Now that I have the 2 pictures of those icons, I will search how it can be possible to use them into fvwm in order to mimic the 2 pictures/states icons of the amiga OS. For now, it look like that : Clean Clean with menu busy
"Confirm You are a robot." - the singularity
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Sat May 18, 2013 4:47 pm

I find the website of the author: http://www.five-star.com/icons.htm
and he kindly gave me the permission to use his original and beautiful work. :D
"Confirm You are a robot." - the singularity
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Sat May 18, 2013 5:02 pm

AaronPPC wrote:I sure do miss the Amiga.
Try the last FVWM-Crystal release, you will be surprised. It include a clone of the Amiga stack of full-screened applications which doesn't compromise the traditional X multiple desktop pages, and with Thunar as desktop manager, the desktop icons are managed in fact by FVWM-Crystal and you will get 2 pictures icons like in the Amiga OS. I am currently working to add localized support with such icons for the xdg-userdirs like ~/Desktop, Music and so on.

It is an ebuild here: https://bugs.gentoo.org/show_bug.cgi?id=468680

The next release will be even better, with new features like a Bling bling module (automatic E17 like translucency support) and a very well working version of the FVWM Expose function.
"Confirm You are a robot." - the singularity
Top
Post Reply

7 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic