The command pm-suspend works for me too, but only with sudo. Can qtile run commands as root when bound to keys? I think I know how to make the key binding.
On Tue, Sep 1, 2020, 9:55 PM Mikel Ward <[email protected]> wrote: > Do you need help with the binding, or the command to make it sleep? > > For the command, if you're using systemd, try something like: > > systemctl start suspend.target > > You probably need sudo or polkit or something to get the right privileges. > > On Tue, Sep 1, 2020 at 9:39 PM [email protected] < > [email protected]> wrote: > >> This seems like a dumb question, but I'm having a hard time figuring out >> how to set up a keyboard shortcut to put my computer to sleep. Anyone done >> this successfully with qtile? >> >> - Kovas >> >> -- >> You received this message because you are subscribed to the Google Groups >> "qtile-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/qtile-dev/c6aed11a-6b52-4905-96d7-59cb7eb3ae28n%40googlegroups.com >> <https://groups.google.com/d/msgid/qtile-dev/c6aed11a-6b52-4905-96d7-59cb7eb3ae28n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "qtile-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/qtile-dev/x1h0RXvBH4w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/qtile-dev/CACVmprdQOVopbv52b5iY%3DnKU%2B0MQ7LNtsgaW-7sNWZ_75PayVQ%40mail.gmail.com > <https://groups.google.com/d/msgid/qtile-dev/CACVmprdQOVopbv52b5iY%3DnKU%2B0MQ7LNtsgaW-7sNWZ_75PayVQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/CAPzck%3DdTXqyu9SnuFSpqkBVEDTf8r4aCtujhCgcQ2YR6gC_iSw%40mail.gmail.com.
