
Running a screensaver is a very important security feature. It is necessary that it always works and does not depend on the state of the user's directories, so the screensaver run-script should be placed in the system directory. However, the locking process remains customizable because the user script can be used too.
32 lines
574 B
JSON
32 lines
574 B
JSON
[
|
|
{
|
|
"label": "Lock",
|
|
"exec": "swaymsg exec /usr/share/sway/scripts/lock.sh",
|
|
"icon": "system-lock-screen"
|
|
},
|
|
{
|
|
"label": "Logout",
|
|
"exec": "swaymsg exit",
|
|
"icon": "system-log-out"
|
|
},
|
|
{
|
|
"label": "Suspend",
|
|
"exec": "systemctl suspend",
|
|
"icon": "system-suspend"
|
|
},
|
|
{
|
|
"label": "Hibernate",
|
|
"exec": "systemctl hibernate",
|
|
"icon": "system-hibernate"
|
|
},
|
|
{
|
|
"label": "Reboot",
|
|
"exec": "systemctl reboot",
|
|
"icon": "system-reboot"
|
|
},
|
|
{
|
|
"label": "Shutdown",
|
|
"exec": "systemctl -i poweroff",
|
|
"icon": "system-shutdown"
|
|
}
|
|
]
|