diff --git a/README.md b/README.md index e10d0b7..57e92fe 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ desktops, on Wayland: On Hyprland and Niri, admin prompts and setting up a face need a polkit agent (for example hyprpolkitagent). Hyprland without uwsm does not start the lock -screen part by itself: the menu shows the line to add to `hyprland.conf`. +screen part by itself: the menu shows what to add to its config.
Coming from plasma-face-unlock? diff --git a/po/de.po b/po/de.po index 739ea4b..4db2865 100644 --- a/po/de.po +++ b/po/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.0\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-23 22:32+0200\n" "Last-Translator: Felitendo\n" "Language-Team: German\n" @@ -706,13 +706,13 @@ msgstr "Keine gültige Einstellung: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Dafür kann es nicht verwendet werden: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"Hyprland startet den Sperrbildschirm-Dienst nicht von selbst. Füge diese " -"Zeile in %s ein:" +"Hyprland startet den Sperrbildschirm-Dienst nicht von selbst. Füge das in %s " +"ein:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/es.po b/po/es.po index d0cbaed..d084731 100644 --- a/po/es.po +++ b/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Spanish\n" @@ -711,13 +711,13 @@ msgstr "Ajuste no válido: %s=%s" msgid "Not a service this can be used for: %s" msgstr "No se puede usar para este servicio: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" "Hyprland no inicia por sí solo el agente de la pantalla de bloqueo. Añade " -"esta línea a %s:" +"esto a %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/face-unlock.pot b/po/face-unlock.pot index 866be5d..2f8f42e 100644 --- a/po/face-unlock.pot +++ b/po/face-unlock.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 09:30+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -655,10 +655,10 @@ msgstr "" msgid "Not a service this can be used for: %s" msgstr "" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" #: src/lib/menu.sh diff --git a/po/fr.po b/po/fr.po index e14a309..510cb50 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: French\n" @@ -716,13 +716,13 @@ msgstr "Réglage non valide : %s=%s" msgid "Not a service this can be used for: %s" msgstr "Ne peut pas servir pour ce service : %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" "Hyprland ne démarre pas l'agent de l'écran de verrouillage tout seul. " -"Ajoutez cette ligne à %s :" +"Ajoutez ceci à %s :" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/it.po b/po/it.po index ca98019..7e1c282 100644 --- a/po/it.po +++ b/po/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Italian\n" @@ -707,13 +707,13 @@ msgstr "Impostazione non valida: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Non si può usare per questo servizio: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" "Hyprland non avvia da solo l'agente della schermata di blocco. Aggiungi " -"questa riga a %s:" +"questo a %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/ja.po b/po/ja.po index 6cbe8af..1a10a98 100644 --- a/po/ja.po +++ b/po/ja.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Japanese\n" @@ -692,13 +692,13 @@ msgstr "無効な設定です: %s=%s" msgid "Not a service this can be used for: %s" msgstr "このサービスには使えません: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"Hyprland はロック画面エージェントを自動では起動しません。%s に次の行を追加し" -"てください:" +"Hyprland はロック画面エージェントを自動では起動しません。%s に次を追加してく" +"ださい:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/ko.po b/po/ko.po index 6675792..bf8f24b 100644 --- a/po/ko.po +++ b/po/ko.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Korean\n" @@ -691,13 +691,13 @@ msgstr "올바르지 않은 설정: %s=%s" msgid "Not a service this can be used for: %s" msgstr "이 서비스에는 사용할 수 없습니다: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"Hyprland는 잠금 화면 에이전트를 스스로 시작하지 않습니다. %s에 다음 줄을 추가" -"하세요:" +"Hyprland는 잠금 화면 에이전트를 스스로 시작하지 않습니다. %s에 다음을 추가하" +"세요:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/nl.po b/po/nl.po index 98ef199..ad516d9 100644 --- a/po/nl.po +++ b/po/nl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Dutch\n" @@ -704,13 +704,13 @@ msgstr "Geen geldige instelling: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Hier kan het niet voor worden gebruikt: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"Hyprland start de agent voor het vergrendelscherm niet zelf. Voeg deze regel " -"toe aan %s:" +"Hyprland start de agent voor het vergrendelscherm niet zelf. Voeg dit toe " +"aan %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/pl.po b/po/pl.po index 926022d..4eb82ca 100644 --- a/po/pl.po +++ b/po/pl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Polish\n" @@ -703,12 +703,11 @@ msgstr "Nieprawidłowe ustawienie: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Nie można tego użyć dla tej usługi: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" -msgstr "" -"Hyprland nie uruchamia sam agenta ekranu blokady. Dodaj ten wiersz do %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" +msgstr "Hyprland nie uruchamia sam agenta ekranu blokady. Dodaj to do %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/pt_BR.po b/po/pt_BR.po index 0e6b19e..501a7a7 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Brazilian Portuguese\n" @@ -706,13 +706,13 @@ msgstr "Configuração inválida: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Não pode ser usado para este serviço: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"O Hyprland não inicia o agente da tela de bloqueio sozinho. Adicione esta " -"linha a %s:" +"O Hyprland não inicia o agente da tela de bloqueio sozinho. Adicione isto a " +"%s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/ru.po b/po/ru.po index 8d0b46d..7b74a3f 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Russian\n" @@ -705,12 +705,11 @@ msgstr "Недопустимая настройка: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Для этой службы использовать нельзя: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" -msgstr "" -"Hyprland сам не запускает агент экрана блокировки. Добавьте эту строку в %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" +msgstr "Hyprland сам не запускает агент экрана блокировки. Добавьте это в %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/tr.po b/po/tr.po index 28c0a5e..c1cbb0e 100644 --- a/po/tr.po +++ b/po/tr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Turkish\n" @@ -697,13 +697,13 @@ msgstr "Geçerli bir ayar değil: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Bunun için kullanılamaz: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" msgstr "" -"Hyprland kilit ekranı aracısını kendiliğinden başlatmaz. Bu satırı %s " -"dosyasına ekleyin:" +"Hyprland kilit ekranı aracısını kendiliğinden başlatmaz. Bunu %s dosyasına " +"ekleyin:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/uk.po b/po/uk.po index 8201bb5..994f4b2 100644 --- a/po/uk.po +++ b/po/uk.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Ukrainian\n" @@ -705,12 +705,11 @@ msgstr "Неприпустиме налаштування: %s=%s" msgid "Not a service this can be used for: %s" msgstr "Для цієї служби використати не можна: %s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" -msgstr "" -"Hyprland сам не запускає агент екрана блокування. Додайте цей рядок до %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" +msgstr "Hyprland сам не запускає агент екрана блокування. Додайте це до %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/po/zh_CN.po b/po/zh_CN.po index e4eabc9..b531b3e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: face-unlock 1.0.1\n" "Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n" -"POT-Creation-Date: 2026-09-25 08:20+0200\n" +"POT-Creation-Date: 2026-09-26 19:32+0200\n" "PO-Revision-Date: 2026-09-24 12:00+0200\n" "Last-Translator: Felitendo\n" "Language-Team: Chinese (simplified)\n" @@ -656,11 +656,11 @@ msgstr "无效的设置:%s=%s" msgid "Not a service this can be used for: %s" msgstr "不能用于此服务:%s" -#: src/lib/system.sh:135 +#: src/lib/system.sh:138 src/lib/system.sh:143 #, sh-printf-format msgid "" -"Hyprland does not start the lock screen agent by itself. Add this line to %s:" -msgstr "Hyprland 不会自动启动锁屏代理。请把这一行加入 %s:" +"Hyprland does not start the lock screen agent by itself. Add this to %s:" +msgstr "Hyprland 不会自动启动锁屏代理。请把以下内容加入 %s:" #: src/lib/menu.sh msgid "Unlock with your face" diff --git a/src/lib/system.sh b/src/lib/system.sh index 714146a..b9af1b4 100644 --- a/src/lib/system.sh +++ b/src/lib/system.sh @@ -130,10 +130,19 @@ fu_agent_autostarts() { } # fu_agent_hint +# What to add to Hyprland's config, in the Lua it has since 0.56 or in the +# older format. fu_agent_hint() { # shellcheck disable=SC2088 # shown to the user, not a path to open - fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this line to %s:" "~/.config/hypr/hyprland.conf")" - fu_say " exec-once = systemctl --user start $FU_UNIT_AGENT" + if [[ -f $FU_XDG_CONFIG/hypr/hyprland.lua ]]; then + fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this to %s:" "~/.config/hypr/hyprland.lua")" + fu_say " hl.on(\"hyprland.start\", function ()" + fu_say " hl.exec_cmd(\"systemctl --user start $FU_UNIT_AGENT\")" + fu_say " end)" + else + fu_note "$(fu_msg "Hyprland does not start the lock screen agent by itself. Add this to %s:" "~/.config/hypr/hyprland.conf")" + fu_say " exec-once = systemctl --user start $FU_UNIT_AGENT" + fi } fu_agent_disable() {