mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 11:32:32 +00:00
#76 fix
This commit is contained in:
parent
5787dbbfcf
commit
54bc8ead03
|
@ -1,10 +1,12 @@
|
||||||
#! /usr/bin/make -f
|
#! /usr/bin/make -f
|
||||||
|
|
||||||
# Awesome Copycats switch theme script
|
# Awesome Copycats switch theme script
|
||||||
# It also updates to latest commit.
|
#
|
||||||
|
# It also updates to latest commit and
|
||||||
|
# backups previous rc.lua.
|
||||||
|
#
|
||||||
# Dependencies: make, git
|
# Dependencies: make, git
|
||||||
|
|
||||||
|
|
||||||
DESTDIR=~/.config/awesome
|
DESTDIR=~/.config/awesome
|
||||||
PROJECT=copycat-killer/awesome-copycats
|
PROJECT=copycat-killer/awesome-copycats
|
||||||
|
|
||||||
|
@ -14,9 +16,12 @@ define swap_dialog
|
||||||
echo "see https://github.com/$(PROJECT)" ; \
|
echo "see https://github.com/$(PROJECT)" ; \
|
||||||
echo ; $(themes) | cat -n ; echo ; \
|
echo ; $(themes) | cat -n ; echo ; \
|
||||||
typeset -i num; \
|
typeset -i num; \
|
||||||
read -p "Switch to theme: " num ; \
|
:
|
||||||
|
:x
|
||||||
|
:x
|
||||||
if [ ! -z $${num} -a $${num} -ge 1 -a -le $${n_themes} ] ; then \
|
if [ ! -z $${num} -a $${num} -ge 1 -a -le $${n_themes} ] ; then \
|
||||||
NEW_THEME=$$($(themes) | head -n$${num} | tail -n1 ) ; \
|
NEW_THEME=$$($(themes) | head -n$${num} | tail -n1 ) ; \
|
||||||
|
mv --backup=numbered rc.lua rc.lua.previous ; \
|
||||||
cp $${NEW_THEME} rc.lua ; \
|
cp $${NEW_THEME} rc.lua ; \
|
||||||
echo "Theme is now $${NEW_THEME}"; \
|
echo "Theme is now $${NEW_THEME}"; \
|
||||||
else echo " !! Aborted. " ; fi
|
else echo " !! Aborted. " ; fi
|
||||||
|
|
Loading…
Reference in a new issue