Script to add reboot and shutdown shortcuts

I’m trying to write a script that adds reboot and shutdown shortcuts in Manjaro Cinnamon. Right now I’m getting:

❯ ./
No such schema “”
No such schema “”
No such schema “”
No such schema “”

with the following script:


# Define the command to reboot the system
COMMAND="sync && mount -o remount,ro -a && reboot"

# Define the shortcut key combination

# Set the shortcut using the gsettings command
gsettings set custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
gsettings set command "$COMMAND"
gsettings set name "Reboot System"
gsettings set binding "$KEYS"

5 posts were merged into an existing topic: Shortcut to restart the system