Skip to content

Commit

Permalink
fix(inputs): Use env vars and extra layouts
Browse files Browse the repository at this point in the history
Closes: pop-os#725

The inputs applet uses an outdated `xkb-data` which causes some configs
to fail which in turn leads to an empty list.

See: lilyinstarlight/nixos-cosmic#74 (comment)
  • Loading branch information
joshuamegnauth54 committed Nov 22, 2024
1 parent 1e99f2c commit 0250046
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion cosmic-applet-input-sources/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tracing-subscriber.workspace = true
tracing.workspace = true
serde = { version = "1.0.197", features = ["derive"] }
once_cell = "1.19.0"
xkb-data = "0.1.0"
xkb-data = "0.2"
2 changes: 1 addition & 1 deletion cosmic-applet-input-sources/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod window;
pub fn run() -> cosmic::iced::Result {
localize::localize();

let layouts = match xkb_data::keyboard_layouts() {
let layouts = match xkb_data::all_keyboard_layouts() {
Ok(layouts) => layouts,
Err(why) => {
tracing::error!("could not get keyboard layouts data: {:?}", why);
Expand Down
2 changes: 1 addition & 1 deletion cosmic-applet-tiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tokio = { version = "1.36.0", features = ["sync", "rt"] }
tracing-log.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
xkb-data = "0.1.0"
xkb-data = "0.2"

0 comments on commit 0250046

Please sign in to comment.