From: Jaroslav Kysela Date: Wed, 15 Nov 2017 10:13:04 +0000 (+0100) Subject: hwmixvolume: add .desktop and icon files X-Git-Tag: v1.1.6~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=882d4b10488b43a90522614870dcf2e67dca7157;p=alsa-tools.git hwmixvolume: add .desktop and icon files Resized version of public domain clipart found here: http://www.openclipart.org/detail/17428 Signed-off-by: Jaroslav Kysela --- diff --git a/.gitignore b/.gitignore index e72c2e5..0909477 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ hdsploader/Makefile hdsploader/configure hwmixvolume/Makefile hwmixvolume/configure +hwmixvolume/desktop/Makefile ld10k1/Makefile ld10k1/ld10k1d ld10k1/configure diff --git a/hwmixvolume/Makefile.am b/hwmixvolume/Makefile.am index 38690eb..0437723 100644 --- a/hwmixvolume/Makefile.am +++ b/hwmixvolume/Makefile.am @@ -1,4 +1,5 @@ -# # Process this file with automake to procude Makefile.in. +# Process this file with automake to produce Makefile.in. +SUBDIRS = desktop bin_SCRIPTS = hwmixvolume #man_MANS = EXTRA_DIST = gitcompile hwmixvolume diff --git a/hwmixvolume/configure.ac b/hwmixvolume/configure.ac index 09d5f09..84f8473 100644 --- a/hwmixvolume/configure.ac +++ b/hwmixvolume/configure.ac @@ -4,4 +4,4 @@ AM_INIT_AUTOMAKE AM_MAINTAINER_MODE([enable]) AC_CONFIG_SRCDIR([hwmixvolume]) AC_PROG_INSTALL -AC_OUTPUT([Makefile]) +AC_OUTPUT([Makefile desktop/Makefile]) diff --git a/hwmixvolume/desktop/Makefile.am b/hwmixvolume/desktop/Makefile.am new file mode 100644 index 0000000..d15b5e5 --- /dev/null +++ b/hwmixvolume/desktop/Makefile.am @@ -0,0 +1,36 @@ +APPNAME = hwmixvolume + +desktopdir = $(datadir)/applications +desktop_DATA = $(APPNAME).desktop + +public_icons = \ + hicolor_apps_256x256_$(APPNAME).png \ + hicolor_apps_128x128_$(APPNAME).png \ + hicolor_apps_48x48_$(APPNAME).png + +EXTRA_DIST = \ + $(public_icons) \ + $(desktop_DATA) + +install-icons: + for icon in $(public_icons); do \ + THEME=`echo $$icon | cut -d_ -f1`; \ + CONTEXT=`echo $$icon | cut -d_ -f2`; \ + SIZE=`echo $$icon | cut -d_ -f3`; \ + ICONFILE=`echo $$icon | cut -d_ -f4`; \ + mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \ + $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \ + done + +uninstall-icons: + -for icon in $(public_icons); do \ + THEME=`echo $$icon | cut -d_ -f1`; \ + CONTEXT=`echo $$icon | cut -d_ -f2`; \ + SIZE=`echo $$icon | cut -d_ -f3`; \ + ICONFILE=`echo $$icon | cut -d_ -f4`; \ + rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \ + done + +install-data-local: install-icons + +uninstall-local: uninstall-icons diff --git a/hwmixvolume/desktop/hicolor_apps_128x128_hwmixvolume.png b/hwmixvolume/desktop/hicolor_apps_128x128_hwmixvolume.png new file mode 100644 index 0000000..c131adc Binary files /dev/null and b/hwmixvolume/desktop/hicolor_apps_128x128_hwmixvolume.png differ diff --git a/hwmixvolume/desktop/hicolor_apps_256x256_hwmixvolume.png b/hwmixvolume/desktop/hicolor_apps_256x256_hwmixvolume.png new file mode 100644 index 0000000..57d6d0a Binary files /dev/null and b/hwmixvolume/desktop/hicolor_apps_256x256_hwmixvolume.png differ diff --git a/hwmixvolume/desktop/hicolor_apps_48x48_hwmixvolume.png b/hwmixvolume/desktop/hicolor_apps_48x48_hwmixvolume.png new file mode 100644 index 0000000..41c366d Binary files /dev/null and b/hwmixvolume/desktop/hicolor_apps_48x48_hwmixvolume.png differ diff --git a/hwmixvolume/desktop/hwmixvolume.desktop b/hwmixvolume/desktop/hwmixvolume.desktop new file mode 100644 index 0000000..70d03fb --- /dev/null +++ b/hwmixvolume/desktop/hwmixvolume.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Hwmixvolume +GenericName=Control the volume of individual streams on sound cards that use hardware mixing +Exec=hwmixvolume +Icon=hwmixvolume +Terminal=false +Type=Application +Categories=AudioVideo; +Version=0.9.4