mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
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: ::
|
Using git you can have the full master branch: ::
|
||||||
|
|
||||||
git clone https://github.com/copycat-killer/awesome-copycats.git
|
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
|
cd ~/.config/awesome
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
@ -102,6 +102,8 @@ Switch a theme this way: ::
|
||||||
|
|
||||||
then customize your ``rc.lua`` and restart Awesome (``Mod4 + ctrl + r``).
|
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
|
Notes
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
|
2
rc.lua.blackburn
Executable file → Normal file
2
rc.lua.blackburn
Executable file → Normal file
|
@ -126,7 +126,7 @@ mailwidget = lain.widgets.imap({
|
||||||
count = ""
|
count = ""
|
||||||
|
|
||||||
if mailcount > 0 then
|
if mailcount > 0 then
|
||||||
mail = "Arch "
|
mail = "Mail "
|
||||||
count = mailcount .. " "
|
count = mailcount .. " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
0
rc.lua.copland
Executable file → Normal file
0
rc.lua.copland
Executable file → Normal file
2
rc.lua.dremora
Executable file → Normal file
2
rc.lua.dremora
Executable file → Normal file
|
@ -129,7 +129,7 @@ mailwidget = lain.widgets.imap({
|
||||||
count = ""
|
count = ""
|
||||||
|
|
||||||
if mailcount > 0 then
|
if mailcount > 0 then
|
||||||
mail = "Arch "
|
mail = "Mail "
|
||||||
count = mailcount .. " "
|
count = mailcount .. " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
2
rc.lua.holo
Executable file → Normal file
2
rc.lua.holo
Executable file → Normal file
|
@ -146,7 +146,7 @@ mailwidget = lain.widgets.imap({
|
||||||
count = ""
|
count = ""
|
||||||
|
|
||||||
if mailcount > 0 then
|
if mailcount > 0 then
|
||||||
mail = "Arch "
|
mail = "Mail "
|
||||||
count = mailcount .. " "
|
count = mailcount .. " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
0
rc.lua.multicolor
Executable file → Normal file
0
rc.lua.multicolor
Executable file → Normal file
0
rc.lua.powerarrow-darker
Executable file → Normal file
0
rc.lua.powerarrow-darker
Executable file → Normal file
2
rc.lua.rainbow
Executable file → Normal file
2
rc.lua.rainbow
Executable file → Normal file
|
@ -137,7 +137,7 @@ mailwidget = lain.widgets.imap({
|
||||||
count = ""
|
count = ""
|
||||||
|
|
||||||
if mailcount > 0 then
|
if mailcount > 0 then
|
||||||
mail = "Arch "
|
mail = "Mail "
|
||||||
count = mailcount .. " "
|
count = mailcount .. " "
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
0
rc.lua.steamburn
Executable file → Normal file
0
rc.lua.steamburn
Executable file → Normal file
41
switch-theme.sh
Executable file
41
switch-theme.sh
Executable 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 $@
|
Loading…
Reference in a new issue