1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00
serenity/Base/etc/SystemServer.ini
Linus Groh 54fc972a72 MenuApplets: Support memory usage and custom colors in ResourceGraph
The ResourceGraph menu applet now supports a few command line options:

--cpu / -C to display a CPU usage graph
--memory / -M to display a memory usage graph
--name / -n to set a name which is used to order applets
--color / -c to set the graph color (supports anything
Gfx::Color::from_string() understands)

The SystemServer.ini and WindowServer.ini config files have been updated
to spawn and show two ResourceGraph menu applets, one for CPU usage
(green) and one for memory usage (cyan) - this matches the colors in the
SystemMonitor graphs.
2020-04-11 10:03:12 +02:00

86 lines
1.3 KiB
INI

[TTYServer]
# NOTE: We don't start anything on tty0 since that's the "active" TTY while WindowServer is up.
Arguments=tty1
StdIO=/dev/tty1
Priority=high
[ProtocolServer]
Socket=/tmp/portal/protocol
SocketPermissions=660
Lazy=1
Priority=low
KeepAlive=1
User=protocol
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=660
Lazy=1
Priority=low
KeepAlive=1
User=lookup
[DHCPClient]
Priority=low
KeepAlive=1
User=root
[NotificationServer]
Socket=/tmp/portal/notify
SocketPermissions=660
Lazy=1
Priority=low
KeepAlive=1
User=notify
[WindowServer]
Socket=/tmp/portal/window
SocketPermissions=660
Priority=high
KeepAlive=1
User=window
[SystemMenu]
KeepAlive=1
User=anon
[Clock.MenuApplet]
KeepAlive=1
User=anon
[CPUGraph.MenuApplet]
Executable=/bin/ResourceGraph.MenuApplet
Arguments=--cpu --name=CPUGraph --color=limegreen
KeepAlive=1
User=anon
[MemoryGraph.MenuApplet]
Executable=/bin/ResourceGraph.MenuApplet
Arguments=--memory --name=MemoryGraph --color=cyan
KeepAlive=1
User=anon
[Audio.MenuApplet]
KeepAlive=1
User=anon
[UserName.MenuApplet]
Priority=low
KeepAlive=1
User=anon
[AudioServer]
Socket=/tmp/portal/audio
# TODO: we may want to start it lazily, but right now WindowServer connects to it immediately on startup
Priority=high
KeepAlive=1
User=anon
[Taskbar]
Priority=high
KeepAlive=1
User=anon
[Terminal]
User=anon
WorkingDirectory=/home/anon