diff options
-rw-r--r-- | meson.build | 12 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 1cb40ade..5be1f8d2 100644 --- a/meson.build +++ b/meson.build | |||
@@ -191,3 +191,15 @@ if (get_option('zsh_completions')) | |||
191 | 191 | ||
192 | install_data(zsh_files, install_dir: zsh_install_dir) | 192 | install_data(zsh_files, install_dir: zsh_install_dir) |
193 | endif | 193 | endif |
194 | |||
195 | if (get_option('bash_completions')) | ||
196 | bash_files = files( | ||
197 | 'completions/bash/sway', | ||
198 | 'completions/bash/swayidle', | ||
199 | 'completions/bash/swaylock', | ||
200 | 'completions/bash/swaymsg', | ||
201 | ) | ||
202 | bash_install_dir = datadir + '/bash-completion/completions' | ||
203 | |||
204 | install_data(bash_files, install_dir: bash_install_dir) | ||
205 | endif | ||
diff --git a/meson_options.txt b/meson_options.txt index 6c7f241d..7a23c206 100644 --- a/meson_options.txt +++ b/meson_options.txt | |||
@@ -1,4 +1,5 @@ | |||
1 | option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.') | 1 | option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.') |
2 | option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') | 2 | option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') |
3 | option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.') | 3 | option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.') |
4 | option('bash_completions', type: 'boolean', value: true, description: 'Install bash shell completions.') | ||
4 | option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications') | 5 | option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications') |