You are not logged in.
Pages: 1
Here is a Switch Button script for XFCE panel, implemented via genmon plugin.
It tracks its state (on/off), and with minimal modifications it can have more than 2 states (as many as you want).
When clicked, it runs commands, e.g.
genmon-switch-on.sh when "switching on"
genmon-switch-off.sh when "switching off"
(It changes its icon and sends notifications in accordance, using `notify-send`).
It can be used to:
Switch day/night visual theme
Start/stop some background process/service (e.g. web server)
Open/close a remote connection (SOCKS5, ssh etc.)
...and whatnot. Details, scripts, usage:
https://codeberg.org/chang-zhao/genmon-switch
Last edited by chang-zhao (2023-12-03 02:45:50)
Offline
Helpful, thanks.
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 516.18 KiB (Peak: 528.43 KiB) ]