Browse Source

adjust copy.sh to use localectl first then setxkbmap next if localectl not available

Introduce wallpaper rofi menu
pull/116/head
JaKooLit 2 years ago
parent
commit
978cb01c77
  1. 253
      config/rofi/config-wallpaper.rasi
  2. 253
      config/rofi/resolution/1080p/config-wallpaper.rasi
  3. 253
      config/rofi/resolution/1440p/config-wallpaper.rasi
  4. 34
      copy.sh

253
config/rofi/config-wallpaper.rasi

@ -3,19 +3,19 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 12"; font: "Fira Code SemiBold 12";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
display-run: ""; display-run: "";
display-filebrowser: ""; display-filebrowser: "";
display-window: ""; display-window: "";
drun-display-format: "{name}"; drun-display-format: "{name}";
hover-select: true; hover-select: true;
me-select-entry: "MouseSecondary"; me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary"; me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
dpi: 1; dpi: 1;
} }
@ -24,194 +24,197 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 700px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
spacing: 0px; spacing: 0px;
padding: 2px; padding: 2px;
margin: 0px; margin: 0px;
border: 2px; border: 2px;
border-color: @active-background; border-color: @active-background;
cursor: "default"; cursor: "default";
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
mainbox { mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
/*background-image: url("~/.config/rofi/.current_wallpaper", width);*/ children: [ "imagebox"];
children: [ "imagebox"]; border-radius: 12px;
border-radius: 12px; background-color: transparent;
background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
imagebox { imagebox {
background-color: transparent; background-color: transparent;
orientation: vertical; orientation: vertical;
children: [ "inputbar", "listbox"]; children: [ "inputbar", "listbox"];
} }
/* ---- Listbox ---- */ /* ---- Listbox ---- */
listbox { listbox {
spacing: 4px; spacing: 4px;
orientation: vertical; orientation: vertical;
children: [ "listview" ]; children: [ "listview" ];
border-radius: 10px; border-radius: 10px;
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
background-color: @background; background-color: @background;
} }
/* ---- Dummy ---- */ /* ---- Dummy ---- */
dummy { dummy {
background-color: transparent; background-color: transparent;
} }
/* ---- Inputbar ---- */ /* ---- Inputbar ---- */
inputbar { inputbar {
enabled: true; enabled: true;
text-color: @foreground; text-color: @foreground;
spacing: 10px; spacing: 10px;
padding: 8px; padding: 8px;
border-radius: 10px; border-radius: 10px;
border-color: @foreground; border-color: @foreground;
background-color: @background; background-color: @background;
children: [ "textbox-prompt-colon", "entry" ]; children: [ "textbox-prompt-colon", "entry" ];
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
} }
textbox-prompt-colon { textbox-prompt-colon {
enabled: true; enabled: true;
expand: false; expand: false;
str: "󰸉 "; str: "󰸉 ";
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;
} }
entry { entry {
enabled: true; enabled: true;
text-color: inherit; text-color: inherit;
cursor: text; cursor: text;
placeholder: "Choose Wallpaper"; placeholder: "Choose Wallpaper";
placeholder-color: inherit; placeholder-color: inherit;
background-color: transparent; background-color: transparent;
} }
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 4; columns: 4;
lines: 3; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
scrollbar: true; scrollbar: true;
layout: vertical; layout: vertical;
reverse: false; reverse: false;
fixed-height: true; fixed-height: true;
fixed-columns: false; fixed-columns: false;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
} }
/* ---- Element ---- */ /* ---- Element ---- */
element { element {
enabled: true; enabled: true;
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
background-color: transparent; orientation: vertical;
border-radius: 10px; background-color: transparent;
border: 0px; border-radius: 10px;
border: 0px;
} }
element normal.normal { element normal.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.urgent { element normal.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.active { element normal.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.normal { element selected.normal {
background-color: @selected-normal-background; background-color: @selected-normal-background;
text-color: @foreground; text-color: @foreground;
} }
element selected.urgent { element selected.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.active { element selected.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.normal { element alternate.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.urgent { element alternate.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.active { element alternate.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 150px; size: 130px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; font: "Fira Code SemiBold 8";
text-color: transparent; background-color: transparent;
cursor: inherit; text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/
message { message {
background-color: @background; background-color: @background;
margin: 20px 0px 0px 0px; margin: 20px 0px 0px 0px;
border-radius: 10px; border-radius: 10px;
} }
textbox { textbox {
padding: 15px; padding: 15px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }
error-message { error-message {
padding: 15px; padding: 15px;
border-radius: 20px; border-radius: 20px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }

253
config/rofi/resolution/1080p/config-wallpaper.rasi

@ -3,19 +3,19 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 12"; font: "Fira Code SemiBold 12";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
display-run: ""; display-run: "";
display-filebrowser: ""; display-filebrowser: "";
display-window: ""; display-window: "";
drun-display-format: "{name}"; drun-display-format: "{name}";
hover-select: true; hover-select: true;
me-select-entry: "MouseSecondary"; me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary"; me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
dpi: 1; dpi: 1;
} }
@ -24,194 +24,197 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 700px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
spacing: 0px; spacing: 0px;
padding: 2px; padding: 2px;
margin: 0px; margin: 0px;
border: 2px; border: 2px;
border-color: @active-background; border-color: @active-background;
cursor: "default"; cursor: "default";
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
mainbox { mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
/*background-image: url("~/.config/rofi/.current_wallpaper", width);*/ children: [ "imagebox"];
children: [ "imagebox"]; border-radius: 12px;
border-radius: 12px; background-color: transparent;
background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
imagebox { imagebox {
background-color: transparent; background-color: transparent;
orientation: vertical; orientation: vertical;
children: [ "inputbar", "listbox"]; children: [ "inputbar", "listbox"];
} }
/* ---- Listbox ---- */ /* ---- Listbox ---- */
listbox { listbox {
spacing: 4px; spacing: 4px;
orientation: vertical; orientation: vertical;
children: [ "listview" ]; children: [ "listview" ];
border-radius: 10px; border-radius: 10px;
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
background-color: @background; background-color: @background;
} }
/* ---- Dummy ---- */ /* ---- Dummy ---- */
dummy { dummy {
background-color: transparent; background-color: transparent;
} }
/* ---- Inputbar ---- */ /* ---- Inputbar ---- */
inputbar { inputbar {
enabled: true; enabled: true;
text-color: @foreground; text-color: @foreground;
spacing: 10px; spacing: 10px;
padding: 8px; padding: 8px;
border-radius: 10px; border-radius: 10px;
border-color: @foreground; border-color: @foreground;
background-color: @background; background-color: @background;
children: [ "textbox-prompt-colon", "entry" ]; children: [ "textbox-prompt-colon", "entry" ];
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
} }
textbox-prompt-colon { textbox-prompt-colon {
enabled: true; enabled: true;
expand: false; expand: false;
str: "󰸉 "; str: "󰸉 ";
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;
} }
entry { entry {
enabled: true; enabled: true;
text-color: inherit; text-color: inherit;
cursor: text; cursor: text;
placeholder: "Choose Wallpaper"; placeholder: "Choose Wallpaper";
placeholder-color: inherit; placeholder-color: inherit;
background-color: transparent; background-color: transparent;
} }
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 4; columns: 4;
lines: 3; lines: 3;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
scrollbar: true; scrollbar: true;
layout: vertical; layout: vertical;
reverse: false; reverse: false;
fixed-height: true; fixed-height: true;
fixed-columns: false; fixed-columns: false;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
} }
/* ---- Element ---- */ /* ---- Element ---- */
element { element {
enabled: true; enabled: true;
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
background-color: transparent; orientation: vertical;
border-radius: 10px; background-color: transparent;
border: 0px; border-radius: 10px;
border: 0px;
} }
element normal.normal { element normal.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.urgent { element normal.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.active { element normal.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.normal { element selected.normal {
background-color: @selected-normal-background; background-color: @selected-normal-background;
text-color: @foreground; text-color: @foreground;
} }
element selected.urgent { element selected.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.active { element selected.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.normal { element alternate.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.urgent { element alternate.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.active { element alternate.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 150px; size: 130px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; font: "Fira Code SemiBold 8";
text-color: transparent; background-color: transparent;
cursor: inherit; text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/
message { message {
background-color: @background; background-color: @background;
margin: 20px 0px 0px 0px; margin: 20px 0px 0px 0px;
border-radius: 10px; border-radius: 10px;
} }
textbox { textbox {
padding: 15px; padding: 15px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }
error-message { error-message {
padding: 15px; padding: 15px;
border-radius: 20px; border-radius: 20px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }

253
config/rofi/resolution/1440p/config-wallpaper.rasi

@ -3,19 +3,19 @@
/* ---- Configuration ---- */ /* ---- Configuration ---- */
configuration { configuration {
modi: "drun,run"; modi: "drun,run,filebrowser";
font: "Fira Code SemiBold 14"; font: "Fira Code SemiBold 14";
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
display-run: ""; display-run: "";
display-filebrowser: ""; display-filebrowser: "";
display-window: ""; display-window: "";
drun-display-format: "{name}"; drun-display-format: "{name}";
hover-select: true; hover-select: true;
me-select-entry: "MouseSecondary"; me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary"; me-accept-entry: "MousePrimary";
window-format: "{w} · {c} · {t}"; window-format: "{w} · {c} · {t}";
dpi: 1; dpi: 1;
} }
@ -24,194 +24,197 @@ configuration {
/* ---- Window ---- */ /* ---- Window ---- */
window { window {
width: 700px; width: 700px;
/*height: 450px;*/ /*height: 450px;*/
x-offset: 0px; x-offset: 0px;
y-offset: 0px; y-offset: 0px;
spacing: 0px; spacing: 0px;
padding: 2px; padding: 2px;
margin: 0px; margin: 0px;
border: 2px; border: 2px;
border-color: @active-background; border-color: @active-background;
cursor: "default"; cursor: "default";
location: center; location: center;
anchor: center; anchor: center;
fullscreen: false; fullscreen: false;
enabled: true; enabled: true;
border-radius: 12px; border-radius: 12px;
border-radius: 12px; border-radius: 12px;
background-color: @background-color; background-color: transparent;
background-image: url("~/.config/rofi/.current_wallpaper", height);
} }
/* ---- Mainbox ---- */ /* ---- Mainbox ---- */
mainbox { mainbox {
enabled: true; enabled: true;
orientation: horizontal; orientation: horizontal;
padding: 8px; padding: 8px;
/*background-image: url("~/.config/rofi/.current_wallpaper", width);*/ children: [ "imagebox"];
children: [ "imagebox"]; border-radius: 12px;
border-radius: 12px; background-color: transparent;
background-color: @active-background;
} }
/* ---- Imagebox ---- */ /* ---- Imagebox ---- */
imagebox { imagebox {
background-color: transparent; background-color: transparent;
orientation: vertical; orientation: vertical;
children: [ "inputbar", "listbox"]; children: [ "inputbar", "listbox"];
} }
/* ---- Listbox ---- */ /* ---- Listbox ---- */
listbox { listbox {
spacing: 4px; spacing: 4px;
orientation: vertical; orientation: vertical;
children: [ "listview" ]; children: [ "listview" ];
border-radius: 10px; border-radius: 10px;
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
background-color: @background; background-color: @background;
} }
/* ---- Dummy ---- */ /* ---- Dummy ---- */
dummy { dummy {
background-color: transparent; background-color: transparent;
} }
/* ---- Inputbar ---- */ /* ---- Inputbar ---- */
inputbar { inputbar {
enabled: true; enabled: true;
text-color: @foreground; text-color: @foreground;
spacing: 10px; spacing: 10px;
padding: 8px; padding: 8px;
border-radius: 10px; border-radius: 10px;
border-color: @foreground; border-color: @foreground;
background-color: @background; background-color: @background;
children: [ "textbox-prompt-colon", "entry" ]; children: [ "textbox-prompt-colon", "entry" ];
border: 1px; border: 1px;
border-color: @active-background; border-color: @active-background;
} }
textbox-prompt-colon { textbox-prompt-colon {
enabled: true; enabled: true;
expand: false; expand: false;
str: "󰸉 "; str: "󰸉 ";
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;
} }
entry { entry {
enabled: true; enabled: true;
text-color: inherit; text-color: inherit;
cursor: text; cursor: text;
placeholder: "Choose Wallpaper"; placeholder: "Choose Wallpaper";
placeholder-color: inherit; placeholder-color: inherit;
background-color: transparent; background-color: transparent;
} }
/* ---- Listview ---- */ /* ---- Listview ---- */
listview { listview {
enabled: true; enabled: true;
columns: 4; columns: 4;
lines: 5; lines: 4;
spacing: 4px; spacing: 4px;
dynamic: true; dynamic: true;
cycle: true; cycle: true;
scrollbar: true; scrollbar: true;
layout: vertical; layout: vertical;
reverse: false; reverse: false;
fixed-height: true; fixed-height: true;
fixed-columns: false; fixed-columns: false;
background-color: transparent; background-color: transparent;
border-radius: 10px; border-radius: 10px;
} }
/* ---- Element ---- */ /* ---- Element ---- */
element { element {
enabled: true; enabled: true;
padding: 5px; padding: 5px;
margin: 2px; margin: 2px;
cursor: pointer; cursor: pointer;
background-color: transparent; orientation: vertical;
border-radius: 10px; background-color: transparent;
border: 0px; border-radius: 10px;
border: 0px;
} }
element normal.normal { element normal.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.urgent { element normal.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element normal.active { element normal.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.normal { element selected.normal {
background-color: @selected-normal-background; background-color: @selected-normal-background;
text-color: @foreground; text-color: @foreground;
} }
element selected.urgent { element selected.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element selected.active { element selected.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.normal { element alternate.normal {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.urgent { element alternate.urgent {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element alternate.active { element alternate.active {
background-color: inherit; background-color: inherit;
text-color: @foreground; text-color: @foreground;
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
text-color: inherit; text-color: inherit;
size: 150px; size: 130px;
cursor: inherit; cursor: inherit;
horizontal-align: 0.5;
} }
element-text { element-text {
background-color: transparent; font: "Fira Code SemiBold 10";
text-color: transparent; background-color: transparent;
cursor: inherit; text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
} }
/*****----- Message -----*****/ /*****----- Message -----*****/
message { message {
background-color: @background; background-color: @background;
margin: 20px 0px 0px 0px; margin: 20px 0px 0px 0px;
border-radius: 10px; border-radius: 10px;
} }
textbox { textbox {
padding: 15px; padding: 15px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }
error-message { error-message {
padding: 15px; padding: 15px;
border-radius: 20px; border-radius: 20px;
background-color: @background; background-color: @background;
text-color: @foreground; text-color: @foreground;
} }

34
copy.sh

@ -50,25 +50,17 @@ if hostnamectl | grep -q 'Chassis: vm'; then
sed -i '/monitor = Virtual-1, 1920x1080@60,auto,1/s/^#//' config/hypr/UserConfigs/Monitors.conf sed -i '/monitor = Virtual-1, 1920x1080@60,auto,1/s/^#//' config/hypr/UserConfigs/Monitors.conf
fi fi
# Preparing hyprland.conf to check for current keyboard layout # Function to detect keyboard layout using localectl or setxkbmap
# Function to detect keyboard layout in an X server environment detect_layout() {
detect_x_layout() { if command -v localectl >/dev/null 2>&1; then
if command -v setxkbmap >/dev/null 2>&1; then layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}')
layout=$(setxkbmap -query | grep layout | awk '{print $2}')
if [ -n "$layout" ]; then if [ -n "$layout" ]; then
echo "$layout" echo "$layout"
else else
echo "unknown" echo "unknown"
fi fi
else elif command -v setxkbmap >/dev/null 2>&1; then
echo "unknown" layout=$(setxkbmap -query | grep layout | awk '{print $2}')
fi
}
# Function to detect keyboard layout in a tty environment
detect_tty_layout() {
if command -v localectl >/dev/null 2>&1; then
layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}')
if [ -n "$layout" ]; then if [ -n "$layout" ]; then
echo "$layout" echo "$layout"
else else
@ -79,22 +71,14 @@ detect_tty_layout() {
fi fi
} }
# Detect the current keyboard layout based on the environment # Detect the current keyboard layout
if [ -n "$DISPLAY" ]; then layout=$(detect_layout)
# System is in an X server environment
layout=$(detect_x_layout)
else
# System is in a tty environment
layout=$(detect_tty_layout)
fi
echo "Keyboard layout: $layout"
printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n" printf "${NOTE} Detecting keyboard layout to prepare necessary changes in hyprland.conf before copying\n\n"
# Prompt the user to confirm whether the detected layout is correct # Prompt the user to confirm whether the detected layout is correct
while true; do while true; do
read -p "$ORANGE Detected keyboard layout or keymap: $layout. Is this correct? [y/n] " confirm read -p "$ORANGE Detected current keyboard layout is: $layout. Is this correct? [y/n] " confirm
case $confirm in case $confirm in
[yY]) [yY])

Loading…
Cancel
Save