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 committed Jan 18, 2025
1 parent d6b76fc commit fc37d1e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

10 changes: 8 additions & 2 deletions cosmic-settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cosmic-idle-config.workspace = true
cosmic-panel-config = { workspace = true, optional = true }
cosmic-randr-shell.workspace = true
cosmic-randr = { workspace = true, optional = true }
cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true }
cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", branch = "log-out", optional = true }
cosmic-settings-page = { path = "../page" }
cosmic-settings-system = { path = "../pages/system", optional = true }
cosmic-settings-wallpaper = { path = "../pages/wallpapers" }
Expand All @@ -37,7 +37,13 @@ futures = "0.3.30"
hostname-validator = "1.1.1"
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
i18n-embed-fl = "0.9.1"
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "rayon", "webp", "hdr"] }
image = { version = "0.25", default-features = false, features = [
"jpeg",
"png",
"rayon",
"webp",
"hdr",
] }
indexmap = "2.5.0"
itertools = "0.13.0"
itoa = "1.0.11"
Expand Down
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 fc37d1e

Please sign in to comment.