diff --git a/roles/home-gui/files/xbindkeysrc b/roles/home-gui/files/xbindkeysrc new file mode 100644 index 0000000..24c5ab1 --- /dev/null +++ b/roles/home-gui/files/xbindkeysrc @@ -0,0 +1,7 @@ +# Load with xbindkeys. Use "xbindkeys -n" to avoid forking. + +"/usr/bin/amixer set Capture cap" + Control_R + +"/usr/bin/amixer set Capture nocap" + Control+Mod2 + Control_R + Release diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 6610473..bb3dce7 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -35,3 +35,7 @@ template: src: todo.desktop dest: "{{ ansible_env.HOME }}/.local/share/applications/todo.desktop" +- name: Copy .xbindkeysrc + copy: + src: "xbindkeysrc" + dest: "{{ ansible_env.HOME }}/.xbindkeysrc"