From 4375c16e0f7d0f897c4a70be8e3d44a93581ead7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 13 Apr 2007 23:36:57 +0200 Subject: [PATCH] Drop /etc/skel/.wmi as wmi is not supported anymore --- debian/changelog | 1 + etc/skel/.wmi/actions.conf | 25 -- etc/skel/.wmi/actions.session | 52 ---- etc/skel/.wmi/common.conf | 21 -- etc/skel/.wmi/os04-theme.conf | 78 ----- etc/skel/.wmi/sti.pl | 82 ----- etc/skel/.wmi/szs2.1/AUTHORS | 2 - etc/skel/.wmi/szs2.1/LICENSE | 339 --------------------- etc/skel/.wmi/szs2.1/README | 28 -- etc/skel/.wmi/szs2.1/bandwidth.py | 156 ---------- etc/skel/.wmi/szs2.1/bandwidth.pyc | Bin 5003 -> 0 bytes etc/skel/.wmi/szs2.1/battery.py | 161 ---------- etc/skel/.wmi/szs2.1/battery.pyc | Bin 4240 -> 0 bytes etc/skel/.wmi/szs2.1/biff.py | 162 ---------- etc/skel/.wmi/szs2.1/biff.pyc | Bin 4712 -> 0 bytes etc/skel/.wmi/szs2.1/clock.py | 159 ---------- etc/skel/.wmi/szs2.1/clock.pyc | Bin 4542 -> 0 bytes etc/skel/.wmi/szs2.1/diskusage.py | 112 ------- etc/skel/.wmi/szs2.1/diskusage.pyc | Bin 3037 -> 0 bytes etc/skel/.wmi/szs2.1/load.py | 110 ------- etc/skel/.wmi/szs2.1/load.pyc | Bin 3146 -> 0 bytes etc/skel/.wmi/szs2.1/memory.py | 96 ------ etc/skel/.wmi/szs2.1/memory.pyc | Bin 2799 -> 0 bytes .../.wmi/szs2.1/module-developer-reference.txt | 54 ---- etc/skel/.wmi/szs2.1/szs.cfg | 238 --------------- etc/skel/.wmi/szs2.1/szs.py | 197 ------------ .../.wmi/szs2.1/szstoolbox-developer-reference.txt | 94 ------ etc/skel/.wmi/szs2.1/szstoolbox.py | 306 ------------------- etc/skel/.wmi/szs2.1/szstoolbox.pyc | Bin 10412 -> 0 bytes etc/skel/.wmi/szs2.1/text.py | 36 --- etc/skel/.wmi/szs2.1/text.pyc | Bin 1051 -> 0 bytes etc/skel/.wmi/theme.conf | 71 ----- etc/skel/.wmi/wmi.session | 19 -- 33 files changed, 1 insertion(+), 2598 deletions(-) delete mode 100644 etc/skel/.wmi/actions.conf delete mode 100644 etc/skel/.wmi/actions.session delete mode 100644 etc/skel/.wmi/common.conf delete mode 100644 etc/skel/.wmi/os04-theme.conf delete mode 100755 etc/skel/.wmi/sti.pl delete mode 100644 etc/skel/.wmi/szs2.1/AUTHORS delete mode 100644 etc/skel/.wmi/szs2.1/LICENSE delete mode 100644 etc/skel/.wmi/szs2.1/README delete mode 100755 etc/skel/.wmi/szs2.1/bandwidth.py delete mode 100644 etc/skel/.wmi/szs2.1/bandwidth.pyc delete mode 100755 etc/skel/.wmi/szs2.1/battery.py delete mode 100644 etc/skel/.wmi/szs2.1/battery.pyc delete mode 100755 etc/skel/.wmi/szs2.1/biff.py delete mode 100644 etc/skel/.wmi/szs2.1/biff.pyc delete mode 100755 etc/skel/.wmi/szs2.1/clock.py delete mode 100644 etc/skel/.wmi/szs2.1/clock.pyc delete mode 100755 etc/skel/.wmi/szs2.1/diskusage.py delete mode 100644 etc/skel/.wmi/szs2.1/diskusage.pyc delete mode 100755 etc/skel/.wmi/szs2.1/load.py delete mode 100644 etc/skel/.wmi/szs2.1/load.pyc delete mode 100755 etc/skel/.wmi/szs2.1/memory.py delete mode 100644 etc/skel/.wmi/szs2.1/memory.pyc delete mode 100644 etc/skel/.wmi/szs2.1/module-developer-reference.txt delete mode 100644 etc/skel/.wmi/szs2.1/szs.cfg delete mode 100755 etc/skel/.wmi/szs2.1/szs.py delete mode 100644 etc/skel/.wmi/szs2.1/szstoolbox-developer-reference.txt delete mode 100755 etc/skel/.wmi/szs2.1/szstoolbox.py delete mode 100644 etc/skel/.wmi/szs2.1/szstoolbox.pyc delete mode 100755 etc/skel/.wmi/szs2.1/text.py delete mode 100644 etc/skel/.wmi/szs2.1/text.pyc delete mode 100644 etc/skel/.wmi/theme.conf delete mode 100644 etc/skel/.wmi/wmi.session diff --git a/debian/changelog b/debian/changelog index d422561..c077313 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ grml-etc (0.9.14) unstable; urgency=low to package grml-desktop. Added package grml-desktop to Suggests: therefore. This should simplify customization of grml. + * Drop /etc/skel/.wmi as wmi is not supported anymore. -- Michael Prokop Fri, 13 Apr 2007 18:13:37 +0200 diff --git a/etc/skel/.wmi/actions.conf b/etc/skel/.wmi/actions.conf deleted file mode 100644 index 41a7165..0000000 --- a/etc/skel/.wmi/actions.conf +++ /dev/null @@ -1,25 +0,0 @@ -# switch workspace - chain.selws1.seq="select-workspace+workspace 1" - chain.selws1.keys=alt+1 - chain.selws2.seq="select-workspace+workspace 2" - chain.selws2.keys=alt+2 - chain.selws3.seq="select-workspace+workspace 3" - chain.selws3.keys=alt+3 - chain.selws4.seq="select-workspace+workspace 4" - chain.selws4.keys=alt+4 - -# Lock screen - chain.xlock.keys=ctrl+alt+l - chain.xlock.seq="exec+/usr/X11R6/bin/xlock" - -# ``-R'' reattach if possible, otherwise start a new session - extern.screen.cmd="x-terminal-emulator -e screen -R" - extern.screen.keys=mod1+F1 - -# Start firefox with Alt+F2 - extern.firefox.cmd=/usr/bin/mozilla-firefox - extern.firefox.keys=mod1+F2 - -# Get X clipboard/selection and output it via flite - extern.xsay.cmd=/usr/bin/xsay - extern.xsay.keys=ctrl+mod1+v diff --git a/etc/skel/.wmi/actions.session b/etc/skel/.wmi/actions.session deleted file mode 100644 index 8452195..0000000 --- a/etc/skel/.wmi/actions.session +++ /dev/null @@ -1,52 +0,0 @@ -chain.grow-full.keys=alt+r::f -chain.grow-full.seq=grow-left,grow-right,grow-up,grow-down -chain.selws1.keys=alt+1 -chain.selws1.seq="select-workspace+workspace 1" -chain.selws2.keys=alt+2 -chain.selws2.seq="select-workspace+workspace 2" -chain.selws3.keys=alt+3 -chain.selws3.seq="select-workspace+workspace 3" -chain.selws4.keys=alt+4 -chain.selws4.seq="select-workspace+workspace 4" -chain.shrink-full.keys=shift+alt+r::f -chain.shrink-full.seq=shrink-left,shrink-right,shrink-up,shrink-down -extern.xterm.cmd=x-terminal-emulator -extern.xterm.keys=alt+x -intern.attach-last-client.keys=alt+a -intern.cycle-client-next.keys=alt+Tab -intern.cycle-client-prev.keys=shift+alt+Tab -intern.cycle-workspace-next.keys=ctrl+alt+Right -intern.cycle-workspace-prev.keys=ctrl+alt+Left -intern.detach-client.keys=alt+d -intern.exec.keys=alt+e -intern.grab-move.keys=mod1+Button1 -intern.grow-down.keys=alt+r::j -intern.grow-left.keys=alt+r::h -intern.grow-right.keys=alt+r::l -intern.grow-up.keys=alt+r::k -intern.inputmode.keys=alt+i -intern.join-frame-down.keys=shift+alt+s::j -intern.join-frame-left.keys=shift+alt+s::h -intern.join-frame-right.keys=shift+alt+s::l -intern.join-frame-up.keys=shift+alt+s::k -intern.kill-client.keys=ctrl+alt+c -intern.move-client-down.keys=shift+alt+j -intern.move-client-left.keys=shift+alt+h -intern.move-client-right.keys=shift+alt+l -intern.move-client-up.keys=shift+alt+k -intern.quit.keys=ctrl+alt+q -intern.select-frame-down.keys=alt+j -intern.select-frame-left.keys=alt+h -intern.select-frame-right.keys=alt+l -intern.select-frame-up.keys=alt+k -intern.shrink-down.keys=shift+alt+r::j -intern.shrink-left.keys=shift+alt+r::h -intern.shrink-right.keys=shift+alt+r::l -intern.shrink-up.keys=shift+alt+r::k -intern.split-frame-down.keys=alt+s::j -intern.split-frame-left.keys=alt+s::h -intern.split-frame-right.keys=alt+s::l -intern.split-frame-up.keys=alt+s::k -intern.toggle-client-mode.keys=alt+m -intern.toggle-mode.keys=alt+f -intern.zoom-client.keys=mod1+z diff --git a/etc/skel/.wmi/common.conf b/etc/skel/.wmi/common.conf deleted file mode 100644 index 01fbf7d..0000000 --- a/etc/skel/.wmi/common.conf +++ /dev/null @@ -1,21 +0,0 @@ -autocompletion.mode=default -bar.buttons=yes -border.width=3 -cycle.mode=default -default.bar-mode=show -default.border-mode=show -default.client-mode=float -default.transient-mode=float -frame.autodestroy=yes -frame.buttons=yes -frame.colwidth=60 -frame.mode=tabbed -menu.actions=xterm,restart,quit -resize-move.factor=10 -slot.alignment=right -slot.mode=non-overlap -slot.style=transparent -slot.tabs=default -startup.chain= -statusbar.alignment=bottom -terminal="x-terminal-emulator -e" diff --git a/etc/skel/.wmi/os04-theme.conf b/etc/skel/.wmi/os04-theme.conf deleted file mode 100644 index fdb9c49..0000000 --- a/etc/skel/.wmi/os04-theme.conf +++ /dev/null @@ -1,78 +0,0 @@ -# Filename: os04-theme.conf -# Purpose: os04 theme for window manager 'WMI' -# Authors: grml-team (grml.org), (c) Lejatorn, (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -# Latest change: Die Nov 16 13:27:05 CET 2004 [mika] -################################################################################ -# This theme is based on "Greenie" theme by Lejatorn -# http://wmi.modprobe.de/uploads/WMI/greenie-theme.conf - -color.bar.background=darkgreen -color.bar.shadow=seagreen -color.bar.shine=seagreen -color.bar.text=lightyellow - -color.button.background.normal=darkgreen -color.button.background.pressed=snow -color.button.border.shadow.normal=darkkhaki -color.button.border.shadow.pressed=darkkhaki -color.button.border.shine.normal=darkkhaki -color.button.border.shine.pressed=darkkhaki -color.button.figure.shadow.normal=lightyellow -color.button.figure.shadow.pressed=black -color.button.figure.shine.normal=lightyellow -color.button.figure.shine.pressed=black - - -color.focusreq.background=red -color.focusreq.shadow=red -color.focusreq.shine=red -color.focusreq.text=red - -color.frame.background.focussed=olivedrab -color.frame.background.normal=olivedrab -color.frame.pseudo=olivedrab -color.frame.shadow.focussed=darkgreen -color.frame.shadow.normal=darkgreen -color.frame.shine.focussed=darkgreen -color.frame.shine.normal=darkgreen - -color.label.background.focussed=greenyellow -color.label.background.normal=yellowgreen -color.label.shadow.focussed=seagreen -color.label.shadow.normal=seagreen -color.label.shine.focussed=seagreen -color.label.shine.normal=seagreen -color.label.text.focussed=black -color.label.text.normal=midnightblue - -color.meter.background=red -color.meter.border.shadow=red -color.meter.border.shine=red -color.meter.figure.high=red -color.meter.figure.low=red -color.meter.figure.normal=red - -color.tab.background.active.focussed=darkolivegreen -color.tab.background.active.normal=forestgreen -color.tab.background.inactive.focussed=darkgreen -color.tab.background.inactive.normal=darkgreen -color.tab.shadow.active.focussed=darkkhaki -color.tab.shadow.active.normal=darkkhaki -color.tab.shadow.inactive.focussed=darkkhaki -color.tab.shadow.inactive.normal=darkkhaki -color.tab.shine.active.focussed=darkkhaki -color.tab.shine.active.normal=darkkhaki -color.tab.shine.inactive.focussed=darkkhaki -color.tab.shine.inactive.normal=darkkhaki -color.tab.text.active.focussed=limegreen -color.tab.text.active.normal=midnightblue -color.tab.text.inactive.focussed=black -color.tab.text.inactive.normal=black - -#font="anorexia" - -exec="wmsetbg -s /usr/share/grml/0.1-os04.jpg" - -## END OF FILE ################################################################# diff --git a/etc/skel/.wmi/sti.pl b/etc/skel/.wmi/sti.pl deleted file mode 100755 index d9edbfd..0000000 --- a/etc/skel/.wmi/sti.pl +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/perl - -# STI - StatusText Improved ;) -# A simple program to update the bartext in WMI -# last modified: 20 June 2004 - -# Copyright (C) 2004 Nicholas Lativy - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -# To use this program put it in a directory in your $PATH -# make executable and put the following lines in your ~/.xinitrc file: -# sti & -# wmi - -use strict; - -# The 4 following variables should be set by the user -#-------------------------------------------------- -# my $TFORMAT = "%a %d %B - %H%M"; # time format (see man date) -#-------------------------------------------------- -my $TFORMAT = "%D - %H:%M"; -my $MAILDIR = "~/mail/inbox"; # location of user maildir -#my $TOTALMEM = 256; # physical memory in MB -my $TOTALMEM = `free -mt | grep Mem | cut -b16-20`; -my $RTIME = 5; # time between each refresh of stats -# note that the actual time between each refresh will be at least 1/2 -# a second longer than $RTIME - -for (;;) { - my ($mail, $new) = &check_mail($MAILDIR); - my ($mem_used, $cpu_used) = &sys_stats($TOTALMEM); - my $time = &get_time($TFORMAT); - system "wmiremote -t \"[$cpu_used% MEM: $mem_used%] [$mail mail, $new new] [$time]\""; - #system "wmiremote -t \"[CPU: $cpu_used% MEM: $mem_used%] [$mail mail, $new new] [$time]\""; - #print "[CPU: $cpu_used% MEM: $mem_used%] [$mail mail, $new new] [$time]\n"; # this line was for testing - sleep $RTIME; -} - -sub check_mail { - # check the user's email - # currently only supports maildir - my ($mail) = @_; - chomp(my $cur = `ls $MAILDIR/cur | wc -l`); - chomp(my $new = `ls $MAILDIR/new | wc -l`); - return($cur + $new, $new); -} - -sub get_time { - # get the localtime, currently using the date - # command. change it to use perl's localtime? - my ($format) = @_; - chomp(my $date = `date "+${TFORMAT}"`); - return($date); -} - -sub sys_stats { - # get % of CPU and memory used - my ($mem) = @_; - chomp(my $mem_free = `free -mt | grep Mem | cut -b38-40`); - chomp(my $cpu_idle = `uptime`); -# chomp(my $cpu_idle = `top -bn2d0.5 | grep Cpu | tail -n1`); -# $cpu_idle =~ /(\d+\.\d+)%(\s)idle/; -# $cpu_idle = $1; -# my $cpu_used = 100 - $cpu_idle; - my $cpu_used = $cpu_idle; - my $mem_used = 100 - $mem_free / $mem * 100; - # return rounded up figures - return (sprintf("%.0f",$mem_used), sprintf($cpu_used)); -} diff --git a/etc/skel/.wmi/szs2.1/AUTHORS b/etc/skel/.wmi/szs2.1/AUTHORS deleted file mode 100644 index 475d3dd..0000000 --- a/etc/skel/.wmi/szs2.1/AUTHORS +++ /dev/null @@ -1,2 +0,0 @@ -Norman Köhring (pSy) -Christoph Wegscheider (wegi) diff --git a/etc/skel/.wmi/szs2.1/LICENSE b/etc/skel/.wmi/szs2.1/LICENSE deleted file mode 100644 index e8a612e..0000000 --- a/etc/skel/.wmi/szs2.1/LICENSE +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc. - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - Appendix: How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/etc/skel/.wmi/szs2.1/README b/etc/skel/.wmi/szs2.1/README deleted file mode 100644 index f2519a9..0000000 --- a/etc/skel/.wmi/szs2.1/README +++ /dev/null @@ -1,28 +0,0 @@ -Welcome to the README of szs2.1. - -This is the first (and last) dot release of the second release of szs, a script -for the WMI statusbar. The name 'szs' is an abbreviation of -Statuszeilenskript, german for statusbar script. - -Against szs1st, this release has many more features through its modules. -Now it can show: -* the bandwidth usage of network interfaces (bandwidth.py) -* the chargingstate of your (laptop-)battery (battery.py) -* the usage of partitions or diskimages (diskusage.py) -* if there are mails in an pop or imap account (biff.py) -* the load average, cpu usage and i/o (load.py) -* the memory and swap usage (memory.py) -* a `date`-like formatted time string (clock.py) -* freely self configurable bars and texts (text.py) - -To use all this features, look in the good commented config file. -It's named szs.cfg and must be in ~/.wmi or in the same directory as szs.py. - -If you want to build own modules read the following files: - module-developer-reference.txt contains a description how to make modules - szstoolbox-developer-reference.txt contains the classes/globals of szstoolbox - -I hope the script is usable. - -Much fun, -Norman Köhring diff --git a/etc/skel/.wmi/szs2.1/bandwidth.py b/etc/skel/.wmi/szs2.1/bandwidth.py deleted file mode 100755 index 3b95529..0000000 --- a/etc/skel/.wmi/szs2.1/bandwidth.py +++ /dev/null @@ -1,156 +0,0 @@ -#!/usr/bin/python -""" -szs/bandwidth - a bandwidth module for SZS an statusbar script for WMI - - -CHANGELOG: - - v0.5 2004-12-14 - * some cleanups - * removed re dependency for performance reasons - - v0.4 2004-11-29 - * replaced script interval with real interval - * added empirical max down/up rate - * fixed: crash if interface is down - - v0.3 2004-11-26 - * added configurabel labels - * fixed get up packets instead of bytes bug - * some cleanups - - v0.2 2004-11-24 - * fixed bug with /proc/net/dev parsing - * adapted to the szs module interface - * added szs.cfg support - * use now correct interval from szs config - - v0.1 2004-10-20 - * initial Release - - -TODO: - - - -COPYRIGHT: - -Copyright 2004 Christoph Wegscheider - - -LICENSE: - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -""" - -import os -import time -import szstoolbox - - - -count = 0 - - - -class Interface: - - changetime = 0 - - def __init__(self, label, downmax=1, upmax=1, down=0, up=0): - self.label = label - self.downmax = downmax * 1024 - self.upmax = upmax * 1024 - self.down = down - self.up = up - - def get_down_speed(self, down): - old = self.down - self.down = down - downrate = (down - old) / interval - if downrate > self.downmax and count > 1: - self.downmax = downrate - msg.debug(self.label + ' newmax down [kB]: ' + str(self.downmax/1024), 3) - return 100 * downrate / self.downmax - - def get_up_speed(self, up): - old = self.up - self.up = up - uprate = (up - old) / interval - if uprate > self.upmax and count > 1: - self.upmax = uprate - msg.debug(self.label + ' newmax up [kB]: ' + str(self.upmax/1024), 3) - return 100 * uprate / self.upmax - - - -def get_data(): - global interval - - #get interval - changetime = time.time() - interval = changetime - Interface.changetime - Interface.changetime = changetime - - # get data - fd = open('/proc/net/dev') - data = {} - for it in fd.read().split('\n')[2:-1]: - it = str(it[:6] + ' ' + it[7:]).split() - if (len(it) > 2) and (it[0] in ifs): - data[it[0]] = it[1], it[9] - fd.close() - for it in ifs: - if it not in data.keys(): - data[it] = 0, 0 - print it + ' is down' - return data - - - -def main(): - global count - data = get_data() - returnli = [''] - for it in ifs: - returnli.append(str(int(ifsdata[it].get_down_speed(int(data[it][0])))) + '%') - returnli.append(str(int(ifsdata[it].get_up_speed(int(data[it][1])))) + '%' + ifsdata[it].label) - - count += 1 - return returnli - - - -# load configuration -msg = szstoolbox.MSG() -cfg = szstoolbox.CFG('bandwidth') -ifs = cfg.read('ifs').split(',') -ifsdata = {} -for it in ifs: - it = it.split(':') - if len(it) == 4: - ifsdata[it[0]] = Interface(it[1], int(it[2]), int(it[3])) - else: - ifsdata[it[0]] = Interface(it[1]) -ifs = [it.split(':')[0] for it in ifs] - - - -if __name__ == '__main__': - import time - - while True: - print main() - time.sleep(szstoolbox.interval) diff --git a/etc/skel/.wmi/szs2.1/bandwidth.pyc b/etc/skel/.wmi/szs2.1/bandwidth.pyc deleted file mode 100644 index 49e5b5b1d407c3dcb3576adfb9e263ce5c6291d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d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nPlML4tWWW^ts(U9ShuX(784Vz%0at^$NUQo;`3614l!7l z0(SmaLd{w~`m=;A;uU3SkSkLnm1!Ej#~{s=)7dL2!YutEN;wKS)UNHbd-oO6SLEJ( z9sYj?mK(eQ1;QRcMCjlv5We zmgzzxzU-bY+?$dxY#xW{Z7r=M*H2j=5X@gxdR5w#f4(TN{IwV97%!9Gcj`KDNealo z$e`n;?g<25Jy5cp)i+B=SxLyM2hWz{woVUqQ|qWN8%SpAx{bNBPVAnpC7I+ddp_Jf z-r#xhQol2JTI|o9*=q}nfh%qr1`OtJzd&Oa(G2GJdQ&V67VdmfoGOlwS`*e3asbD~ V1Wx{=+{e~R0hu9}ry* 0: - z = xtra.countadd(5) - if z >= 95: - z = 0 - else: - z = 0 - - stateLn = batstateF.readlines() - batstateF.seek(0) - remain = '0' - - for line in stateLn: - line = line.split(':') - part1 = line[0].strip() - part2 = line[1].strip() - if part1 == 'present' and part2 == 'no': - msg.debug('Battery not present',2) - state = None - return [''] - elif part1 == 'charging state' and part2 == 'discharging': - if state <> '-': - msg.debug('Battery is discharging',3) - state = '-' - elif part1 == 'charging state' and part2 == 'charging': - if state <> '+': - msg.debug('Battery is charging',3) - state = '+' - elif part1 == 'charging state' and part2 == 'unknown': - if state <> '#': - msg.debug('Battery seems full (charging state is unknown)',3) - state = '#' - elif part1 == 'remaining capacity': - remainold = part2 - remain = part2[:part2.find(' ')] - remain = float(remain)*100/float(lastfull) - remain = str(round(remain,acc)) - remain = remain[:remain.find('.')+3]+'%' - - if lvar in (1,2,3): - if state == '#': - ls = ' (full)' - else: - if lvar == 2: - ls = ' ('+remainold+str(state)+')' - if lvar == 3: - ls = ' ('+remainold+'/'+remain+')' - else: - ls = ' ('+remain+str(state)+')' - else: - ls = '' - - if tvar in (1,2,3): - if state == '#': - ts = '' - else: - if tvar == 2: - ts = remainold - if tvar == 3: - ts = remainold+'|'+remain - else: - ts = remain - else: - ts = '' - - if batanimload > 0: - bar = '!'+remain+'%'+batlabel+ls - else: - bar = '!'+z+'%'+batlabel+ls - - if state == '+' and tvar >= 0: - return ['/'+ts+'\\',bar] - elif state == '-' and tvar >= 0: - return ['\\'+ts+'/',bar] - elif state == '#' or tvar < 0: - return ['',bar] - elif state == None: - return [''] - else: - print 'Undefined state: "'+str(state)+'"' - return ['???','???'] - - - -if __name__ == '__main__': - """ helps to debug the script """ - - from sys import argv - from time import sleep - - - if 'loop' in argv: - while '' == '': - x = main() - print x - print '----------------------' - print 'Length:\t'+str(len(x)) - print 'Text:\t"'+x[0]+'"' - if len(x) > 1: - print 'Bars:\t"'+x[1]+'"' - print '----------------------' - sleep(1) - else: - x = main() - print '----------------------' - print 'Length:\t'+str(len(x)) - print 'Text:\t"'+x[0]+'"' - print 'Bars:\t"'+x[1]+'"' - print '----------------------' diff --git a/etc/skel/.wmi/szs2.1/battery.pyc b/etc/skel/.wmi/szs2.1/battery.pyc deleted file mode 100644 index 1cb69092ad1b79d67e5c68eaab6a5649356aa52b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4240 zcmbVOZEqXL5uQDYq)3T+HN{wRoU@!4I&P%IMf|}5>e>$M1aKUncA?ZrBCNP4>a5cp zb-Roug8~XTUy1_xSfIb7=%@aPe(DeD4=DP~>>VZ1YJi5)-R;iIK0EvD?#z7l?^g4# z+28N=sQ69c`&&HrV?|_$_KBVoMT&GlM$wPxR>%a>n4+jkra~_Q%Kk&jOwoRgk~%%F zqf@2*X-XROyn#-QqB^~(QT8WNNB<;K=YJmNNJUfh8mLW*n)K)kGtI9CMKcu5vgozq z{|%zI zl6Q$mT_V>e*COoI>wq+zY|{v*M!M|Y3X=dy+~HN65FKe65qmqn(TLW6L}2hudi{wobdKw29N* z%+5fe)A#^ml1v+0ML*FyQDXUQB!HKO;|7E1UT>J|-m%4jpst2f7zKZyY}9hHSz!Jk*Jeq?Je7981gl)?|}c)@50;lO5R#x?eqgB;Nzu7hk@4 z_Pcx1IC8lb&4Y*DqPOcU@O>l}j9!4}@xV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94=PkGoo}ufu(6$o=IL|#< zt&i^pH`wiB1*txWwzp;L?6E&1ya<0-;samsTUiLN(pUF5;4&hKQeV`bU#;B1@jN9j zlU@p()UxvWxq_BW?+VGc&}sxV)%c+CeM=Gcr&VdG3bj;2Rq@wWi`d^bTFU`TxWB0W E3+2K!;{X5v diff --git a/etc/skel/.wmi/szs2.1/biff.py b/etc/skel/.wmi/szs2.1/biff.py deleted file mode 100755 index e6ffacb..0000000 --- a/etc/skel/.wmi/szs2.1/biff.py +++ /dev/null @@ -1,162 +0,0 @@ -#!/usr/bin/python -""" -szs/biff - an imap/pop biff module for SZS a statusbar script for WMI - - -CHANGELOG: - - v0.4 2004-12-14 - * changed config format - * added multiple server support - * added pop3 support - * added seperate multipliers for pop and imap - * added support for POP3 SSL (python 2.4 only) - * added support for IMAP4 SSL - - v0.3 2004-11-29 - * show (?) on startup and if serer is not reachable - - v0.2 2004-11-26 - * implemented error handling - * some cleanups - - v0.1 2004-11-25 - * initial Release - - -TODO: - - - -COPYRIGHT: - -Copyright 2004 Christoph Wegscheider - - -LICENSE: - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -""" - - -import imaplib -import poplib -import socket -import types -import sys -import szstoolbox - - - -def error(mailboxes): - text = '' - if type(mailboxes) is not types.ListType: - mailboxes = [['', mailboxes]] - for it in mailboxes: - text += it[1] + '(?) ' - return text - - - -def main(): - global count - global imaptext - global poptext - - # check imap server - if count % multiplier['imapmultiplier'] == 1: - imaptext = '' - for acc in accounts['imapaccount']: - try: - if acc[3] == 'yes': - server = imaplib.IMAP4_SSL(acc[0]) - else: - server = imaplib.IMAP4(acc[0]) - server.login(acc[1], acc[2]) - for it in acc[4:]: - if server.select(it[0], True)[0] == 'OK': - num = len(server.search(None, 'UNSEEN')[1][0].split()) - if num > 0: - imaptext += it[1] + '(' + str(num) + ') ' - server.logout() - except (imaplib.IMAP4.error, socket.error), errormsg: - msg.debug(acc[0] + ": " + str(errormsg), 2) - imaptext += error(acc[4:]) - - # check pop3 server - if count % multiplier['popmultiplier'] == 1: - poptext = '' - for acc in accounts['popaccount']: - try: - if acc[3] == 'yes': - if sys.version_info >= (2,4): - server = poplib.POP3_SSL(acc[0]) - else: - raise szstoolbox.Error('POP3 with SSL support is only availabe in python 2.4 or greater') - else: - server = poplib.POP3(acc[0]) - server.user(acc[1]) - server.pass_(acc[2]) - num = server.stat()[0] - server.quit() - if num > 0: - poptext += acc[4] + '(' + str(num) + ') ' - except (poplib.error_proto, socket.error, szstoolbox.Error), e: - msg.debug(acc[0] + ': ' + str(e), 2) - poptext += error(acc[4]) - - count += 1 - return [imaptext + poptext] - - - -# init -count = 0 -imaptext = poptext = '' -accounts = multiplier = {} -msg = szstoolbox.MSG() -cfg = szstoolbox.CFG('biff') - -# load configuration -for it in 'imapmultiplier','popmultiplier': - multiplier[it] = int(cfg.read(it)) -for acctype in 'imapaccount','popaccount': - accounts[acctype] = [] - config = cfg.read(acctype) - if type(config) is types.StringType: - config = [config] - elif type(config) is types.NoneType: - config = [] - for acc in config: - acc = acc.split(',') - accounts[acctype].append(acc[0].split(':')) - if acctype == 'imapaccount': - accounts[acctype][-1].extend([it.split(':') for it in acc[1:]]) - -# set nice start text -for acc in accounts['imapaccount']: - imaptext += error(acc[3:]) -for acc in accounts['popaccount']: - poptext += error(acc[4]) - - - -# for testing purpose -if __name__ == '__main__': - import time - - while True: - print main() - time.sleep(szstoolbox.interval) diff --git a/etc/skel/.wmi/szs2.1/biff.pyc b/etc/skel/.wmi/szs2.1/biff.pyc deleted file mode 100644 index 61aea7b8d87ce3f7c1c02bbbae3d84c30210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9k9RL3DjgLv?vTP~vq#TL0k5kJ}{vUrh| zOy#_lwBGzS;$+)FPhHuFxMbu6{y@v?sg8yL!|-#;Epie_hegDRETa#%5t(MXLlNpO zk3ZTyL|u2$iqNLcjz*!bVoX7o%l!&8q%?@s!r=@ds-g(2Et-n&+EFxw)6V!% zvVJ8HazJ8b*&1wo(Ul#8avKK$Pl-Zxg$Fv3o3Uhpc_5UtrW-{i0r5yKiv#pEi6IfO zgz+j4Bq~hOK$0?lPH8qj$Bj9!T4FUGzH>PIL{s2!L>Kbc@Q!}X_{d#+($~-%2GJMN z>WZ33jj8LhyQA)_VKu2PsoUzVx^oU|obiBp1)s~x0bUL`z)Cqv5Q5UA9`svtqy` zW=`93HzYpd=_Jy+mJ|mk$;8}GvWFRWfpm`xtzxL=jYf<@qjk_{8%XkvAfJ-hnyX@q>e;G7GVJ$2?84_`2qXm_@z@p%##IjlaBO&pHT=kbUNc=VK1mJX->W*>8|$-tASLS`c%LAFCZZ} A%K!iX diff --git a/etc/skel/.wmi/szs2.1/clock.py b/etc/skel/.wmi/szs2.1/clock.py deleted file mode 100755 index e1b431d..0000000 --- a/etc/skel/.wmi/szs2.1/clock.py +++ /dev/null @@ -1,159 +0,0 @@ -#!/usr/bin/python - -# module that shows a clock -# -# TODO -# -# * finish support for 'workbeat' - - -from time import strftime,time,localtime,mktime -import szstoolbox - -ready = False - -def init(): - """ the init thingy """ - - global frmt, ready, acc, lst, bar - global wbdir, wbshow, wbstart, wbstop, wblabel, ew, sw, wboutside - bar = None - msg = szstoolbox.MSG() - cfg = szstoolbox.CFG('clock') - workbeat = cfg.read('workbeat') - if len(workbeat) > 0: - wbdir = cfg.read('wbdirection') - wboutside = cfg.read('wboutside') - if wboutside not in ('yes','no'): - wboutside = 'yes' - msg.debug('illegal value for wboutside, using "yes"',2) - wbshow = cfg.read('wbshow') - if wbshow in ('bar','meter','both'): - wblabel = cfg.read('wblabel') - if wbshow in ('text','both'): - ew = int(cfg.read('ew')) # EndWith - sw = int(cfg.read('sw')) # StartWith - else: - wbdir == None - wbshow == None - acc = int(szstoolbox.CFG('global').read('accuracy')) - frmt = str(cfg.read('format')).strip() - lst = frmt.split('%N') - ready = True - - if wbdir not in ('up','down',None): - wbdir = 'up' - msg.debug('illegal workbeat direction, using "up"',2) - - if wbshow not in ('bar','meter','text','both',None): - wbshow = 'both' - msg.debug('illegal workbeat show option, using "both"',2) - - if wbshow and wbdir: - workbeat = workbeat.split(',') - wbstart = workbeat[0].split(':') - wbstop = workbeat[1].split(':') -def main(): - """ the main function """ - - global frmt,workbeat,bar - if not ready: - init() - return ['init'] - - if len(lst) > 1: - y = '@'+str(round((((time()+3600)%86400)/86.4),acc)) - y = y[:y.find('.')+acc+1] - while len(y[y.find('.')+1:len(y)]) < acc: y=y+'0' - frmt = lst[0]+y+lst[1] - - if wbshow <> None and wbdir <> None: - tpl1 = list(localtime()) - tpl2 = list(localtime()) - tpl1[3] = int(wbstart[0]) - tpl1[4] = int(wbstart[1]) - tpl2[3] = int(wbstop[0]) - tpl2[4] = int(wbstop[1]) - start = mktime(tuple(tpl1)) - stop = mktime(tuple(tpl2)) - spanne = stop-start - jetzt = time() - start - -# ### DEBUGSECTION ### -# print '--------D-E-B-U-G--------' -# print 'Start: '+str(start)#starttime -# print 'Stop: '+str(stop) #endtime -# print 'Spanne: '+str(spanne) #stop-start -# print 'Jetzt: '+str(jetzt) #now -# print 'wbshow: '+wbshow #showtype -# print 'wbdir: '+wbdir #direction -# print str(int(round(jetzt*100/spanne)))+'%'+wblabel #bar -# print str(100-int(round(jetzt*100/spanne)))+'%'+wblabel #100-bar -# print '--------D-E-B-U-G--------' -# ### END OF DEBUG ### - - wb = jetzt * 100 / spanne - wb = int(round(wb)) - if wboutside == 'yes': - if wb > ew: - wb = ew - elif wb < sw: - wb = sw - else: - if wb > ew or wb < sw: - wb = None - - tmp = frmt - - if wb <> None: - if wbdir == 'down': - wb = 100 - wb - if wbshow in ('bar','meter'): - wbthing = None - if wb >= 0: - bar = str(wb)+'%'+wblabel - else: - bar = '0%'+wblabel - elif wbshow == 'text': - tmp = frmt+' ('+str(wb)+'%%)' - bar = None - else: - tmp = frmt+' ('+str(wb)+'%%)' - if wb >= 0: - bar = str(wb)+'%'+wblabel - else: - bar = '0%'+wblabel - else: - bar = None - - if bar <> None: - return [strftime(tmp),bar] - else: - return [strftime(tmp)] - -def debug(): - print "=============================" - print "frmt type is "+str(type(frmt))+" (should be 'str')" - print "bar type is "+str(type(bar))+" (should be 'str' or 'NoneType')" - print "outputted text: '"+strftime(frmt)+"'" - print "outputted bar: '"+str(bar)+"'" - print "Netbeat should be: @"+str(round((((time()+3600)%86400)/86.4),acc)) - print "Actual time should be: "+strftime("%X") - print "Actual date should be: "+strftime("%x") - print "=============================" - -if __name__ == '__main__': - """ only to debug... """ - - from sys import argv - from time import sleep - - if "loop" in argv: - while 1 == 1: - main() - debug() - sleep(1) - else: - main() - debug() - diff --git a/etc/skel/.wmi/szs2.1/clock.pyc b/etc/skel/.wmi/szs2.1/clock.pyc deleted file mode 100644 index cebd4d47a3a22ee3aa369f99d4ae103017d08d82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4542 zcmb_f-EJGl6+W~46MrR(lqkuPykV+}4r0+ZiXe59k(e}S+52Od7rB~hg4R8d59inc?i4n-L{&5-gHU1sStOF@pjJoyg&2}%X>GtyWi zKP!zQ1ts!xbm35Z0kb?^mMN;xX$75vgs9SK6`eH-Ds+*j_ywtVpOIhWe>U4E6|B(@ zgjdnNsyy_AB6amWsc)|SeqUjXAtd;=UBX1#S)S4wKg@Js!cm}EB8?&%QQY?;>E+QI zU2?N4HOZjQve)?PLsZ8Qd5VlfVTKdAb)=mm#6mW=L^nhsYT!s0nnk*iAynleOYuKR zB^p`Q@JgvcPP%0>WkQ8emw`hU1&a5iVqTeU5VJz45l`G9#WPG?mBhA6233JMw5l{f zJXEs2P^yVijo6MA*F_6KpmhS#dYZ`wD{^idbSHe23Lnwc6Q#ymuqbggus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z; TxIhDt@Xb&auvSoYr=b1|>0OE4 diff --git a/etc/skel/.wmi/szs2.1/diskusage.py b/etc/skel/.wmi/szs2.1/diskusage.py deleted file mode 100755 index 817b2a5..0000000 --- a/etc/skel/.wmi/szs2.1/diskusage.py +++ /dev/null @@ -1,112 +0,0 @@ -#!/usr/bin/python - -# Module to show usage of your partitions - -import szstoolbox -from os import statvfs -import statvfs as vfs - -def init(): - """ yeah... init wie schwein """ - - global hdds,lst,ready,fstab - cfg = szstoolbox.CFG('diskusage') - fstabF = file('/etc/fstab','r') - fstab = fstabF.readlines() - fstabF.close() - config = cfg.read('disks') - if type(config) <> list: - hdds = config.split(',') - else: - hdds = [] - for it in config: - hdds.extend(it.split(',')) - hdds = [x.split(':') for x in hdds] - - # rename mountpoints into the corresponding devs - global fstabD - fstabD = {} - for x in fstab: - x = x.strip() - if len(x) > 1: - if x[0] <> '#': - x = x.strip().split() - fstabD[x[1]] = x[0] - for x in range(len(hdds)): - if hdds[x][0] in fstabD.keys(): - hdds[x][0] = fstabD[hdds[x][0]] - - for x in range(len(hdds)): - if hdds[x][0][:4] != '/dev': - hdds[x][0] = '/dev/' + hdds[x][0] - - ready = True - - - -def main(): - """ Module to show usage and capacity of disks """ - - if not 'ready' in globals(): init() - global mntD - - mntD = {} - mntF = file('/etc/mtab','r') - mnt = mntF.readlines() - mntF.close() - for x in mnt: - x = x.split() - mntD[x[0]] = x[1] - - lst = [] - for hdd in hdds: - if hdd[0] in mntD: - stat = statvfs(mntD[hdd[0]]) - blocks = stat[vfs.F_BLOCKS] - free = stat[vfs.F_BFREE] - lst.append(str((blocks-free)*100/blocks)+'%'+hdd[1]) - - return ['',','.join(lst)] - - - -if __name__ == '__main__': - """ helps to debug the script """ - - from sys import argv - from time import sleep - - print main() - if 'loop' in argv: - while '' == '': - x = main() - print '----------------------' - print 'Length:\t'+str(len(x)) - print 'Text:\t"'+x[0]+'"' - print 'Bars:\t"'+x[1]+'"' - print '----------------------' - print '/proc/mounts:' - for x in mntD: - print str(x)+':\t'+str(mntD[x]) - - print '' - print '/etc/fstab:' - for x in fstabD: - print str(x)+':\t'+str(fstabD[x]) - sleep(1) - else: - x = main() - print '----------------------' - print 'Length:\t'+str(len(x)) - print 'Text:\t"'+x[0]+'"' - print 'Bars:\t"'+x[1]+'"' - print '----------------------' - - print '/proc/mtab:' - for x in mntD: - print str(x)+':\t'+str(mntD[x]) - - print '' - print '/etc/fstab:' - for x in fstabD: - print str(x)+':\t'+str(fstabD[x]) diff --git a/etc/skel/.wmi/szs2.1/diskusage.pyc b/etc/skel/.wmi/szs2.1/diskusage.pyc deleted file mode 100644 index ad99d0eaa461ab72c7cdc9e0717a44938b37bf65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3037 zcmb_e-EJFI5T3LCiGSjziPN|)s9M^BEC?|L^(M4xY2AQC2!d2t3bL$?cavP)NJS#ao}DviX3oqx^L?9-|11^mo&EAj zhsHk{ydUAwjzi=V9TDw7P;{gya%jgP#ac)y@*VmC%W3jcB4jAYlAoqShmv2F@-uWa zM^TP;a&XGhQJ$g#?G#7_89FEW^fP~sf*c)YDfyk$@JHq62!HJU+lA3ik^DTH7ATmf zphQ8D&K3Vvpe*v#pQmcYFNxxcC>Ev)@x6)w!}rKsp+@UAAtZ;AIQ}A4Fu@AuRU5Vc zlA1^Z;g`mK3;*i3FzZ)T&7eU30%xcCJyOm7UusA|0kEDZ?T|;XI+4p!G@=uaVj(mWFrOw$XZ%&Kxo& z3KwYPOl{>7PN)gvba<7{Qf$*`Rp~5EqZEzOVw&Z!V)`?EpW?6w2wtY)A(<@9cf}mG z%bYG;%{6v~2b%XVP00gf2n6J)iazC(Yof6BNZfjjO-z}c;aR=kzo!&Bji2Ulo6HJF zMus+>M(d$$R$}`qM~7=z;b;t(o1`#@^~Gv+D&OyKBJ!qc4!`g*2hW2rc6A=h zeyER*wYMMW0%rBVbn1I(qg~BSHPGBaY@%hpD&soZ2z`NvWPUqLv&ci;4^G5~h5A;F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+++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/python -""" -szs/load - a load and cpu usage module for SZS a statusbar script for WMI - - - -CHANGELOG: - - v0.4 2004-12-14 - * some cleanups - * added support for 2.4 Kernels - - v0.3 2004-11-26 - * implemented configurable label - * some cleanups - - v0.2 2004-11-26 - * implemented cpu/io utilisation - - v0.1 2004-11-24 - * initial Release - * implemented system load - - -TODO: - - - -COPYRIGHT: - -Copyright 2004 Christoph Wegscheider - - -LICENSE: - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -""" - -import os -import szstoolbox - - -# init -oldcpusum = oldcpuutil = oldioutil = 0 - -# load configuration -cfg = szstoolbox.CFG('load') -loadlabel = cfg.read('loadlabel') -cpulabel = cfg.read('cpulabel') -showcpu = int(cfg.read('showcpu')) -maxload = int(cfg.read('maxload')) - - - -def main(): - global oldcpusum - global oldcpuutil - global oldioutil - bars = [] - - # cpu - if showcpu: - file = open('/proc/stat') - values = [int(it) for it in file.readline().split()[1:]] - file.close() - newcpusum = newcpuutil = newioutil = 0 - for it in values: newcpusum += it - for it in values[:3]: newcpuutil += it - if szstoolbox.kernel_version[:3] == '2.6': - for it in values[4:]: newioutil += it - cpusum = newcpusum - oldcpusum - bars.append(str((newcpuutil - oldcpuutil) * 100 / cpusum) + '%') - if szstoolbox.kernel_version[:3] == '2.6': - bars.append(str((newioutil - oldioutil) * 100 / cpusum) + '%' + cpulabel) - oldcpusum = newcpusum - oldcpuutil = newcpuutil - oldioutil = newioutil - - # load - if maxload > 0: - load = os.getloadavg() - for it in load: - bars.append(str(int(it / maxload * 100)) + '%') - bars[-1] += loadlabel - - returnli = [''] - returnli.extend(bars) - return returnli - - - -if __name__ == '__main__': - import time - - while True: - print main() - time.sleep(szstoolbox.interval) - diff --git a/etc/skel/.wmi/szs2.1/load.pyc b/etc/skel/.wmi/szs2.1/load.pyc deleted file mode 100644 index 293f6201d67b6114e48e416c4fb1aad23ba4ceab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3146 zcmb_e?`|8%5uYU~QanepoJfg-q|E?9040`4k#b_R%0F6`WTLVph*SkBFo@;dlHB-s zN8Rq}Pe29;+(+p5K1x6KL*Js0&=+WDmZT&{sPm?4a9Lo1nD%EJ$CBn9DrwjGUYIq0j{D%N608Ze~@BoWLIH7 z4$@FzCr+?&+MqecN}HOtOwjm=9#|(jeo^=6+I(Ky+u7RP-}$5GA>#R3=`nqueLO12j^~lNuUiG&P4$`uYF||6>Mp_+5Q!te`bjeY+ z>8>wON7`x`;-MlRjk*KVTp6qSF5VQj=KiyNiWtRj|KQ}XzVp0Eqs@45mFRBIy6_=x z_7ZJuJm}%E>KebNbf6Oa+Q0bzLUna1QubT2uv_2U+G}i)ezT_y4wAT=$UYL;NtB|v zckG2s)COL~Df%+PLu&Svjmhe`9g|fT%nekU2W>d+~tW=#e#Y>_UejwiVU6>ZIX{ zM-jl|dh_}IQ4?!>CwN>tJgn_CPc~?#?ZqTj=W1++D^8Ph6v{+K_KGljFSZW3{F}9> z_1${&gka-#y}7s5XyEq#A=dDqcG#?M9_`i+@!;t2V85|dLTpf2$bauG;pDB?j}wJ~ zvQmeJTs@)W8G;lB*pugqlISaaPJkqBfC0n#jU0J0jH9k|jAq^x$_DBVMzLMNi$qgF z*w`6*BYWOW_ExYS`K1;7@(uW3cG^VPJR`5j)ajjaZR8}kN zYfli58Z~cEQy&6DeF(VqnBs(R8`sRzh#Jv&P~eHZ_<|UQ>At*V6`x4BM^B!fO?u3~ z1V9&HB)|%Yn?hJ>(XO|SaxBQ{9E^%E%yFN74WOyZQd`f!C(mBK52FkWi(pBfnKWN< z_5^+|!pL(f_js}hsNIk9^kiXFfXjz4^x)ac1*e^7)h8r9OX2wPV-`{S$Ei3w7H8q? zuW)SdgI;jrV8-?IPeELwQ^_-)vBknzr2uFD0N28Yd9V-Q;b<0y0>~Zv9t^W!7vW)0 zfW_e~EK$d&6XOGJ{CC!P1mZ@m0Cwq)ntgw)%Etw*B_FVPxd_7o$R%K|{eX|SA9E1@ znFbF*f5>qe0bH)b5GWRpTr8&O#_=SjB?d^SZs9xoMH~|zI@J6Od}u#{C)uyvIpslD zz-R`BGoXLRp0YPIXwX62SmvDX89v9#)a3j!A4{5253ZzimP>(O)zViKA!3sj7@qK% z{tsP-C|LeIGg(aMnQ?VBtuba&w}_myqeEr5!sLKhf#bD)sJwI~nkX5BI#OnajZtH; zCPNf`czqpNr+F^JR2etN4`ZWTtw+k$bJ}-~j7NOZOof`d4vpMt{S$4YIBdt4W}eKx zatC8;(ly=uI1G4mkTFI&Azd77;!KPuT-&GN#QvR)HrZUxkJvcnuClz}%jm~wjCoy8*ZaL0k7j4FLZH@cFO{^xP3HV#iva(AH^Tq*RCJNlk zd_z>ZM?W6rzJ4Xk-J~Cu1J!oKs3Yk854bBAlSg4l1hZYP28OpAbnaFcP4;{Qx9*TClXjw?sMGtM6u?c3Vz zv~(HBbW1Qjtqcw|1D;@yWM2_f=33oXj%X%S@NQ3pN)6mZ+6*e8#4Iy<$GPtByxWa<(HT&EWaDf?0v!al32 - - -LICENSE: - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -""" - -import szstoolbox - - - -# load configuration -cfg = szstoolbox.CFG('memory') -label = cfg.read('label') -showram = int(cfg.read('showram')) -showswap = int(cfg.read('showswap')) - - - -def main(): - bars = [] - file = open('/proc/meminfo') - values = [it.split()[1] for it in file.readlines()] - file.close() - - # RAM - if showram: - if szstoolbox.kernel_version[:3] == '2.6': - bars.append('' + str((int(values[0]) - int(values[1]) - int(values[2]) - int(values[3])) * 100 / int(values[0])) + '%') - else: - bars.append('' + str((int(values[3]) - int(values[4]) - int(values[6]) - int(values[7])) * 100 / int(values[3])) + '%') - - # swap - if showswap and int(values[11])>0: - if szstoolbox.kernel_version[:3] == '2.6': - bars.append(str((int(values[11]) - int(values[12])) * 100 / int(values[11])) + '%') - else: - bars.append(str((int(values[15]) - int(values[16])) * 100 / int(values[15])) + '%') - - # label - if showram or (showswap and int(values[11])>0): - bars[-1] += label - - returnli = [''] - returnli.extend(bars) - return returnli - - - -if __name__ == '__main__': - import time - - while True: - print main() - time.sleep(szstoolbox.interval) - diff --git a/etc/skel/.wmi/szs2.1/memory.pyc b/etc/skel/.wmi/szs2.1/memory.pyc deleted file mode 100644 index 674e06c96f7eee1229832507015d9cf410714e69..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2799 zcmb_e-A)@<5T3OS#0!M9O_U#1(cGkRE3mPlNn4^O4gq3`0J4n`sUmB=JGM_)@49=A zA&#Io>8rF)(&y+y^tuzfmaTY11beU3f}WJ4U`6zfgo+SGeEOrNk$}cXYP`4W-Po0!7TjBma{-E z1at5v1@SsK;$|LR&BNOq&;rC?fz!mhcT7HRM6reuydf3-qo3I-P{gAK~Cs=z`<2%}Trmve`g4$11&)B1* zmlc=)HeZzYcD8o+cYbhPL_A&1uknPX)z$TtVriwg?q;*!ppLtQen?)_?`bRXf`9@H zRn&irrTjYTeyUCd4JBQTam#LY z_6~7}B1)LZLBAO)A9s~cktX!muSj%qPs2LYa{Qt9kW%>s5sg{Qhc7^DJ7cs zSQM!;W>sa19#-nnzTHdQ4Z}3giiTRXHX=q1kNijJNW#UCM+G9Hwx^~&bqZn=sFht-4q+EyO1#$jRp?tg?+o)f=1 z!hnpYLd{fPvbM|PwOAmL!HMlvYdW&J) z4zh6D!uihml#`+ENX?xxJ3qBsxZ-4}I^{&#yIF$xCQm~Wi&l-fyvacP`zN?p#@r{w zhdLtz*RS{;9*bY$W^Ro5{XOP4F|=fLM}}@(F*H2>*pU51%|M$|J_F}7pgspqj)agm zHU7HRa-VUH?CC`w3)~5P`FyFU6)T4&oJB4m8A|zwnkP_p;EDpp+Mwmu1O5o}UW$&Z zhKG3>7GzkG;RX-6FL=;$kH2)=V%3T8vdW^};@%$-D5wSd$h2<9Ff8`W-*5IBdpm^>yB!P!dtt7=4(tNBua=Yl?=u#i9Nssa-$<%^^LHuAlJ#nJUt^q6hw`(oRfbrzgQ zj+>ryZaS2r^nIQysY)vAEIO8JqahlNMotoCW7lW|vEOLuk76e^u(`cs1Le2c)|sT{ zQjp||#PD(kgsx;mI@1S$BhQi7C3YmCF{(>;QBOFVl1v>E_3TA9NePEBXYEcI6psRC y(iJ~K{lWHSOd=H4|8w}|B|OOs^gBGvrm{0j&XRM>xs}P@TXeFiG|V~IoPPkUb*s4m diff --git a/etc/skel/.wmi/szs2.1/module-developer-reference.txt b/etc/skel/.wmi/szs2.1/module-developer-reference.txt deleted file mode 100644 index 5fa8e27..0000000 --- a/etc/skel/.wmi/szs2.1/module-developer-reference.txt +++ /dev/null @@ -1,54 +0,0 @@ - Module Developer Reference - ========================== - -CONTRIBUTIONS -============= - -Contributions are always welcomed. The main communication happens in the #szs -channel at irc.freenode.org. There is also a mailinglist at szs-devel@wegi.net. -To subscribe send a mail to minimalist@wegi.net with the following Subject: -subscribe szs-devel - - - -SOURCE -====== - -We use the darcs (http://www.darcs.net) Version Control System for the -developement of szs. The main repository is at http://darcs.wegi.net/szs -To get the source run 'darcs get http://darcs.wegi.net/szs'. To stay up-to-date -run 'darcs pull'. - -If you want to submit patches please run the following 2 commands in the szs -source directory: - -$ echo Yourname > _darcs/prefs/author -$ echo szs-darcs@wegi.net > _darcs/prefs/email - -Make yourself familiar with darcs, a good manual is at http://darcs.net/manual/ -To send us the patch simple run 'darcs send', the patch will be automatically -forwarded to the szs-devel@wegi.net mailinglist. - - - -HOWTO MAKE A MODULE -=================== - -A szs module is a simple python script which has a main() function returning a -list. The first item must be a statustext or ''. All other items are bars. Bars -are those colored gauges at the right side of your statusbar. the following -syntax applies to bars: - -%