revert keyboard configuration

axtloss/rework-partitioning
axtlos 2 years ago
parent 8b95bef9a9
commit d5e785ec79
No known key found for this signature in database
GPG Key ID: C08EB728CFA2DF4E

@ -64,31 +64,4 @@ pub fn set_keyboard(keyboard: &str, variant: &str) {
),
"set keyboard layout",
);
if variant.to_lowercase() == "normal" {
exec_eval(
exec::exec_chroot(
"gsettings",
vec![
"set".to_string(),
"org.gnome.desktop.input-sources".to_string(),
"sources".to_string(),
format!("[('xkb', '{keyboard})]")
],
),
"Set Keymap using gsettings"
);
} else {
exec_eval(
exec::exec_chroot(
"gsettings",
vec![
"set".to_string(),
"org.gnome.desktop.input-sources".to_string(),
"sources".to_string(),
format!("[('xkb', '{keyboard}+{variant})]")
],
),
"Set Keymap using gsettings"
);
}
}

Loading…
Cancel
Save