gofmt
This commit is contained in:
parent
ae02d67823
commit
6e09ba3382
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ func get_playing_spotify_media() string {
|
|||
}
|
||||
|
||||
func get_battery_status() string {
|
||||
obj := CONN.dbusSystem.Object("org.freedesktop.UPower", "/org/freedesktop/UPower/devices/battery_" + BATTERY)
|
||||
obj := CONN.dbusSystem.Object("org.freedesktop.UPower", "/org/freedesktop/UPower/devices/battery_"+BATTERY)
|
||||
|
||||
percentageProp, err := obj.GetProperty("org.freedesktop.UPower.Device.Percentage")
|
||||
if err != nil {
|
||||
|
@ -192,7 +192,7 @@ func format_time_duration(secs int64) string {
|
|||
func dbus_battery_handler(feedback chan bool) {
|
||||
err := CONN.dbusSystem.AddMatchSignal(
|
||||
dbus.WithMatchSender("org.freedesktop.UPower"),
|
||||
dbus.WithMatchObjectPath("/org/freedesktop/UPower/devices/battery_" + BATTERY),
|
||||
dbus.WithMatchObjectPath("/org/freedesktop/UPower/devices/battery_"+BATTERY),
|
||||
dbus.WithMatchInterface("org.freedesktop.DBus.Properties"),
|
||||
dbus.WithMatchMember("PropertiesChanged"),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue