1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 12:31:23 +00:00

added switch-theme for #36; readme updated

This commit is contained in:
luke bonham 2014-04-12 18:02:00 +02:00
parent c0d506c9ba
commit 0e5c247140
10 changed files with 48 additions and 5 deletions

View file

@ -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
=====

2
rc.lua.blackburn Executable file → Normal file
View file

@ -126,7 +126,7 @@ mailwidget = lain.widgets.imap({
count = ""
if mailcount > 0 then
mail = "Arch "
mail = "Mail "
count = mailcount .. " "
end

0
rc.lua.copland Executable file → Normal file
View file

2
rc.lua.dremora Executable file → Normal file
View file

@ -129,7 +129,7 @@ mailwidget = lain.widgets.imap({
count = ""
if mailcount > 0 then
mail = "Arch "
mail = "Mail "
count = mailcount .. " "
end

2
rc.lua.holo Executable file → Normal file
View file

@ -146,7 +146,7 @@ mailwidget = lain.widgets.imap({
count = ""
if mailcount > 0 then
mail = "Arch "
mail = "Mail "
count = mailcount .. " "
end

0
rc.lua.multicolor Executable file → Normal file
View file

0
rc.lua.powerarrow-darker Executable file → Normal file
View file

2
rc.lua.rainbow Executable file → Normal file
View file

@ -137,7 +137,7 @@ mailwidget = lain.widgets.imap({
count = ""
if mailcount > 0 then
mail = "Arch "
mail = "Mail "
count = mailcount .. " "
end

0
rc.lua.steamburn Executable file → Normal file
View file

41
switch-theme.sh Executable file
View file

@ -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 $@