2 #RFKill-Applet (Harvie 2oo9)
7 my $rfkill = '/sys/class/rfkill/rfkill*/state';
8 #my $rfkill = '/sys/devices/*/*/*/rfkill/rfkill*/state';
9 my $icon_e = 'gnome-dev-wavelan'; #enabled
10 my $icon_d = 'emblem-unreadable'; #disabled
12 my $statusicon = Gtk2
::StatusIcon
->new();
13 #$statusicon->signal_connect(activate => sub { Gtk2->main_quit; }); #exit on click...
18 $state = `head -c 1 $rfkill 2> /dev/null`;
21 $statusicon->set_from_icon_name($icon_e);
22 $statusicon->set_tooltip_text('Radio enabled');
24 $statusicon->set_from_icon_name($icon_d);
25 $statusicon->set_tooltip_text('Radio disabled');
This page took 0.905229 seconds and 4 git commands to generate.