How to create a keybind to suspend computer

This page summarizes the projects mentioned and recommended in the original post on /r/suckless

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • scripts

    *Well documented* scripts exploiting some useful UNIX utilities. (by chhajedji)

  • Your usage would look like: { MODKEY, XK_s, spawn, SHCMD("systemctl suspend") }, `` Also a better idea to suspend could be to lock system when recovered from suspended state. Check [this script](https://github.com/chhajedji/scripts/blob/master/suspend_lock.sh) to suspend the computer. It usesi3lock` to lock system.

  • sxhkd

    Simple X hotkey daemon

  • I generally recommend managing keybindings for applications separately from the window manager using tools such as sxhkd. That way if you are trying out a new build or finding yourself having to jump to another window manager because you broke your dwm then you still have access to the same programs etc. with the same familiar keybindings. Also you don't have to recompile dwm to add or change your keybindings.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts