Hey Ahmed,
Thanks a lot for that script. That would work wonderfully!
I can do this..
###################################################################
SetEnv fvwm_icons $[HOME]/.fvwm/images/icons/current/
#
#
#
+ "System"%$[fvwm_icons]menu.gnome-system.png% Popup MenuSystem
+ "Office"%$[fvwm_icons]menu.gnome-applications.png% Popup MenuOffice
###################################################################
And just overwrite with new icons in directory
~/.fvwm/images/icons/current/ and run that script again.
Thanks man.. Its a sure way to get all the sweet gnome icons with
virtually no work at all!
Just one more small thing? Can that script convert icons in recursive
manner?! Yeah, I am THAT lazy :P
On Wed, 04 Aug 2004 04:20:46 +0000, Ahmed Abdalla
<gtg468r_at_mail.gatech.edu> wrote:
> Hello Atul:
> On Wed, 2004-08-04 at 07:24, Atul Awasthi wrote:
> > I can succesfully use gnome icons with semi-auto updates on root menu.
> > Here is how it works.
> >
> > ###################################################################
> > SetEnv fvwm_icons $[HOME]/.icons/Marcintesh_OS-W/
> > #
> > #
> > #
> > + "System"%$[fvwm_icons]192x192/apps/gnome-system.png%
> > Popup MenuSystem
> > + "Office"%$[fvwm_icons]192x192/apps/gnome-applications.png%
> > Popup MenuOffice
> > ###################################################################
> >
> Interesting way of integrating fvwm with gnome.
> > And so on... Now next time when I need to change the icons. I just
> > need to change the fvwm_icons path. But as you might have guessed,
> > there is one big problem with it. The icons are too huge.. Is there a
> > way to resize them before using? I know there is since there is a
> > wallpaper browser that does the same thing for every PNGs in a
> > wallpaper directory.
> > Here is the code for that..
> > ...
> >
> Here is the bash script I wrote to convert icons for my menus:
> #menuconvert.sh
> #----Menu converting script:
> #by: Ahmed Abdalla
> #!/bin/bash
> #
> #This changes the current directory to the fonts directory.
> cd /mnt/space/images/icons ###You will need to change this to
> # your icon folder
> #These two lines remove old versions of the icons in case
> # there have been changes.
> rm -f menu.*
> rm -f sidemenu.*
> #Sets the variable flist to the list of files in the icon folder
> flist="*"
> #Starts a loop for all files in the directory.
> for file in $flist
> do
> #These two lines create two sets of icons, one set (20x20)
> # for the root menu, and the other set for my side menus (40x40)
> convert -scale 20x20 ${file} menu.${file}
> convert -scale 40x40 ${file} sidemenu.${file}
> #Closes the for loop
> done
> #Lists all the files in the icon folders
> ls /mnt/space/images/icons/
> #Prints out
> echo done
> # Prints "done" to stdout.
> ### EOF
>
> As you can see, it is pretty simple. The ls and echo commands aren't
> needed, as you probably will want this script to be automated as well,
> to reflect any changes in the icon directory, every five minutes, for
> example. Just copy this to a file and give it a+rx permissions and you
> should be able to execute it ./menuconvert.sh (or whatever you choose to
> call it), or you can write in into an fvwm function as needed.
>
> > ...
> >
> > Thanks.
> > --
>
> I hope that helps, at least with converting icons,
>
> Ahmed Abdalla
>
>
>
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.
>
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Aug 04 2004 - 04:17:40 BST