Skip to content

Commit

Permalink
chore: add log-out shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and mmstick committed Jan 18, 2025
1 parent d6b76fc commit c2deb05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ fn all_system_actions() -> &'static [Action] {
Action::System(SystemAction::KeyboardBrightnessDown),
Action::System(SystemAction::KeyboardBrightnessUp),
Action::System(SystemAction::Launcher),
Action::System(SystemAction::LogOut),
Action::System(SystemAction::LockScreen),
Action::System(SystemAction::Mute),
Action::System(SystemAction::MuteMic),
Expand Down Expand Up @@ -654,6 +655,7 @@ fn localize_action(action: &Action) -> String {
}
SystemAction::KeyboardBrightnessUp => fl!("system-shortcut", "keyboard-brightness-up"),
SystemAction::Launcher => fl!("system-shortcut", "launcher"),
SystemAction::LogOut => fl!("system-shortcut", "log-out"),
SystemAction::LockScreen => fl!("system-shortcut", "lock-screen"),
SystemAction::Mute => fl!("system-shortcut", "mute"),
SystemAction::MuteMic => fl!("system-shortcut", "mute-mic"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pub const fn actions() -> &'static [Action] {
Action::System(SystemAction::WorkspaceOverview),
Action::System(SystemAction::WindowSwitcher),
Action::System(SystemAction::WindowSwitcherPrevious),
Action::System(SystemAction::LogOut),
Action::System(SystemAction::LockScreen),
Action::System(SystemAction::VolumeLower),
Action::System(SystemAction::VolumeRaise),
Expand Down
1 change: 1 addition & 0 deletions i18n/en/cosmic_settings.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ system-shortcut = System
.keyboard-brightness-down = Decrease keyboard brightness
.keyboard-brightness-up = Increase keyboard brightness
.launcher = Open the launcher
.log-out = Log Out
.lock-screen = Lock the screen
.mute = Mute audio output
.mute-mic = Mutes microphone input
Expand Down

0 comments on commit c2deb05

Please sign in to comment.