diff options
author | Joursoir <chat@joursoir.net> | 2023-11-16 12:38:28 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2023-11-16 12:41:14 +0300 |
commit | 901921a22f69edb70e53109cdf2e9519b55dc64f (patch) | |
tree | 12ab07ce8465af6f396e111dd255f8f4ff6d3d96 /dotconfig/i3 | |
parent | 62ea5555e7f3fa53b1cb31fe881c888fc4a27828 (diff) | |
download | dotfiles-901921a22f69edb70e53109cdf2e9519b55dc64f.tar.gz dotfiles-901921a22f69edb70e53109cdf2e9519b55dc64f.tar.bz2 dotfiles-901921a22f69edb70e53109cdf2e9519b55dc64f.zip |
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.
Diffstat (limited to 'dotconfig/i3')
-rw-r--r-- | dotconfig/i3/config | 4 |
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 |