A widget for the Awesome Window Manager to monitor the network with Connman
Go to file
Stefano Mazzucco e917b699a9 Check that the services array is not nil before indexing it
This may happen when e.g. the connman service is restarted.
2017-06-14 22:35:16 +01:00
.gitignore Initial commit 2016-10-06 21:53:24 +01:00
LICENSE Release version 0.1.1: add explicit license 2016-10-06 22:05:09 +01:00
README.md Use connman_dbus 0.2.x backend and update tooltip 2017-06-05 15:43:55 +01:00
connman_widget-0.1.3-1.rockspec Release version 0.1.3 2016-10-21 23:23:48 +01:00
connman_widget-0.1.4-1.rockspec Use connman_dbus 0.2.x backend and update tooltip 2017-06-05 15:43:55 +01:00
connman_widget-devel-1.rockspec Use connman_dbus 0.2.x backend and update tooltip 2017-06-05 15:43:55 +01:00
connman_widget.lua Check that the services array is not nil before indexing it 2017-06-14 22:35:16 +01:00

README.md

A widget for the Awesome Window Manager to monitor the network with Connman

This widget uses the connman_dbus library.

Requirements

In addition to the requirements listed in the rockspec file, you will need the Awesome Window Manager and Connman (for more information about this, see the connman_dbus documentation).

Installation

Using Luarocks

Probably, the easiest way to install this widget is to use luarocks:

luarocks install connman_widget

You can use the --local option if you don't want or can't install it system-wide

This will ensure that all its dependencies are installed.

From source

Alternatively, you can copy the connman_widget.lua file in your ~/.config/awesome folder. You will have to install all the dependencies manually though (see the rockspec file for more information).

Configuration

The widget displays network icons that are searched in the folders defined in the table beautiful.connman_icon_theme_dirs with extensions defined in the table beautiful.connman_icon_extensions. The default is to look into "/usr/share/icons/Adwaita/scalable/devices/" and "/usr/share/icons/Adwaita/scalable/status/"for icons whose extension is "svg". Note that the directory paths must end with a slash and that the extensions must not contain a dot. The icons are searched using Awesome's awful.util.geticonpath function.

Depending on your network devices, you may need some or all of the icons whose name starts with network-.

You can specify a GUI client to be launched when the widget is right-clicked. This can be done by changing the gui_client field of the widget. A list of Desktop clients is also available on the Arch wiki.

Mouse controls

When the widget is focused:

  • Right button: launches GUI client (defined by the gui_client field)

Tooltip

The tooltip shows the currently connected network, its status and - if applicable - the signal strength.

Usage

Add the following to your ~/.config/awesome/rc.lua:

Require the module:

-- require *after* `beautiful.init` or the theme will be inconsistent!
local connman = require("connman_widget")
-- set the GUI client.
connman.gui_client = "wicd"

Add the widget to your layout:

  • Awesome 4.x
-- Add widgets to the wibox
s.mywibox:setup {

  -- more setup

  { -- Right widgets
    layout = wibox.layout.fixed.horizontal,
    wibox.widget.systray(),
    connman, -- <- connman widget
    mytextclock,
    s.mylayoutbox,
  },
}
  • Awesome 3.x
right_layout:add(connman)

Limitations

Currently, only wired (ethernet) and WiFi connections are supported.