ENH turn off nm dmenu feature if not required
This commit is contained in:
parent
9530b7369f
commit
eda32c6e25
|
@ -139,9 +139,11 @@ runWinMenu :: SometimesX
|
||||||
runWinMenu = spawnDmenuCmd "window switcher" ["-show", "window"]
|
runWinMenu = spawnDmenuCmd "window switcher" ["-show", "window"]
|
||||||
|
|
||||||
runNetMenu :: Maybe SysClient -> SometimesX
|
runNetMenu :: Maybe SysClient -> SometimesX
|
||||||
runNetMenu cl =
|
runNetMenu cl = Sometimes "network control menu" enabled
|
||||||
sometimesDBus cl "network control menu" "rofi NetworkManager" tree cmd
|
[Subfeature root "network control menu"]
|
||||||
where
|
where
|
||||||
|
enabled f = xpfEthernet f || xpfWireless f || xpfVPN f
|
||||||
|
root = DBusRoot_ cmd tree cl
|
||||||
cmd _ = spawnCmd myDmenuNetworks $ themeArgs "#ff3333"
|
cmd _ = spawnCmd myDmenuNetworks $ themeArgs "#ff3333"
|
||||||
tree = And_ (Only_ $ Bus networkManagerPkgs networkManagerBus)
|
tree = And_ (Only_ $ Bus networkManagerPkgs networkManagerBus)
|
||||||
$ toAnd_ (DBusIO dmenuDep) $ DBusIO
|
$ toAnd_ (DBusIO dmenuDep) $ DBusIO
|
||||||
|
|
Loading…
Reference in New Issue