forked from ashpie/simple-awesome
If nm-applet is present on system, run it
This commit is contained in:
parent
cff3debfdb
commit
fdd6143bec
@ -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
7
rc.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user