mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
# Ensure that F-keys on Apple-like keyboards (such as Lofree Flow84) are always F-keys
|
||||
if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; then
|
||||
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
|
||||
fi
|
||||
OMARCHY_DESCRIPTION="Set F-keys as F-keys by default"
|
||||
|
||||
omarchy_install() {
|
||||
# Ensure that F-keys on Apple-like keyboards (such as Lofree Flow84) are always F-keys
|
||||
if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; then
|
||||
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
|
||||
fi
|
||||
}
|
||||
|
||||
omarchy_verify() {
|
||||
[[ -f /etc/modprobe.d/hid_apple.conf ]] || add_error "Apple HID config missing"
|
||||
|
||||
if [[ -f /etc/modprobe.d/hid_apple.conf ]]; then
|
||||
grep -q "options hid_apple fnmode=2" /etc/modprobe.d/hid_apple.conf || add_error "F-key mode not configured"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user