shortcuts: Add new Play-(Pause/Next/Prev) shortcuts

This commit is contained in:
Victoria Brekenfeld 2024-08-05 18:10:31 +02:00 committed by Jeremy Soller
parent f0845c3c23
commit 648c4e24ab
4 changed files with 13 additions and 1 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -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"),

View file

@ -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),

View file

@ -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