Add some required packages for gorice to upgrade script, update gorice polybar module

This commit is contained in:
natemaia 2017-10-30 04:55:38 -07:00
parent 286f2cc7eb
commit bb55aa342f
2 changed files with 11 additions and 7 deletions

View File

@ -7,13 +7,14 @@
;;;;;;;;;;;;;;;;;;;;;;;;
[module/config]
type = custom/script
exec = echo ""
format-prefix = " "
interval = 5
exec = grep "current" $HOME/.gorice/templates/i3/data.json | cut -d '"' -f22 | cut -d . -f1 | cut -d / -f2
label = %output%
label-padding = 2
format-padding = 2
format = <label>
click-left = gorice dump i3 ~/.gorice/output.yaml.template; config_ui &
click-right = termite "--exec=$HOME/go/bin/gorice edit i3/current" &
click-right = termite "--exec=gorice edit i3/current" &

View File

@ -41,7 +41,7 @@ sleep 2
sudo pacman-key --init
sudo pacman-key --populate archlinux
for key in "${KEYS[@]}"; do
if ! sudo pacman-key --list-keys | grep $key; then
if ! sudo pacman-key --list-keys | grep $key > /dev/null 2>&1; then
gpg --receive-keys $key
sudo pacman-key -r $key
fi
@ -49,12 +49,12 @@ done
# add $REPO to pacman.conf
if ! grep "archlabs_repo" /etc/pacman.conf; then
echo "$REPO" | sudo tee -a /etc/pacman.conf
if ! grep "archlabs_repo" /etc/pacman.conf > /dev/null 2>&1; then
echo "$REPO" | sudo tee -a /etc/pacman.conf > /dev/null 2>&1
else # if entries exist remove them
sudo sed -i '/archlabs_repo/d' /etc/pacman.conf
echo "$REPO" | sudo tee -a /etc/pacman.conf
echo "$REPO" | sudo tee -a /etc/pacman.conf > /dev/null 2>&1
fi
@ -98,6 +98,9 @@ echo "##########################################################################
############################################################################################"
sleep 2
# install packages needed for configs
sudo pacman -S clutter-gtk libgee gdk-pixbuf2 pango python-yaml --needed --noconfirm
# cleanup ~/.config
rm -rf "$HOME"/.config/{bspwm,dunst,i3,obmenu-generator,qt5ct,Thunar,conky,geany,neofetch,polybar,termite,xfce4,openbox}