return parse_env_file_fd(fd, "/etc/vconsole.conf",
"KEYMAP", &c->vc_keymap,
"KEYMAP_TOGGLE", &c->vc_keymap_toggle,
- "XKB_LAYOUT", &c->x11_from_vc.layout,
- "XKB_MODEL", &c->x11_from_vc.model,
- "XKB_VARIANT", &c->x11_from_vc.variant,
- "XKB_OPTIONS", &c->x11_from_vc.options);
+ "XKBLAYOUT", &c->x11_from_vc.layout,
+ "XKBMODEL", &c->x11_from_vc.model,
+ "XKBVARIANT", &c->x11_from_vc.variant,
+ "XKBOPTIONS", &c->x11_from_vc.options);
}
int x11_read_data(Context *c, sd_bus_message *m) {
if (r < 0)
return r;
- r = strv_env_assign(&l, "XKB_LAYOUT", xc ? empty_to_null(xc->layout) : NULL);
+ r = strv_env_assign(&l, "XKBLAYOUT", xc ? empty_to_null(xc->layout) : NULL);
if (r < 0)
return r;
- r = strv_env_assign(&l, "XKB_MODEL", xc ? empty_to_null(xc->model) : NULL);
+ r = strv_env_assign(&l, "XKBMODEL", xc ? empty_to_null(xc->model) : NULL);
if (r < 0)
return r;
- r = strv_env_assign(&l, "XKB_VARIANT", xc ? empty_to_null(xc->variant) : NULL);
+ r = strv_env_assign(&l, "XKBVARIANT", xc ? empty_to_null(xc->variant) : NULL);
if (r < 0)
return r;
- r = strv_env_assign(&l, "XKB_OPTIONS", xc ? empty_to_null(xc->options) : NULL);
+ r = strv_env_assign(&l, "XKBOPTIONS", xc ? empty_to_null(xc->options) : NULL);
if (r < 0)
return r;
assert_not_in "X11 Variant:" "$output"
assert_in "X11 Options: terminate:ctrl_alt_bksp" "$output"
- assert_in "XKB_LAYOUT=us" "$vc"
- assert_in "XKB_MODEL=pc105\+inet" "$vc"
- assert_not_in "XKB_VARIANT" "$vc"
- assert_in "XKB_OPTIONS=terminate:ctrl_alt_bksp" "$vc"
+ assert_in "XKBLAYOUT=us" "$vc"
+ assert_in "XKBMODEL=pc105\+inet" "$vc"
+ assert_not_in "XKBVARIANT" "$vc"
+ assert_in "XKBOPTIONS=terminate:ctrl_alt_bksp" "$vc"
elif [[ "$i" == "us-acentos" ]]; then
assert_in "X11 Layout: us" "$output"
assert_in 'X11 Model: pc105$' "$output"
assert_in "X11 Variant: intl" "$output"
assert_in "X11 Options: terminate:ctrl_alt_bksp" "$output"
- assert_in "XKB_LAYOUT=us" "$vc"
- assert_in "XKB_MODEL=pc105$" "$vc"
- assert_in "XKB_VARIANT=intl" "$vc"
- assert_in "XKB_OPTIONS=terminate:ctrl_alt_bksp" "$vc"
+ assert_in "XKBLAYOUT=us" "$vc"
+ assert_in "XKBMODEL=pc105$" "$vc"
+ assert_in "XKBVARIANT=intl" "$vc"
+ assert_in "XKBOPTIONS=terminate:ctrl_alt_bksp" "$vc"
elif [[ "$i" =~ ^us-.* ]]; then
assert_in "X11 Layout: .unset." "$output"
assert_not_in "X11 Model:" "$output"
assert_not_in "X11 Variant:" "$output"
assert_not_in "X11 Options:" "$output"
- assert_not_in "XKB_LAYOUT" "$vc"
- assert_not_in "XKB_MODEL" "$vc"
- assert_not_in "XKB_VARIANT" "$vc"
- assert_not_in "XKB_OPTIONS" "$vc"
+ assert_not_in "XKBLAYOUT" "$vc"
+ assert_not_in "XKBMODEL" "$vc"
+ assert_not_in "XKBVARIANT" "$vc"
+ assert_not_in "XKBOPTIONS" "$vc"
fi
done
assert_in 'Option "XkbOptions" "terminate:ctrl_alt_bksp"' "$output"
output=$(cat /etc/vconsole.conf)
- assert_in 'XKB_LAYOUT=us' "$output"
- assert_in 'XKB_MODEL=pc105\+inet' "$output"
- assert_in 'XKB_VARIANT=intl' "$output"
- assert_in 'XKB_OPTIONS=terminate:ctrl_alt_bksp' "$output"
+ assert_in 'XKBLAYOUT=us' "$output"
+ assert_in 'XKBMODEL=pc105\+inet' "$output"
+ assert_in 'XKBVARIANT=intl' "$output"
+ assert_in 'XKBOPTIONS=terminate:ctrl_alt_bksp' "$output"
fi
output=$(localectl)
assert_not_in 'Option "XkbOptions"' "$output"
output=$(cat /etc/vconsole.conf)
- assert_in 'XKB_LAYOUT=us' "$output"
- assert_in 'XKB_MODEL=pc105\+inet' "$output"
- assert_in 'XKB_VARIANT=intl' "$output"
- assert_not_in 'XKB_OPTIONS' "$output"
+ assert_in 'XKBLAYOUT=us' "$output"
+ assert_in 'XKBMODEL=pc105\+inet' "$output"
+ assert_in 'XKBVARIANT=intl' "$output"
+ assert_not_in 'XKBOPTIONS' "$output"
fi
output=$(localectl)
assert_not_in 'Option "XkbOptions"' "$output"
output=$(cat /etc/vconsole.conf)
- assert_in 'XKB_LAYOUT=us' "$output"
- assert_in 'XKB_MODEL=pc105\+inet' "$output"
- assert_not_in 'XKB_VARIANT' "$output"
- assert_not_in 'XKB_OPTIONS' "$output"
+ assert_in 'XKBLAYOUT=us' "$output"
+ assert_in 'XKBMODEL=pc105\+inet' "$output"
+ assert_not_in 'XKBVARIANT' "$output"
+ assert_not_in 'XKBOPTIONS' "$output"
fi
output=$(localectl)
assert_not_in 'Option "XkbOptions"' "$output"
output=$(cat /etc/vconsole.conf)
- assert_in 'XKB_LAYOUT=us' "$output"
- assert_not_in 'XKB_MODEL' "$output"
- assert_not_in 'XKB_VARIANT' "$output"
- assert_not_in 'XKB_OPTIONS' "$output"
+ assert_in 'XKBLAYOUT=us' "$output"
+ assert_not_in 'XKBMODEL' "$output"
+ assert_not_in 'XKBVARIANT' "$output"
+ assert_not_in 'XKBOPTIONS' "$output"
fi
output=$(localectl)