.. include:: /urls.rst .. _lk_tips: Tips ==== .. _lk_language_settings: Changing language settings -------------------------- To change the default language used by the Librem Key for GPG: #. Enter the GPG card edit menu: .. code-block:: bash gpg --card-edit #. From the ``gpg/card>`` prompt, enter admin mode. .. code-block:: bash admin #. Enter the language preferences menu. .. code-block:: bash lang You will then receive a ``Language preferences:`` prompt. #. To change the language from German to English: .. code-block:: bash en #. Exit the menu. .. code-block:: bash quit .. _lk_autolock: Automatically lock the desktop when removing the Librem Key ----------------------------------------------------------- Through the use of a simple script and ``udev`` rules, the computer can lock the screen when the Librem Key is removed. This integration requires the following contents be placed in the appropriate locations: #. :download:`/etc/udev/rules.d/85-libremkey.rules ` .. literalinclude:: /_files/LK/85-libremkey.rules #. :download:`/usr/local/bin/gnome-screensaver-lock ` .. literalinclude:: /_files/LK/gnome-screensaver-lock :language: sh #. ``udev`` must now be triggered to reload upon installation to use the new rule: .. code-block:: bash systemctl restart udev