Code Sample |
mv .icewm/menu .icewm/menu.old ./convertmenu.pl .fluxbox/menu >.icewm/menu |
Code Sample |
#!/usr/bin/perl -w # Script to convert fluxbox menu to icewm my @stack; my ($type, $label, $arg); my $line = 0; while (<>) { $line++; next if (/\s*#/); if (/\[(.+)\]\s*\((.+)\)\s*\{(.+)\}/) { $type = $1; $label = $2; $arg = $3; } elsif (/\[(.+)\]\s*\((.+)\)/) { $type = $1; $label = $2; $arg = ""; } elsif (/\[(.+)\]/) { $type = $1; $label = ""; $arg = ""; } else { next; } if ($type eq "submenu") { if ($label eq "Styles") { push(@stack, ""); } else { print("menu \"$label\" folder\ {\n"); push(@stack, "}\n"); } } elsif ($type eq "end") { if ($#stack >= 0) { print(pop(@stack)); } else { print("# mismatched [end] at line $line!\n"); } } elsif ($type eq "exec") { print("prog \"$label\" \"-\" $arg\n"); } elsif ($type eq "begin") { push(@stack, ""); } } |
Code Sample |
mv .icewm/menu .icewm/menu.old |
Code Sample |
mv: unable to rename '.icewm/menu': No such file or directory |
Quote |
mv etc/x11/icewm/menu etc/x11/icewm/menu.old |
Quote (Guest @ Nov. 19 2005,14:52) | ||||||
I may be doing something pretty stupid here... So i tried to follow these instructions. I entered the first line
and got this response
I then had a look around and found that ice wm was in /etc/x11. So I tried
and that didn't work either. I messeda roud a bit with '.' and '/' in case leaving them out was the problem but that did't get me anywhere. I know that I'm probably making some really basic silly mistake thru ignorance but I'd appriciate help from anyone who can offer it. |
Code Sample |
cp -R /etc/x11/icewm/ ~/.icewm ./convertmenu.pl ~/.fluxbox/menu >~/.icewm/menu |
Code Sample |
mv .icewm/menu .icewm/menu.old |