1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00

Make audio optional

This commit is contained in:
L3D 2019-02-20 11:53:10 +01:00
parent 0e9906da36
commit f8e806d865
2 changed files with 15 additions and 16 deletions

View file

@ -24,9 +24,20 @@
- name: define i3_packages - name: define i3_packages
set_fact: set_fact:
i3_keybindings: "{{ __i3_keybindings | list }}" i3_keybindings: "{{ __i3_keybindings | list }}"
when: i3_keybindings is not defined when:
- i3_keybindings is not defined
- __i3_keybindings is defined
- name: define extra i3 keybindings - name: define extra i3 keybindings
set_fact: set_fact:
i3_keybindings: "{{ i3_keybindings | list + i3_keybindings_extra | list }}" i3_keybindings: "{{ i3_keybindings_extra | list + i3_keybindings | list }}"
when: i3_keybindings_extra is defined when:
- i3_keybindings_extra is defined
- i3_keybindings is defined
- name: define extra i3 keybindings
set_fact:
i3_keybindings: "{{ i3_keybindings_extra | list }}"
when:
- i3_keybindings_extra is defined
- i3_keybindings is not defined

View file

@ -31,16 +31,4 @@ __i3_workspaces:
id: 0 id: 0
name: " 0 " name: " 0 "
__i3_keybindings:
- keybinding:
name: Volume (-5%)
key: XF86AudioLowerVolume
exec: --no-startup-id amixer sset Master 5%-
- keybinding:
name: Volume (+5%)
key: XF86AudioRaiseVolume
exec: --no-startup-id amixer sset Master 5%+
- keybinding:
name: Volume (mute/unmute)
key: XF86AudioMute
exec: --no-startup-id amixer sset Master toggle