fucking hell you god damn battery notifications
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
93698fb6b3
commit
e25469f397
29
Makefile
29
Makefile
|
@ -1,6 +1,7 @@
|
||||||
all: go.mod
|
all: go.mod
|
||||||
go mod tidy
|
go mod tidy
|
||||||
go build
|
go build
|
||||||
|
./go-notify-helloworld
|
||||||
|
|
||||||
# init the go mod files
|
# init the go mod files
|
||||||
go.mod:
|
go.mod:
|
||||||
|
@ -14,3 +15,31 @@ run:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f go.* go-notify-helloworld
|
rm -f go.* go-notify-helloworld
|
||||||
|
|
||||||
|
# dumps out things like battery and network access point stuff:
|
||||||
|
#
|
||||||
|
# signal time=1665266429.743394 sender=:1.45 -> destination=(null destination) serial=42594 path=/org/freedesktop/UPower/devices/battery_BATT; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
|
||||||
|
# signal time=1665266425.288750 sender=:1.11 -> destination=(null destination) serial=107357 path=/org/freedesktop/NetworkManager/AccessPoint/1594; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
|
||||||
|
dbus-monitor-system:
|
||||||
|
dbus-monitor --system
|
||||||
|
|
||||||
|
#
|
||||||
|
# method call time=1665266624.934192 sender=:1.497 -> destination=:1.498 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
|
||||||
|
# string "Hello World!"
|
||||||
|
# uint32 0
|
||||||
|
# string ""
|
||||||
|
# string "Hello World v2!"
|
||||||
|
# string "This is an example notification."
|
||||||
|
# array [
|
||||||
|
# ]
|
||||||
|
# array [
|
||||||
|
# dict entry(
|
||||||
|
# string "sender-pid"
|
||||||
|
# variant int64 852595
|
||||||
|
# )
|
||||||
|
# ]
|
||||||
|
# int32 3000
|
||||||
|
|
||||||
|
# signal time=1665266425.288750 sender=:1.11 -> destination=(null destination) serial=107357 path=/org/freedesktop/NetworkManager/AccessPoint/1594; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
|
||||||
|
dbus-monitor-session:
|
||||||
|
dbus-monitor --session
|
||||||
|
|
2
main.go
2
main.go
|
@ -18,7 +18,7 @@ const (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
notify.Init("Hello World!")
|
notify.Init("Hello World!")
|
||||||
hello := notify.NotificationNew("Hello World!",
|
hello := notify.NotificationNew("Hello World v2!",
|
||||||
"This is an example notification.",
|
"This is an example notification.",
|
||||||
"")
|
"")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue