Discussion:
wicd-curses(1) standout mode when connected
(too old to reply)
Mike Spencer
2019-12-08 03:41:58 UTC
Permalink
Finally upgrading to Slack 14.2 from (variously) 11, 12 and 14.1. Many
little annoyances.

Wicd-curses 1.7.2.4 (with Slack 14.1) running in an xterm highlighted
a line representing a connected network w/ a green background,
reverted to white when the connection was closed or lost.

With Slack 14.2, wicd-curses (1.7.4) fails to do this.

This seems to be managed by array:

ui.register_palette([
[...]
('connected', 'dark green', 'default'),
('connected focus', 'black', 'dark green'),
[...]
])

in /usr/share/wicd/curses/wicd-curses.py, the same array in both
versions of wicd-curses.

But I don't know Python so I can't readily unpack the code. Is there
a known typo or bug I can fix to restore the connected -> green
highlighting?

(This is not a failure of X or xterm to render green at all within
wicd-curses. The wicd-curses "About" screen displays green elements as
expected.)
--
Mike Spencer Nova Scotia, Canada
Javier
2019-12-08 13:19:14 UTC
Permalink
Post by Mike Spencer
ui.register_palette([
[...]
('connected', 'dark green', 'default'),
('connected focus', 'black', 'dark green'),
[...]
])
in /usr/share/wicd/curses/wicd-curses.py, the same array in both
versions of wicd-curses.
Also look at /usr/share/wicd/curses/configscript_curses.py

ui.register_palette([
('body', 'default', 'default'),
('focus', 'dark magenta', 'light gray'),
('editcp', 'default', 'default', 'standout'),
('editbx', 'light gray', 'dark blue'),
('editfc', 'white', 'dark blue', 'bold'),
])

I got fed up of wicd for other reasons. Now I invoke wpa_supplicant
directly with an script. I assume you are using wpa2, not wep.

==========================================
#!/usr/bin/env bash

WIFI_SSID='...'
WIFI_PASSPHRASE='...'
IF_name=$(ifconfig -a | grep '^wl' | sed 's/:.*$//g' | head -1)
NET_DHCPCD_OPTS=' -4 -w '"${@}"

kill -9 $(pgrep -a wpa_supplicant | grep ${IF_name} | cut -d' ' -f1)
kill -9 $(pgrep -a dhcpcd | grep ${IF_name} | cut -d' ' -f1)
ifconfig ${IF_name} down
ifconfig ${IF_name} up
wpa_passphrase "${WIFI_SSID}" "${WIFI_PASSPHRASE}" > /etc/wpa_supplicant/autogenerated_${IF_name}.conf
wpa_supplicant -dd -W -B -i${IF_name} -c /etc/wpa_supplicant/autogenerated_${IF_name}.conf
dhcpcd ${NET_DHCPCD_OPTS} ${IF_name}
==========================================

Loading...