diff --git a/Cargo.lock b/Cargo.lock index 8d62668..7506805 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1514,7 +1514,7 @@ dependencies = [ [[package]] name = "cosmic-settings-config" version = "0.1.0" -source = "git+https://github.com/pop-os/cosmic-settings-daemon#54700dfee57d1569efb2179896e36d754c2bf270" +source = "git+https://github.com/pop-os/cosmic-settings-daemon#362c77f9faaeb7f1b9e4aa79a7d5588001f04874" dependencies = [ "cosmic-config", "serde", diff --git a/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs b/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs index 0805fe9..198c590 100644 --- a/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs +++ b/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs @@ -481,6 +481,9 @@ fn all_actions() -> &'static [Action] { Action::System(SystemAction::LockScreen), Action::System(SystemAction::Mute), Action::System(SystemAction::MuteMic), + Action::System(SystemAction::PlayPause), + Action::System(SystemAction::PlayNext), + Action::System(SystemAction::PlayPrev), Action::System(SystemAction::Screenshot), Action::System(SystemAction::Terminal), Action::System(SystemAction::VolumeLower), @@ -606,6 +609,9 @@ fn localize_action(action: &Action) -> String { SystemAction::LockScreen => fl!("system-shortcut", "lock-screen"), SystemAction::Mute => fl!("system-shortcut", "mute"), SystemAction::MuteMic => fl!("system-shortcut", "mute-mic"), + SystemAction::PlayPause => fl!("system-shortcut", "play-pause"), + SystemAction::PlayNext => fl!("system-shortcut", "play-next"), + SystemAction::PlayPrev => fl!("system-shortcut", "play-prev"), SystemAction::Screenshot => fl!("system-shortcut", "screenshot"), SystemAction::Terminal => fl!("system-shortcut", "terminal"), SystemAction::VolumeLower => fl!("system-shortcut", "volume-lower"), diff --git a/cosmic-settings/src/pages/input/keyboard/shortcuts/system.rs b/cosmic-settings/src/pages/input/keyboard/shortcuts/system.rs index 571f19b..743d4a4 100644 --- a/cosmic-settings/src/pages/input/keyboard/shortcuts/system.rs +++ b/cosmic-settings/src/pages/input/keyboard/shortcuts/system.rs @@ -82,6 +82,9 @@ pub const fn actions() -> &'static [Action] { Action::System(SystemAction::VolumeRaise), Action::System(SystemAction::Mute), Action::System(SystemAction::MuteMic), + Action::System(SystemAction::PlayPause), + Action::System(SystemAction::PlayNext), + Action::System(SystemAction::PlayPrev), Action::System(SystemAction::BrightnessDown), Action::System(SystemAction::BrightnessUp), Action::System(SystemAction::KeyboardBrightnessDown), diff --git a/i18n/en/cosmic_settings.ftl b/i18n/en/cosmic_settings.ftl index d293a4f..4d260ce 100644 --- a/i18n/en/cosmic_settings.ftl +++ b/i18n/en/cosmic_settings.ftl @@ -453,6 +453,9 @@ system-shortcut = System .lock-screen = Lock the screen .mute = Mute audio output .mute-mic = Mutes microphone input + .play-pause = Play/Pause + .play-next = Next track + .play-prev = Previous track .screenshot = Take a screenshot .terminal = Open a terminal .volume-lower = Decrease audio output volume