1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00
ansible_role_sway/defaults/main.yml
2024-07-31 22:32:06 +02:00

101 lines
2.8 KiB
YAML

---
# deploy config to these users:
sway__user_list:
- user: "{{ ansible_user_id }}"
home: "{{ ansible_env.HOME | default('/home/{{ ansible_user_id }}') }}"
sway__dynamic_names: false
# sway behavior and favorites
sway__logo_key: 'Mod4'
sway__term: 'foot'
sway__reload: '$mod+Shift+r'
sway__term_pkgs:
- foot
- foot-terminfo
- foot-themes
sway__keyboard_settings: true
sway__keyboard_lang: 'de'
sway__lock: 'swaylock --color 00000000 && killall -9 cmatrix & foot -F cmatrix -a -L && exit'
sway__swaylock: |
color=000000ff
sway__waybar: true
sway__waybar_modules_left: ["sway/workspaces", "sway/mode", "sway/scratchpad"]
sway__waybar_modules_center: ["sway/window"]
sway__waybar_modules_right:
- "idle_inhibitor"
- "custom/weather"
- "pulseaudio"
- "network"
- "custom/ping"
- "cpu"
- "memory"
- "disk"
- "temperature"
- "backlight"
- "keyboard-state"
- "sway/language"
- "battery"
- "custom/power"
- "clock"
- "tray"
sway__launcher: 'fuzzel'
sway__install_launcher: ['fuzzel']
sway__waybar_font_size: '13px'
sway__waybar_light_up: 'light -A 1'
sway__waybar_light_down: 'light -U 1'
sway__wlsunset: true
sway__wlsunset_params: '-l 49 -L 8.4'
sway__keybindings:
- keybinding:
name: Volume (mute/unmute)
key: $mod+F12
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: Volue (default)
key: $mod+Shift+F12
exec: --no-startup-id pulsemixer --set-volume 42
- keybinding:
name: volume-up
key: XF86AudioRaiseVolume
exec: --no-startup-id pulsemixer --change-volume +3
- keybinding:
name: volume-down
key: XF86AudioLowerVolume
exec: --no-startup-id pulsemixer --change-volume -5
- keybinding:
name: Toggle Mic Mute
key: XF86AudioMicMute
exec: '--no-startup-id pulsemixer --toggle-mute --id $(pulsemixer --list-sources | cut -f3 | grep Default | cut -d "," -f 1 | cut -c 6-)'
- keybinding:
name: Mic volume up
key: $mod+Shift+F4
exec: '--no-startup-id pulsemixer --change-volume +3 --id $(pulsemixer --list-sources | cut -f3 | grep Default | cut -d "," -f 1 | cut -c 6-)'
- keybinding:
name: Mic volume down
key: $mod+F4
exec: '--no-startup-id pulsemixer --change-volume -5 --id $(pulsemixer --list-sources | cut -f3 | grep Default | cut -d "," -f 1 | cut -c 6-)'
- keybinding:
name: Toggle Mic Mute
key: XF86AudioMute
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: darker
key: XF86MonBrightnessDown
exec: --no-startup-id light -U 9
- keybinding:
name: lighter
key: XF86MonBrightnessUp
exec: --no-startup-id light -A 6
- keybinding:
name: display settings
key: $mod+Shift+F7
exec: wdisplays
sway__pipewire: true
sway__keybindings_extra: []
# version check for this role?
submodules_versioncheck: false