Switch hyprlock to QS
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
echo "Update Hyprlock with better placeholder position and show all fail text"
|
||||
|
||||
omarchy-refresh-hyprlock
|
||||
@@ -1,12 +0,0 @@
|
||||
echo "Update hyprlock font to match current system font"
|
||||
|
||||
font_name=$(omarchy-font-current)
|
||||
|
||||
if [[ -n $font_name ]]; then
|
||||
cp ~/.config/hypr/hyprlock.conf ~/.config/hypr/hyprlock.conf.bak.$(date +%s)
|
||||
|
||||
echo "Found font '$font_name', updating hyprlock"
|
||||
sed -i "s/font_family = .*/font_family = $font_name/g" ~/.config/hypr/hyprlock.conf
|
||||
else
|
||||
echo "No font found, skipping migration"
|
||||
fi
|
||||
@@ -1,12 +0,0 @@
|
||||
echo "Update hyprlock placeholder text based on fingerprint setup status"
|
||||
|
||||
cp ~/.config/hypr/hyprlock.conf ~/.config/hypr/hyprlock.conf.bak.$(date +%s)
|
||||
|
||||
# Check if fprintd is installed and has enrolled fingerprints
|
||||
if command -v fprintd-list &>/dev/null && fprintd-list "$USER" 2>/dev/null | grep -q "Fingerprints for user"; then
|
||||
echo "Fingerprint detected, updating placeholder text with fingerprint icon"
|
||||
sed -i 's/placeholder_text = .*/placeholder_text = <span> Enter Password <\/span>/' ~/.config/hypr/hyprlock.conf
|
||||
else
|
||||
echo "No fingerprint enrolled, updating placeholder text without fingerprint icon"
|
||||
sed -i 's/placeholder_text = .*/placeholder_text = Enter Password/' ~/.config/hypr/hyprlock.conf
|
||||
fi
|
||||
@@ -1,5 +0,0 @@
|
||||
echo "Ignore empty passwords on lock screen"
|
||||
|
||||
if ! grep -q "ignore_empty_input" ~/.config/hypr/hyprlock.conf; then
|
||||
sed -i "/source =/a\ \ngeneral {\n ignore_empty_input = true\n}" ~/.config/hypr/hyprlock.conf
|
||||
fi
|
||||
@@ -1,5 +0,0 @@
|
||||
echo "Disable fingerprint in hyprlock if fingerprint auth is not configured"
|
||||
|
||||
if omarchy-cmd-missing fprintd-list || ! fprintd-list "$USER" 2>/dev/null | grep -q "finger"; then
|
||||
sed -i 's/fingerprint:enabled = .*/fingerprint:enabled = false/' ~/.config/hypr/hyprlock.conf
|
||||
fi
|
||||
@@ -0,0 +1,9 @@
|
||||
echo "Switch lock screen authentication to Quickshell"
|
||||
|
||||
omarchy-setup-lock
|
||||
|
||||
rm -f ~/.local/state/omarchy/toggles/hyprlock.conf ~/.local/state/omarchy/toggles/lock.conf
|
||||
|
||||
rm -f ~/.config/hypr/hyprlock.conf ~/.config/omarchy/current/theme/hyprlock.conf
|
||||
|
||||
omarchy-pkg-drop hyprlock
|
||||
Reference in New Issue
Block a user