added switch-theme for #36; readme updated
This commit is contained in:
parent
c0d506c9ba
commit
0e5c247140
|
@ -83,7 +83,7 @@ Installation
|
|||
Using git you can have the full master branch: ::
|
||||
|
||||
git clone https://github.com/copycat-killer/awesome-copycats.git
|
||||
mv -u awesome-copycats ~/.config/awesome
|
||||
mv awesome-copycats/* ~/.config/awesome; rmdir awesome-copycats
|
||||
cd ~/.config/awesome
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
@ -102,6 +102,8 @@ Switch a theme this way: ::
|
|||
|
||||
then customize your ``rc.lua`` and restart Awesome (``Mod4 + ctrl + r``).
|
||||
|
||||
Alternatively, you can use [`switch-theme.sh`](https://github.com/copycat-killer/awesome-copycats/issues/36), which will also update to the latest commit.
|
||||
|
||||
Notes
|
||||
=====
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ mailwidget = lain.widgets.imap({
|
|||
count = ""
|
||||
|
||||
if mailcount > 0 then
|
||||
mail = "Arch "
|
||||
mail = "Mail "
|
||||
count = mailcount .. " "
|
||||
end
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ mailwidget = lain.widgets.imap({
|
|||
count = ""
|
||||
|
||||
if mailcount > 0 then
|
||||
mail = "Arch "
|
||||
mail = "Mail "
|
||||
count = mailcount .. " "
|
||||
end
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ mailwidget = lain.widgets.imap({
|
|||
count = ""
|
||||
|
||||
if mailcount > 0 then
|
||||
mail = "Arch "
|
||||
mail = "Mail "
|
||||
count = mailcount .. " "
|
||||
end
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ mailwidget = lain.widgets.imap({
|
|||
count = ""
|
||||
|
||||
if mailcount > 0 then
|
||||
mail = "Arch "
|
||||
mail = "Mail "
|
||||
count = mailcount .. " "
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
#! /usr/bin/make -f
|
||||
|
||||
# Awesome Copycats switch theme script
|
||||
# It also updates to latest commit.
|
||||
# Dependencies: make, git
|
||||
|
||||
|
||||
DESTDIR=~/.config/awesome
|
||||
PROJECT=copycat-killer/awesome-copycats
|
||||
|
||||
# $(swap_dialog)
|
||||
define swap_dialog
|
||||
echo ; \
|
||||
echo "see https://github.com/$(PROJECT)" ; \
|
||||
echo ; $(themes) | cat -n ; echo ; \
|
||||
typeset -i num; \
|
||||
read -p "Switch to theme: " num ; \
|
||||
if [ ! -z $${num} -a $${num} -ge 1 -a -le $${n_themes} ] ; then \
|
||||
NEW_THEME=$$($(themes) | head -n$${num} | tail -n1 ) ; \
|
||||
cp $${NEW_THEME} rc.lua ; \
|
||||
echo "Theme is now $${NEW_THEME}"; \
|
||||
else echo " !! Aborted. " ; fi
|
||||
endef
|
||||
|
||||
# $(themes)
|
||||
themes=find rc.lua* -not -name rc.lua
|
||||
|
||||
# number of current themes
|
||||
n_themes=$(themes) | wc -l
|
||||
|
||||
.SILENT : all
|
||||
|
||||
all: $(DESTDIR)
|
||||
cd $(DESTDIR) && \
|
||||
echo -n $(git pull)#"Already up-to-date."; \
|
||||
git submodule init ; \
|
||||
git submodule update; \
|
||||
$(swap_dialog)
|
||||
|
||||
$(DESTDIR):
|
||||
git clone https://github.com/${PROJECT}.git $@
|
Loading…
Reference in New Issue