hwmixvolume: add .desktop and icon files
authorJaroslav Kysela <perex@perex.cz>
Wed, 15 Nov 2017 10:13:04 +0000 (11:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 15 Nov 2017 11:59:43 +0000 (12:59 +0100)
  Resized version of public domain clipart found here:
  http://www.openclipart.org/detail/17428

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

.gitignore
hwmixvolume/Makefile.am
hwmixvolume/configure.ac
hwmixvolume/desktop/Makefile.am [new file with mode: 0644]
hwmixvolume/desktop/hicolor_apps_128x128_hwmixvolume.png [new file with mode: 0644]
hwmixvolume/desktop/hicolor_apps_256x256_hwmixvolume.png [new file with mode: 0644]
hwmixvolume/desktop/hicolor_apps_48x48_hwmixvolume.png [new file with mode: 0644]
hwmixvolume/desktop/hwmixvolume.desktop [new file with mode: 0644]

index e72c2e5..0909477 100644 (file)
@@ -66,6 +66,7 @@ hdsploader/Makefile
 hdsploader/configure
 hwmixvolume/Makefile
 hwmixvolume/configure
+hwmixvolume/desktop/Makefile
 ld10k1/Makefile
 ld10k1/ld10k1d
 ld10k1/configure
index 38690eb..0437723 100644 (file)
@@ -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
index 09d5f09..84f8473 100644 (file)
@@ -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 (file)
index 0000000..d15b5e5
--- /dev/null
@@ -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 (file)
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 (file)
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 (file)
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 (file)
index 0000000..70d03fb
--- /dev/null
@@ -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