If nm-applet is present on system, run it

This commit is contained in:
Alice Gaudon 2019-07-24 07:32:38 +02:00
parent cff3debfdb
commit fdd6143bec
2 changed files with 9 additions and 1 deletions

View File

@ -13,11 +13,12 @@ By default, Simple Awesome uses
## Optional dependencies
- `playerctl` - enables global media control. If not present on your system, only Spotify will work.
- `network-manager-applet` (`nm-applet`) - network control "widget" **for `NetworkManager` only**. If present on your system, we will automatically run it.
## To do
- Add a media control widget
- Add a network control widget
- Manage workspaces
- Improve "leave menu"'s design
- Modify "start menu"

7
rc.lua
View File

@ -26,6 +26,13 @@ local config = require("default_config")
local tiling = require("tiling")
local media_control = require("media_control")
-- Network widget
if os.execute("nm-applet --help") == true then
os.execute("nm-applet &")
else
-- Support for more network managers should be requested via issues
end
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to