LauncherGoDev/sysgo/config.go
cuu d463dd10ec 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
2021-10-10 00:20:47 +08:00

44 lines
985 B
Go

package sysgo
type PowerLevel struct {
Dim int
Close int
PowerOff int
}
var PowerLevels map[string]*PowerLevel
var (
CurKeySet = "PC" // PC or GameShell
//CurKeySet = "GameShell"
DontLeave = false
BackLight = "/proc/driver/backlight"
Battery = "/sys/class/power_supply/axp20x-battery/uevent"
MPD_socket = "/tmp/mpd.socket"
UPDATE_URL="https://raw.githubusercontent.com/clockworkpi/CPI/master/launchergo_ver.json"
VERSION="0.22"
SKIN="skin/default/" // !!!need the last slash!!!
//load from dot files
CurPowerLevel= "performance"
Lang = "English"
//WifiDev = "wlan0"
WifiDev = "wlp5s0"
)
func init() {
if PowerLevels == nil {
PowerLevels = make(map[string]*PowerLevel)
PowerLevels["supersaving"] = &PowerLevel{10, 30, 120}
PowerLevels["powersaving"] = &PowerLevel{40, 120, 300}
PowerLevels["server"] = &PowerLevel{40, 120, 0 }
PowerLevels["performance"] = &PowerLevel{40, 0, 0 }
}
}