2002-04-22 10:40:09 -04:00
|
|
|
$OpenBSD: patch-wmtheme,v 1.3 2002/04/22 14:40:09 lebel Exp $
|
|
|
|
--- wmtheme.orig Sat Dec 8 23:11:28 2001
|
|
|
|
+++ wmtheme Mon Apr 22 10:36:42 2002
|
|
|
|
@@ -1361,7 +1361,7 @@ sub screensize {
|
2001-09-08 21:12:21 -04:00
|
|
|
my ($rows, $cols);
|
initial import of wmtheme-1.2.8:
--
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.
Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.
Supports themes for the following:
- AfterStep (astheme)
- Blackbox (bbtheme)
- Enlightenment (etheme)
- Golem (gotheme)
- gtk+ (gtktheme)
- IceWM (itheme)
- Oroborus (ortheme)
- Sawfish (sftheme)
- Window Maker (wmtheme)
- xmms (xmtheme)
WWW: http://wmtheme.sourceforge.net/
2001-09-06 23:12:57 -04:00
|
|
|
|
2001-09-08 21:12:21 -04:00
|
|
|
$rows = ($sttyout =~ /\brows (\d+)/ and $1 > 4) ? $1 : 24;
|
|
|
|
- $cols = ($sttyout =~ /\bcolumns (\d+)/ and $1 > 49) ? $1 : 50;
|
|
|
|
+ $cols = ($sttyout =~ /\bcolumns (\d+)/ and $1 > 79) ? $1 : 80;
|
initial import of wmtheme-1.2.8:
--
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.
Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.
Supports themes for the following:
- AfterStep (astheme)
- Blackbox (bbtheme)
- Enlightenment (etheme)
- Golem (gotheme)
- gtk+ (gtktheme)
- IceWM (itheme)
- Oroborus (ortheme)
- Sawfish (sftheme)
- Window Maker (wmtheme)
- xmms (xmtheme)
WWW: http://wmtheme.sourceforge.net/
2001-09-06 23:12:57 -04:00
|
|
|
($rows, $cols);
|
2001-09-08 21:12:21 -04:00
|
|
|
}
|
|
|
|
|
2002-04-22 10:40:09 -04:00
|
|
|
@@ -1531,7 +1531,7 @@ sub getfiletypes {
|
|
|
|
# filename and a colon, and is padded with spaces such that the result
|
|
|
|
# always begins at the same column.
|
initial import of wmtheme-1.2.8:
--
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.
Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.
Supports themes for the following:
- AfterStep (astheme)
- Blackbox (bbtheme)
- Enlightenment (etheme)
- Golem (gotheme)
- gtk+ (gtktheme)
- IceWM (itheme)
- Oroborus (ortheme)
- Sawfish (sftheme)
- Window Maker (wmtheme)
- xmms (xmtheme)
WWW: http://wmtheme.sourceforge.net/
2001-09-06 23:12:57 -04:00
|
|
|
|
2002-04-22 10:40:09 -04:00
|
|
|
- my @types = split(/\n/, forktick("file -f \Q$file_input\E"));
|
initial import of wmtheme-1.2.8:
--
wmtheme is a utility which, generally speaking, allows you to perform
certain operations on themes by name. For example, to rename do wmtheme
-r oldname newname; to activate do wmtheme name, to get from themes.org
do wmtheme -g name.
Furthermore, it takes great care to make installation painless, in spite
of evolving formats, packaging carelessness, and incompatibility between
old themes and current window managers. wmtheme -i theme-package.tar.gz
will almost always result in a correct installation. It will also take
steps to clean up settings that don't belong in themes, and disable
suspicious-looking shell commands (these sorts of things might occur in
Window Maker or Blackbox themes). This behavior can be turned off,
however.
Supports themes for the following:
- AfterStep (astheme)
- Blackbox (bbtheme)
- Enlightenment (etheme)
- Golem (gotheme)
- gtk+ (gtktheme)
- IceWM (itheme)
- Oroborus (ortheme)
- Sawfish (sftheme)
- Window Maker (wmtheme)
- xmms (xmtheme)
WWW: http://wmtheme.sourceforge.net/
2001-09-06 23:12:57 -04:00
|
|
|
+ my @types = split(/\n/, forktick("file -f \Q$file_input\E | sed -e \Qs;^[^:]*: *;;g\E"));
|
|
|
|
unlink $file_input or choke("can't remove temporary file $file_input: $!");
|
|
|
|
|
|
|
|
delete $cleanups{getfiletypes};
|