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

4
Cargo.lock generated
View file

@ -1745,7 +1745,7 @@ dependencies = [
[[package]]
name = "cosmic-settings-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-settings-daemon#ee782f454a09310a28abe73653e6c82d06a79855"
source = "git+https://github.com/pop-os/cosmic-settings-daemon?branch=touchpad-toggle#3f14d97cfa129cdaed0d44eeed683f4c8ef2d4f6"
dependencies = [
"cosmic-config",
"ron 0.11.0",
@ -1766,7 +1766,7 @@ dependencies = [
[[package]]
name = "cosmic-settings-daemon-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-settings-daemon#ee782f454a09310a28abe73653e6c82d06a79855"
source = "git+https://github.com/pop-os/cosmic-settings-daemon?branch=touchpad-toggle#3f14d97cfa129cdaed0d44eeed683f4c8ef2d4f6"
dependencies = [
"cosmic-config",
"serde",

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),
]
}

View file

@ -699,6 +699,7 @@ system-shortcut = System
.poweroff = Power off
.screenshot = Take a screenshot
.terminal = Open a terminal
.touchpad-toggle = Toggle touchpad
.volume-lower = Decrease audio output volume
.volume-raise = Increase audio output volume
.web-browser = Open a web browser