Commit graph

1174 commits

Author SHA1 Message Date
Carlos R. Mafra dd5d59b8f9 wmwifi: Display interface/essid in 2-second intervals
Base the decision to display either the interface name or essid
on a time interval rather than how many times the update() function
is called. The time interval is chosen to be 2 seconds.

The old logic would swap the display after update() was called
50 times. If 'interval' between updates is a sane value around 1 second,
it would take 50 seconds to swap the name on display.
2019-01-12 20:54:43 +00:00
Carlos R. Mafra 1e34ea7f98 wmwifi: call usleep() directly in main loop
I noticed using powertop that the number of wakeups per second
generated by wmwifi did not correlate well with the update interval,
where I'd expect approximately 1 wakeup if the update interval was 1 sec.

Strangely enough, calling the function

dockapp_nextevent_or_timeout(&event, update_interval * 1000)

in the main loop (note that I already replaced * 100 by * 1000 above)
with update_interval = 1 generates around 15 wakeups/sec here.

Calling usleep() in the loop instead leads to fewer wakeups, around 1/sec.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2019-01-12 19:20:30 +00:00
Carlos R. Mafra 742d4deddf asmon: Just assume linux kernel > v2.6
Running asmon in a new kernel (v4.19 here) did not display memory information
because the code checked whether the kernel was _exactly_ v2.6.

Although I could modify the check for > v2.6 I decided to drop support
for versions less than v2.6 (released in 2003).
2019-01-12 18:34:03 +00:00
Carlos R. Mafra e239e4a58d asmon: re-indent code
indent -linux asmon.c
2019-01-12 18:32:11 +00:00
Anil N' via Window Maker Development deb3acc132 libdockapp: Fix for missing windowname and one more.
- "Untitled window" appears in xfce4-wmdock-plugin's enumeration of
  dockapps using libdockapp.
- Reference to string buffer that might not live long enough.
2019-01-04 18:09:46 +00:00
Torrance, Douglas 9f23c97912 wmhdplop: Bump to version 0.9.11. 2018-12-11 11:52:46 +00:00
Torrance, Douglas 28b757ce2f wmshutdown: Bump to version 1.6 2018-12-08 15:36:44 +00:00
Torrance, Douglas 2ef4549500 wmshutdown: Use const in XPM image. The function gdk_pixbuf_new_from_xpm_data expects a const char, and so previously we had a compiler warning. 2018-12-08 15:36:44 +00:00
Torrance, Douglas c177247360 wmshutdown: Destroy dialog window before shutting down. This is especially useful for suspending or hibernating. After turning the computer back on, the wmshutdown dialog would still be open from before, and clicking on the dockapp would n... 2018-12-08 15:36:44 +00:00
Flisk a01f239aca Fix error message spam when no player is running 2018-10-05 15:36:56 +01:00
Torrance, Douglas bfe8518888 wmshutdown: Bump to version 1.5. 2018-09-23 12:15:08 +01:00
Torrance, Douglas ddd1876d1d wmshutdown: Add freedesktop.org desktop entry file. 2018-09-23 12:15:08 +01:00
Torrance, Douglas ec0624dc47 wmshutdown: Add icon for freedesktop.org icon themes. 2018-09-23 12:15:08 +01:00
Torrance, Douglas c4bb16479c wmshutdown: Include xpm icon in source rather than installing into a data directory and loading it from file. 2018-09-23 12:15:08 +01:00
Torrance, Douglas c2271bfeb2 wmshutdown: Update manpage 2018-09-23 12:15:08 +01:00
Torrance, Douglas cfd259f5bd wmshutdown: Update my email address. 2018-09-23 12:15:08 +01:00
Torrance, Douglas 6b2a8dc61a wmshutdown: Add support for suspend and hibernate. 2018-09-23 12:15:08 +01:00
Torrance, Douglas eaa934f12a wmshutdown: Remove support for deprecated Consolekit. 2018-09-23 12:15:08 +01:00
Doug Torrance ef490d0670 wmcalc: Bump to version 0.7. 2018-09-11 06:28:25 -04:00
Doug Torrance a916fe2800 wmcalc: Add freedesktop.org desktop entry file. 2018-09-11 06:28:25 -04:00
Doug Torrance ff19c1226f wmcalc: Add icon for freedesktop.org icon themes. 2018-09-11 06:28:25 -04:00
Doug Torrance 0467087064 wmcalc: Use version number from autoconf. 2018-09-11 06:28:25 -04:00
Doug Torrance d90f29b5be wmcalc: Remove unused image files. 2018-09-11 06:28:25 -04:00
Doug Torrance 13b3710b02 wmcalc: Use autotools for build. 2018-09-11 06:28:25 -04:00
Doug Torrance ec62fab633 wmcalc: Null-termitate display string when clearing.
Often, the number currently being displayed has more than 10 digits.
However, when clearing the display, only the first 10 digits were cleared.
When a new number was entered, it would be prepended to any digits that
weren't cleared.  This behavior was invisible to the user, causing
incorrect calculations, e.g., Debian bug #564173:

1814 / 720 * 300 -> 7568.41111

But the correct answer is 755.833333.

The problem was that when the display was cleared, the string that stores
this number was not null-terminated.  Indeed, 1814 / 720 gives us
2.519444444 (6 4's), but only 2.51944444 (5 4's) is displayed.  When we
begin to multiply by 300, the final 4 remained, and so we really were
multiplying by 3004.
2018-08-29 23:14:02 -04:00
Doug Torrance 1d813d4434 wmthrottle: Remove autogenerated autotools files from git. 2018-07-15 18:57:29 +01:00
Doug Torrance e2c09fe8fe wmthrottle: Add version 0.1.1 to repository.
From
https://web.archive.org/web/20071004044600/http://rffr.de/wmthrottle-0.1.1.tar.bz2
2018-07-15 18:57:29 +01:00
Doug Torrance 6f0fbd34f9 wmmemfree: Bump to version 0.8. 2018-07-14 00:05:48 +01:00
Doug Torrance 37e0f3de58 wmmemfree: Include only necessary headers. 2018-07-14 00:05:48 +01:00
Doug Torrance 872f0df996 wmmemfree: Add error handling for fscanf. 2018-07-14 00:05:48 +01:00
Doug Torrance 08a8a6a70e wmmemfree: Parse modern /proc/meminfo 2018-07-14 00:05:48 +01:00
Doug Torrance e98be23914 wmmemfree: Add version 0.7 to repository.
From
http://ftp.vim.org/ibiblio/X11/xutils/wmmemfree-0.7.tar.gz
2018-07-14 00:05:48 +01:00
Doug Torrance 3cf833d152 wmmisc: Bump to version 1.2. 2018-07-12 12:27:48 +01:00
Doug Torrance 21762f7e46 wmmisc: Add desktop entry file. 2018-07-12 12:27:48 +01:00
Doug Torrance 86ff9357b7 wmmisc: Update documentation. 2018-07-12 12:27:48 +01:00
Doug Torrance 6b1e14dab3 wmmisc: Add support for wmgeneral's -geometry command line argument. 2018-07-12 12:27:48 +01:00
Doug Torrance 01bb8bdecf wmmisc: Add support for wmgeneral's -display command line argument 2018-07-12 12:27:48 +01:00
Doug Torrance 21c9a972a6 wmmisc: Add manpage from Debian.
From
https://sources.debian.org/data/main/w/wmmisc/1.1-4/debian/wmmisc.1
2018-07-12 12:27:48 +01:00
Doug Torrance 3782edcfd3 wmmisc: Use autoconf defines for version number and bugreport address. 2018-07-12 12:27:48 +01:00
Doug Torrance 80e3fdf32a wmmisc: Add error handling for fscanf. 2018-07-12 12:27:48 +01:00
Doug Torrance ced470da36 wmmisc: Don't link against X11 libs; unnecessary. 2018-07-12 12:27:48 +01:00
Doug Torrance 036c25fcb5 wmmisc: Use only necessary headers. 2018-07-12 12:27:48 +01:00
Doug Torrance eb0ba99973 wmmisc: Move blue to top of list in XPM colors so that wmgeneral properly creates mask. 2018-07-12 12:27:48 +01:00
Doug Torrance 6582a4e21d wmmisc: Use wmgeneral from libdockapp. 2018-07-12 12:27:48 +01:00
Doug Torrance 4db8f00e97 wmmisc: Switch to autotools for build. 2018-07-12 12:27:48 +01:00
Doug Torrance 1400fab143 wmmisc: Add version 1.1 to repository.
From
http://distro.ibiblio.org/amigolinux/download/DockApps/wmmisc-1.1/wmmisc-1.1.tar.bz2
2018-07-12 12:27:48 +01:00
Doug Torrance 0b07a2af77 asmon: Bump to version 0.72. 2018-07-11 08:13:24 +01:00
Doug Torrance 3ba7b298bc asmon: Don't link against libXext and libXpm; unnecessary. 2018-07-11 08:13:24 +01:00
Doug Torrance 017fd0d930 asmon: Include only necessary header files. 2018-07-11 08:13:24 +01:00
Doug Torrance ada83f08a9 asmon: Remove set but unused variables. 2018-07-11 08:13:24 +01:00