From 901921a22f69edb70e53109cdf2e9519b55dc64f Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 16 Nov 2023 12:38:28 +0300 Subject: dotconfig/i3: exec keyboard layout command on i3 restart When a new keyboard is connected those settings do not apply to it and it uses the default settings. So we have to run the setxkbmap command again when the external keyboard is connected. --- dotconfig/i3/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dotconfig/i3') diff --git a/dotconfig/i3/config b/dotconfig/i3/config index 7ed340b..3622841 100644 --- a/dotconfig/i3/config +++ b/dotconfig/i3/config @@ -17,7 +17,9 @@ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ to bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Keyboard layout -exec --no-startup-id "setxkbmap -layout us,ru -option grp:alt_shift_toggle" +# Run this command when restarting i3, because the settings applied by setxkbmap +# only take effect on the currently connected keyboards. +exec_always --no-startup-id "setxkbmap -layout us,ru -option grp:alt_shift_toggle" # Mate Polkit solves the problem when PolicyKit daemon sends error response to # polkit-agent-helper-1 -- cgit v1.2.3-18-g5258