main_screen

remove all DBUS handler,and in related plugins

wifi
use wpa-connect to do the connecting / scanning , use wpa_cli to do disconnect
This commit is contained in:
cuu
2021-10-10 00:20:47 +08:00
parent 0461450ea9
commit d463dd10ec
14 changed files with 274 additions and 195 deletions

View File

@@ -9,8 +9,8 @@ type PowerLevel struct {
var PowerLevels map[string]*PowerLevel
var (
//CurKeySet = "PC" // PC or GameShell
CurKeySet = "GameShell"
CurKeySet = "PC" // PC or GameShell
//CurKeySet = "GameShell"
DontLeave = false
BackLight = "/proc/driver/backlight"
Battery = "/sys/class/power_supply/axp20x-battery/uevent"
@@ -25,13 +25,13 @@ var (
//load from dot files
CurPowerLevel= "performance"
Lang = "English"
WifiDev = "wlan0"
//WifiDev = "wlan0"
WifiDev = "wlp5s0"
)
func init() {
if PowerLevels == nil {
PowerLevels = make(map[string]*PowerLevel)