.. include:: /urls.rst .. _librem_key_tips: Tips ==== .. _librem_key_language_settings: Changing Librem Key language settings ------------------------------------- The Librem Key currently defaults to German as its on-board GPG language setting. This means when you plug it in, you might get a desktop prompt in German instead of English. To change the default language used by the Librem Key for GPG, first enter the GPG card edit menu: .. code-block:: bash gpg --card-edit Then from the ``gpg/card>`` prompt type ``admin`` to enter admin mode and then ``lang`` to change the language. For instance to change it from German to English, set it to ``en`` when you see the ``Language preferences:`` prompt: .. code-block:: admin lang Then type ``quit`` to exit the menu when you are done: .. code-block:: quit .. _librem_key_autolock: Automatically lock the desktop when removing the Librem Key ----------------------------------------------------------- Through the use of a simple script and udev rules, you can have your computer lock the screen when you pull out your Librem Key. This integration requires the following files: #. ``/etc/udev/rules.d/85-libremkey.rules`` #. ``/usr/local/bin/gnome-screensaver-lock`` .. literalinclude:: _files/85-libremkey.rules :download:`85-libremkey.rules <_files/85-libremkey.rules>` .. literalinclude:: _files/gnome-screensaver-lock :language: sh :download:`gnome-screensaver-lock <_files/gnome-screensaver-lock>` You will need to trigger udev to reload upon installation so it picks up the new rule. You can do that this way: .. code-block:: bash systemctl restart udev .. _librem_key_heads_integration: Using the Librem Key with Heads ------------------------------- TODO: This section will be incomplete until we finalize the initial Heads UI. In the meantime, `this blog post `_ describes how the Librem Key integrates with Heads.