mirror of
https://github.com/polybar/polybar.git
synced 2026-02-22 20:55:46 +00:00
feat(xkeyboard): Switch layout group on click
When serveral layout groups are defined for the keyboard they can be cycled when clicking on the module. For example: $ setxkbmap -layout us,sv,fr Ref #84
This commit is contained in:
@ -262,6 +262,8 @@ void controller::wait_for_eventloop() {
|
||||
}
|
||||
|
||||
bool controller::on(const sig_ev::process_update& evt) {
|
||||
bool force{evt.data()->flag};
|
||||
|
||||
if (!m_bar) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user