Skip to content

Commit

Permalink
Added mlvwmrc MenuExtra, plus install/uninstall targets to Makefile. …
Browse files Browse the repository at this point in the history
…Issue #1
  • Loading branch information
morgant committed Nov 29, 2023
1 parent 457912f commit 5936b1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .mlvwm/MenuExtras/xsndioicon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
################################################################################
# xsndioicon Menu Extra
################################################################################

Swallow "wmlaunchbutton" Action Exec "wmlaunchbutton" exec wmlaunchbutton pixmap/sound_full.xpm xsndiomenu
#Swallow "WMLaunchButton" Action Exec "xsndioicon" exec xsndioicon
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PREFIX ?= /usr/local
BINDIR = $(DESTDIR)$(PREFIX)/bin
SHAREDIR = $(DESTDIR)$(PREFIX)/share
PIXMAPDIR = $(SHAREDIR)/pixmaps/$(MENUPROG)
MLVWMRCDIR = $(HOME)/.mlvwm

install:
mkdir -p $(BINDIR)
Expand All @@ -14,7 +15,15 @@ install:
cp -R pixmap/* $(PIXMAPDIR)/
sed -i 's@pixmap/@$(PIXMAPDIR)/@g' $(BINDIR)/$(ICONPROG)

install-mlvwmrc-menuextra:
mkdir -p $(MLVWMRCDIR)/MenuExtras
install .mlvwm/MenuExtras/$(ICONPROG) $(MLVWMRCDIR)/MenuExtras
sed -i 's@pixmap/@$(PIXMAPDIR)/@g' $(MLVWMRCDIR)/MenuExtras/$(ICONPROG)

uninstall:
rm $(BINDIR)/$(MENUPROG)
rm $(BINDIR)/$(ICONPROG)
rm -r $(PIXMAPDIR)

uninstall-mlvwmrc-menuexra:
rm $(MLVWMRCDIR)/MenuExtras/$(ICONPROG)

0 comments on commit 5936b1a

Please sign in to comment.