mirror of
https://github.com/pgrondek/config.git
synced 2024-11-25 21:25:39 +00:00
[i3] Added playerctl
This commit is contained in:
parent
5879ed65e3
commit
f670ef7dc6
@ -1,3 +1,5 @@
|
|||||||
|
include *.mk
|
||||||
|
|
||||||
REQUIRED_BINS=\
|
REQUIRED_BINS=\
|
||||||
/usr/bin/i3 \
|
/usr/bin/i3 \
|
||||||
/usr/bin/i3blocks \
|
/usr/bin/i3blocks \
|
||||||
@ -44,8 +46,8 @@ OUT=$(I3_CONFIG_OUT) $(DUNST_CONFIG_OUT)
|
|||||||
.PHONY: clean_install
|
.PHONY: clean_install
|
||||||
|
|
||||||
clean_install: clean install
|
clean_install: clean install
|
||||||
clean: clean_i3 clean_dunst clean_compton clean_i3blocks clean_bins
|
clean: clean_i3 clean_dunst clean_compton clean_i3blocks clean_bins clean_playerctl
|
||||||
install: $(REQUIRED_BINS) install_i3 install_compton install_i3blocks install_bins clean_dunst
|
install: $(REQUIRED_BINS) install_i3 install_compton install_i3blocks install_bins clean_dunst install_playerctl
|
||||||
|
|
||||||
$(REQUIRED_BINS):
|
$(REQUIRED_BINS):
|
||||||
$(ROOT_APT) install $(PACKAGES)
|
$(ROOT_APT) install $(PACKAGES)
|
||||||
|
22
i3/playerctl.mk
Normal file
22
i3/playerctl.mk
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
PACKAGE=playerctl
|
||||||
|
GITHUB_VERSION=2.0.2
|
||||||
|
GITHUB_URL=https://github.com/altdesktop/playerctl/releases/download/v$(GITHUB_VERSION)/playerctl-$(GITHUB_VERSION)_amd64.deb
|
||||||
|
|
||||||
|
BIN=/usr/bin/playerctl
|
||||||
|
ROOT_APT=sudo aptitude
|
||||||
|
|
||||||
|
install_playerctl: $(BIN)
|
||||||
|
|
||||||
|
$(BIN):
|
||||||
|
ifeq ($(shell aptitude search $PACKAGE 2&> /dev/null; echo $?), 0)
|
||||||
|
$(ROOT_APT) install $(PACKAGE)
|
||||||
|
else
|
||||||
|
$(eval TMP = $(shell mktemp -d))
|
||||||
|
curl -fsSL $(GITHUB_URL) -o $(TMP)/playerctl.deb
|
||||||
|
chmod -R a+rx $(TMP)
|
||||||
|
sudo apt install $(TMP)/playerctl.deb
|
||||||
|
rm -rf $(TMP)
|
||||||
|
endif
|
||||||
|
|
||||||
|
clean_playerctl:
|
||||||
|
$(ROOT_APT) remove $(PACKAGE)
|
Loading…
Reference in New Issue
Block a user