Skip to content
Jovan Lanik edited this page Oct 22, 2022 · 5 revisions

Summary

Usage

Load module by running $ gtklock -m /path/to/powerbar-module.so or adding modules=/path/to/powerbar-module.so to your gtklock config. If you installed both gtklock and the module using your package manager your can use $ gtklock -m powerbar-module and it will load from the system directory. gtklock should show power control buttons at the bottom of the screen. Proceed to setup.

Config

gtklock-powerbar-module has a few config options available in ~/.config/gtklock/config.ini:

[powerbar]
show-labels=false
linked-buttons=false
reboot-command=systemctl reboot
poweroff-command=systemctl -i poweroff
suspend-command=systemctl suspend
userswitch-command=
logout-command=

Command setup

If you are using systemd, the default systemctl commands should work out-of-the-box. On distros without it you may need to set reboot-command to sudo reboot, poweroff-command to sudo poweroff and suspend-command to sudo zzz or some other distro specific command.

The userswitch-command and logout-command options are session specific. For example userswitch-command should be gdmflexiserver when using GDM, dm-tool switch-to-greeter with LightDM and lxdm -c USER_SWITCH with LXDM.

logout-command should be swaymsg exit for sway.

Clone this wiki locally