-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added seperate configs and changed the license
- Loading branch information
1 parent
362d74a
commit 4c21b95
Showing
9 changed files
with
346 additions
and
693 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
.POSIX: | ||
BIN_DIR = /usr/local/bin | ||
DIR_BIN = /usr/local/bin | ||
CONFIG = uniblocksrc | ||
SCRIPT = $(shell grep -l "^#\!" ./* | sed 's/.\///') | ||
init: | ||
@[ -f ~/.config/$(CONFIG) ] || cp $(CONFIG) ~/.config | ||
@echo Initiation finished. | ||
install: | ||
@mkdir -p $(BIN_DIR) | ||
@for e in *.sh; do \ | ||
cp -f $$e $${e%.*}; \ | ||
chmod 755 $${e%.*}; \ | ||
mv $${e%.*} $(BIN_DIR); \ | ||
done | ||
@echo Done installing executable files to $(BIN_DIR) | ||
@mkdir -p $(DIR_BIN) | ||
@cp -f $(SCRIPT) $(DIR_BIN) | ||
@chmod 755 $(DIR_BIN)/${SCRIPT} | ||
@echo Installation finished. | ||
uninstall: | ||
@for e in *.sh;do \ | ||
rm -f $(BIN_DIR)/$${e%.*}; \ | ||
done | ||
@echo Done removing executable files from $(BIN_DIR) | ||
.PHONY: install uninstall | ||
@rm -f $(DIR_BIN)/$(SCRIPT) | ||
@echo Uninstallation finished. | ||
.PHONY: init install uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# Config file for uniblocks | ||
|
||
DELIMITER=" " | ||
|
||
display() { | ||
# $1 is the status string | ||
xsetroot -name "$1" # For dwm | ||
} | ||
|
||
#=============================================================================== | ||
# Format: TAG,SCRIPT,INTERVAL (In second) | ||
# Note: Use 0 as interval for manually updated modules | ||
#=============================================================================== | ||
CONFIG="\ | ||
sys,panel -s,3; | ||
vol,panel -v,0; | ||
mail,panel -m,0; | ||
wifi,panel -w,30; | ||
dt,panel -d,60; | ||
" |