aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotconfig/i3/config4
1 files changed, 3 insertions, 1 deletions
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