Polybar with real transparency. New Rofi theme.
This commit is contained in:
parent
111adde970
commit
fce295ab57
19 changed files with 325 additions and 5656 deletions
52
setup.sh
52
setup.sh
|
@ -1,21 +1,46 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
normal=$(tput sgr0) # normal text
|
||||
#normal=$'\e[0m' # (works better sometimes)
|
||||
bold=$(tput bold) # make colors bold/bright
|
||||
red="$bold$(tput setaf 1)" # bright red text
|
||||
green=$(tput setaf 2) # dim green text
|
||||
fawn=$(tput setaf 3); beige="$fawn" # dark yellow text
|
||||
yellow="$bold$fawn" # bright yellow text
|
||||
darkblue=$(tput setaf 4) # dim blue text
|
||||
blue="$bold$darkblue" # bright blue text
|
||||
purple=$(tput setaf 5); magenta="$purple" # magenta text
|
||||
pink="$bold$purple" # bright magenta text
|
||||
darkcyan=$(tput setaf 6) # dim cyan text
|
||||
cyan="$bold$darkcyan" # bright cyan text
|
||||
gray=$(tput setaf 7) # dim white text
|
||||
darkgray="$bold"$(tput setaf 0) # bold black = dark gray text
|
||||
white="$bold$gray" # bright white text
|
||||
|
||||
pprint() {
|
||||
icon=" "
|
||||
echo "${cyan}${icon} ${1}${normal}"
|
||||
}
|
||||
|
||||
service() {
|
||||
pprint "Activating service $1..."
|
||||
[ ! -L /var/service/$1 ] && sudo ln -s /etc/sv/$1/ /var/service/
|
||||
}
|
||||
|
||||
pull() {
|
||||
cd "$1"
|
||||
echo "Updating ${1##*/}"
|
||||
pprint "Updating ${1##*/}"
|
||||
git pull
|
||||
}
|
||||
|
||||
pkgs() {
|
||||
pprint "Installing packages from group $1..."
|
||||
list=$(yq -r .$1'| join(" ")' packages.yaml)
|
||||
sudo xbps-install -S $list
|
||||
}
|
||||
|
||||
_pkgs() {
|
||||
pprint "Installing custom packages from group $1..."
|
||||
node=$1
|
||||
packagedir=$2
|
||||
packagelnk=$3
|
||||
|
@ -32,10 +57,16 @@ _pkgs() {
|
|||
done
|
||||
}
|
||||
|
||||
vimplug() {
|
||||
[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" ] &&
|
||||
echo "${CYAN}Installing vim plug..." &&
|
||||
curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" --create-dirs "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||
}
|
||||
|
||||
terminal() {
|
||||
pkgs terminal
|
||||
_pkgs "_terminal" "$HOME/bin/src" "$HOME/bin"
|
||||
[ ! -f "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" ] && curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim" --create-dirs "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||
vimplug
|
||||
stow terminal
|
||||
}
|
||||
|
||||
|
@ -80,7 +111,9 @@ boot() {
|
|||
}
|
||||
|
||||
game() {
|
||||
[ ! -f "/etc/xbps.d/10-repository-multilib.conf" ] && [ ! -f "/etc/xbps.d/10-repository-multilib-nonfree.conf" ] && sudo xbps-install -Syv void-repo-multilib void-repo-multilib-nonfree
|
||||
[ ! -f "/etc/xbps.d/10-repository-multilib.conf" ] && [ ! -f "/etc/xbps.d/10-repository-multilib-nonfree.conf" ] &&
|
||||
pprint "Activating multilib repository..." &&
|
||||
sudo xbps-install -Syv void-repo-multilib void-repo-multilib-nonfree
|
||||
pkgs game
|
||||
}
|
||||
|
||||
|
@ -92,20 +125,27 @@ devops() {
|
|||
pkgs devops
|
||||
}
|
||||
|
||||
kde() {
|
||||
pkgs kde
|
||||
}
|
||||
|
||||
voidrepo() {
|
||||
[ ! -f "/etc/xbps.d/my-local-repo.conf" ] && [ -d "$HOME/.void-packages"] &&
|
||||
echo "repository=$HOME/.void-packages/hostdir/binpkgs" | sudo tee "/etc/xbps.d/my-local-repo.conf" ||
|
||||
pprint "Add local repository to list of xbps remote hosts..." &&
|
||||
echo "repository=$HOME/.void-packages/hostdir/binpkgs/neptune" | sudo tee "/etc/xbps.d/my-local-repo.conf" ||
|
||||
pprint "Cloning custom void-packages repository..." &&
|
||||
git clone 'https://git.neptune.one/void/void-packages.git' "$HOME/.void-packages" && void
|
||||
}
|
||||
|
||||
printrecipes() {
|
||||
echo "
|
||||
Available recipes:
|
||||
base
|
||||
boot
|
||||
bspwm
|
||||
base
|
||||
devops
|
||||
game
|
||||
kde
|
||||
menu
|
||||
music
|
||||
qtapps
|
||||
|
@ -145,6 +185,8 @@ main() {
|
|||
boot;;
|
||||
voidrepo)
|
||||
voidrepo;;
|
||||
kde)
|
||||
kde;;
|
||||
*);;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue