Skip to content

Commit 5917f07

Browse files
committed
config: Add Suspend system action
1 parent 2f17f33 commit 5917f07

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/src/shortcuts/action.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ pub enum System {
163163
PlayPrev,
164164
/// Takes a screenshot
165165
Screenshot,
166+
/// Suspend the system
167+
Suspend,
166168
/// Opens the system default terminal
167169
Terminal,
168170
/// Lowers the volume of the active audio output

data/system_actions.ron

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
PlayPrev: "playerctl previous",
2828
/// Takes a screenshot
2929
Screenshot: "cosmic-screenshot",
30+
/// Suspend the system
31+
Suspend: "systemctl suspend",
3032
/// Opens the system default terminal
3133
Terminal: "cosmic-term",
3234
/// Lowers the volume of the active output device

0 commit comments

Comments
 (0)