Skip to content

Commit

Permalink
chore: add hotkey for suspend this pc only
Browse files Browse the repository at this point in the history
  • Loading branch information
jalmeroth committed Nov 16, 2024
1 parent 5effaf2 commit 7ac0ec6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hotkeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "class/hid/hid.h"
#include "main.h"

hotkey_combo_t hotkeys[] = {
Expand All @@ -39,6 +40,11 @@ hotkey_combo_t hotkeys[] = {
.key_count = 1,
.pass_to_os = false,
.action_handler = &enable_debug},
{.modifier = KEYBOARD_MODIFIER_RIGHTALT | KEYBOARD_MODIFIER_RIGHTSHIFT,
.keys = {HID_KEY_Q},
.key_count = 1,
.pass_to_os = false,
.action_handler = &send_suspend_pc_report},
{.modifier = KEYBOARD_MODIFIER_RIGHTALT | KEYBOARD_MODIFIER_RIGHTSHIFT,
.keys = {HID_KEY_R},
.key_count = 1,
Expand Down

0 comments on commit 7ac0ec6

Please sign in to comment.