From d5e785ec79baf5d23c33a8e910a4bc277d629a17 Mon Sep 17 00:00:00 2001 From: axtlos Date: Mon, 5 Dec 2022 18:21:26 +0100 Subject: [PATCH] revert keyboard configuration --- src/functions/locale.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/functions/locale.rs b/src/functions/locale.rs index 748a709..5bbdb8b 100755 --- a/src/functions/locale.rs +++ b/src/functions/locale.rs @@ -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" - ); - } }