Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions completions/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
bashdir = get_option('datadir') / 'bash-completion/completions'
fishdir = get_option('datadir') / 'fish/vendor_completions.d'
zshdir = get_option('datadir') / 'zsh/site-functions'

bashcomp = files(
'dunst.bashcomp',
'dunstify.bashcomp',
'dunstctl.bashcomp',
)

bashrename = [
'dunst',
'dunstify',
'dunstctl',
]

install_data(
bashcomp,
install_dir: bashdir,
rename: bashrename,
)

zshcomp = files(
'_dunst.zshcomp',
'_dunstify.zshcomp',
'_dunstctl.zshcomp',
)

zshrename = [
'_dunst',
'_dunstify',
'_dunstctl',
]

install_data(
zshcomp,
install_dir: zshdir,
rename: zshrename,
)

fishcomp = files(
'dunst.fishcomp',
'dunstify.fishcomp',
'dunstctl.fishcomp',
)

fishrename = [
'dunst.fish',
'dunstify.fish',
'dunstctl.fish',
]

install_data(
fishcomp,
install_dir: fishdir,
rename: fishrename,
)
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ if libnotify.found()
'dunstify',
'dunstify.c',
dependencies: [glib, libnotify, gdk_pixbuf],
c_args: c_version_arg,
install: true,
)
endif
Expand All @@ -124,13 +125,19 @@ if pod2man.found()
subdir('docs')
endif

completions = get_option('completions')
if completions
subdir('completions')
endif

summary(
{
'X11 support': x11_support,
'Wayland support': wayland_support,
'Man pages': pod2man.found(),
'Dunstify': libnotify.found(),
'Install systemd service units': systemd.found(),
'Install shell completions': completions,
},
bool_yn: true,
)
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ option('wayland', type: 'feature', value: 'auto', description: 'Enable wayland s
option('x11', type: 'feature', value: 'auto', description: 'Enable X11 support')
option('dunstify', type: 'feature', value: 'auto', description: 'Install libnotify dunstify utility')
option('systemd', type: 'feature', value: 'auto', description: 'Install systemd user service unit')
option('completions', type: 'boolean', value: true, description: 'Install shell completions')