Browse Source

xsession reload and reset caps-lock

pull/1/head
parent
commit
6e068226cb
2 changed files with 8 additions and 0 deletions
  1. +2
    -0
      templates/i3/i3.config.j2
  2. +6
    -0
      templates/x11/xsession.reload.fish.j2

+ 2
- 0
templates/i3/i3.config.j2 View File

@@ -33,6 +33,8 @@ bindsym $mod+s mode session
bindsym $mod+c mode clipboard
bindcode $mod+49 mode "remote"

bindcode $mod+9 exec --no-startup-id ~/.xsession.reload.fish

## Activity
bindsym $mod+less exec {{i3_exec_command_prefix}} "~/bin/timer select_activity"



+ 6
- 0
templates/x11/xsession.reload.fish.j2 View File

@@ -2,6 +2,12 @@

{{ansible_managed|comment}}

# reset keyboard state
numlockx on
if [ (xset -q | sed -n 's/^.*Caps Lock:\s*\(\S*\).*$/\1/p') = "on" ]
xdotool key Caps_Lock
end

# keymap
setxkbmap de
xmodmap ~/.Xmodmap