Skip to content

Instantly share code, notes, and snippets.

@berkes
Created August 20, 2024 12:24
Show Gist options
  • Save berkes/79399836a8c8e624ab10ee5d120f9be8 to your computer and use it in GitHub Desktop.
Save berkes/79399836a8c8e624ab10ee5d120f9be8 to your computer and use it in GitHub Desktop.
Langtu 69% keyboard cheat sheet
#!/bin/bash
# Function to print the multimedia key table
print_multimedia_table() {
echo "+------------------------------------------------+"
echo "| Win system key combination |"
echo "+------------------------------------------------+"
echo "| Multimedia function keys must be pressed with |"
echo "| the FN+CTRL key combination |"
echo "| (Ice blue light appears underneath the FN |"
echo "| button to use the multimedia function keys) |"
echo "+------------------------------------------------+"
echo "| FN+1 | concert |"
echo "| FN+2 | calculators |"
echo "| FN+3 | Win+TAB |"
echo "| FN+4 | WIN+E |"
echo "| FN+5 | Keyboard backlighting+ |"
echo "| FN+6 | Keyboard backlighting- |"
echo "| FN+7 | previous song |"
echo "| FN+8 | Play/Pause |"
echo "| FN+9 | next song |"
echo "| FN+0 | unmute |"
echo "| FN+- | Volume- |"
echo "| FN+= | Volume+ |"
echo "| FN+WIN | Lock WIN/unlock WIN |"
echo "+---------------------+--------------------------+"
}
# Function to print the F1-F12 function keys table
print_function_keys_table() {
echo "+------------------------------------------------+"
echo "| F1~F12 function keys |"
echo "+------------------------------------------------+"
echo "| FN+1 | F1 |"
echo "| FN+2 | F2 |"
echo "| FN+3 | F3 |"
echo "| FN+4 | F4 |"
echo "| FN+5 | F5 |"
echo "| FN+6 | F6 |"
echo "| FN+7 | F7 |"
echo "| FN+8 | F8 |"
echo "| FN+9 | F9 |"
echo "| FN+0 | F10 |"
echo "| FN+- | F11 |"
echo "| FN+= | F12 |"
echo "+--------------+---------------------------------+"
}
# Function to print the universal key table
print_universal_keys_table() {
echo "+------------------------------------------------+"
echo "| Win/iOS universal key |"
echo "+------------------------------------------------+"
echo "| FN+INS | Switching light effects |"
echo "| FN+→ | Light Brightness - |"
echo "| FN+← | Light Brightness + |"
echo "| FN+0 | pause |"
echo "| FN+I | Scroll Lock |"
echo "| FN+L | Home |"
echo "| FN+END | End |"
echo "| FN+U | Prtsc |"
echo "| ESC | Single press default function |"
echo "| FN+ESC | \` |"
echo "| FN+Shift+ESC | ~ |"
echo "+--------------+---------------------------------+"
}
# Function to print help message
print_help() {
echo "Usage: $0 [option]"
echo "Options:"
echo " m Print the multimedia key table"
echo " f Print the F1-F12 function keys table"
echo " u Print the universal key table"
echo " a Print all"
echo " h Print this help message"
}
# Check if any arguments were passed
if [[ $# -eq 0 ]]; then
print_help
exit 1
fi
# Handle the arguments
case $1 in
m)
print_multimedia_table
;;
f)
print_function_keys_table
;;
u)
print_universal_keys_table
;;
a)
print_multimedia_table
print_function_keys_table
print_universal_keys_table
;;
h)
print_help
;;
*)
echo "Invalid option!"
print_help
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment