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,8 +1,20 @@
|
||||
# Set default XCompose that is triggered with CapsLock
|
||||
tee ~/.XCompose >/dev/null <<EOF
|
||||
OMARCHY_DESCRIPTION="XCompose"
|
||||
|
||||
omarchy_install() {
|
||||
# Set default XCompose that is triggered with CapsLock
|
||||
tee ~/.XCompose >/dev/null <<EOF
|
||||
include "%H/.local/share/omarchy/default/xcompose"
|
||||
|
||||
# Identification
|
||||
<Multi_key> <space> <n> : "$OMARCHY_USER_NAME"
|
||||
<Multi_key> <space> <e> : "$OMARCHY_USER_EMAIL"
|
||||
EOF
|
||||
}
|
||||
|
||||
omarchy_verify() {
|
||||
[[ -f ~/.XCompose ]] || add_error "XCompose file missing"
|
||||
|
||||
if [[ -f ~/.XCompose ]]; then
|
||||
grep -q "include.*xcompose" ~/.XCompose || add_error "XCompose include directive missing"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user