Help BSPWM - Keybinds #shutdown - scripts

So I'm kinda new to keybinds :confused: I recently started using Manjaro BSPWM and its a little confusing, I've messed around with Dconf but that's about it. I would really like some help with setting up a shutdown keybind and possibly writing shell scripts/terminal commands that I could run via keybinds!

See what is the shutdown command in the menu config. Then see the file ~/.config/sxhkd/sxhkd.conf how key binding are defined there. Find an unused keybinding and make it perform the bsprc shutdown command in a similar way.

This is what I tried

#sleep
super + q
XF86Sleep
systemctl suspend

#sleep
super + q
systemctl suspend

Not working :confused:

Think I need to add some kind of command before

systemctl suspend

Sorry I'm really newbie and don't know how to figure this out

Have you run Super+Shift+Escape after saving changes to sxhkdrc? This reloads the settings.
BTW: I have

XF86Sleep
       systemctl suspend

in my sxhkdrc.

proper indentation is required in the sxhkdrc file if you want your keybindings to work

Is indentation like the layout, I don't know much about this. Ill give it ago tomorrow. Pretty sure I followed the format correctly.

I have a feeling I need to add some extra code to get this working :turtle:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by