Skip to content

Commit 9ad7122

Browse files
committed
config: Add Suspend system action
1 parent 58ff27f commit 9ad7122

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
@@ -171,6 +171,8 @@ pub enum System {
171171
PlayPrev,
172172
/// Takes a screenshot
173173
Screenshot,
174+
/// Suspend the system
175+
Suspend,
174176
/// Opens the system default terminal
175177
Terminal,
176178
/// 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
@@ -29,6 +29,8 @@
2929
PlayPrev: "playerctl previous",
3030
/// Takes a screenshot
3131
Screenshot: "cosmic-screenshot",
32+
/// Suspend the system
33+
Suspend: "systemctl suspend",
3234
/// Opens the system default terminal
3335
Terminal: "cosmic-term",
3436
/// Lowers the volume of the active output device

0 commit comments

Comments
 (0)