Skip to content

hyprpolkitagent

hyprpolkitagent is a polkit authentication daemon. It is required for GUI applications to be able to request elevated privileges.

If it’s not available in your distro’s repositories, you can either build it from source or use a different agent, e.g. KDE’s one.

Usage

Add systemctl --user start hyprpolkitagent to your Hyprland config’s autostart and restart Hyprland. (Obviously change that to whatever you are using if you are not using the hypr one.)

On distributions that use a different init system, such as Gentoo, it may be necessary to use /usr/lib64/libexec/hyprpolkitagent instead.

Other possible paths include /usr/lib/hyprpolkitagent and /usr/libexec/hyprpolkitagent.

Configuration

The config file is located at ~/.config/hyprpolkitagent/hyprpolkitagent.conf. It is not required. Changes apply the next time the agent starts.

Variables in the general category:

VariableDescriptionTypeDefault
allow_empty_passwordWhether an empty password can be submitted. Useful when PAM falls through to another method after the password module fails, e.g. face recognition with howdyboolfalse
password_field_widthWidth of the password input, in pxint340
require_confirmationWhether authentication that passes without any input (e.g. face recognition with howdy, or a fingerprint) waits for you to confirm before the action is allowedboolfalse
show_detailsWhether the action and command panel can be toggledbooltrue
window_heightHeight of the dialog, in pxint440
window_widthWidth of the dialog, in pxint520
Example
~/.config/hyprpolkitagent/hyprpolkitagent.conf
general {
    show_details = true
}

Theming

Colors, rounding and fonts follow your hyprtoolkit theme.

Last updated on