chore(system shortcut): touchpad toggle

This commit is contained in:
Ashley Wulber 2025-09-18 17:50:00 -04:00 committed by Ashley Wulber
parent 857d5162c9
commit 689ccab9da
5 changed files with 8 additions and 4 deletions

View file

@ -22,12 +22,12 @@ cosmic-panel-config = { workspace = true, optional = true }
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols", 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 = "touchpad-toggle", optional = true }
cosmic-settings-page = { path = "../page" }
cosmic-settings-subscriptions = { workspace = true, optional = true }
cosmic-settings-system = { path = "../pages/system", optional = true }
cosmic-settings-wallpaper = { path = "../pages/wallpapers" }
cosmic-settings-daemon-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true }
cosmic-settings-daemon-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", branch = "touchpad-toggle", optional = true }
derive_setters = "0.1.8"
dirs = "6.0.0"
eyre = "0.6.12"

View file

@ -567,6 +567,7 @@ fn all_system_actions() -> &'static [Action] {
Action::System(SystemAction::PlayPrev),
Action::System(SystemAction::Screenshot),
Action::System(SystemAction::Terminal),
Action::System(SystemAction::TouchpadToggle),
Action::System(SystemAction::VolumeLower),
Action::System(SystemAction::VolumeRaise),
Action::System(SystemAction::WebBrowser),
@ -702,6 +703,7 @@ fn localize_action(action: &Action) -> String {
SystemAction::PowerOff => fl!("system-shortcut", "poweroff"),
SystemAction::Screenshot => fl!("system-shortcut", "screenshot"),
SystemAction::Terminal => fl!("system-shortcut", "terminal"),
SystemAction::TouchpadToggle => fl!("system-shortcut", "touchpad-toggle"),
SystemAction::VolumeLower => fl!("system-shortcut", "volume-lower"),
SystemAction::VolumeRaise => fl!("system-shortcut", "volume-raise"),
SystemAction::WebBrowser => fl!("system-shortcut", "web-browser"),

View file

@ -115,6 +115,7 @@ pub const fn actions() -> &'static [Action] {
Action::System(SystemAction::Terminal),
Action::System(SystemAction::HomeFolder),
Action::System(SystemAction::WebBrowser),
Action::System(SystemAction::TouchpadToggle),
]
}