Update .config/packages/arch-packages.fish
Update .config/polybar/launch.sh Update tags
This commit is contained in:
parent
fea7fc04f5
commit
cf917a845b
3 changed files with 51 additions and 44 deletions
|
@ -28,11 +28,11 @@ if ! test "{{ .chezmoi.hostname }}" = "$file"
|
||||||
|
|
||||||
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
{{ if eq .chezmoi.hostname "archgirlie" -}}
|
||||||
{{ range .packages.arch.archgirlie -}}
|
{{ range .packages.arch.archgirlie -}}
|
||||||
yay -S --needed - <{{ . }}
|
yay -S --needed {{ . }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ else if eq .chezmoi.hostname "archbaby" -}}
|
{{ else if eq .chezmoi.hostname "archbaby" -}}
|
||||||
{{ range .packages.arch.archbaby -}}
|
{{ range .packages.arch.archbaby -}}
|
||||||
yay -S --needed - <{{ . }}
|
yay -S --needed {{ . }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,76 +1,83 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
dir="$HOME/.config/polybar"
|
dir="$HOME/.config/polybar"
|
||||||
themes=(`ls --hide="launch.sh" $dir`)
|
# themes=(`ls --hide="launch.sh" $dir`)
|
||||||
|
|
||||||
launch_bar() {
|
launch_bar()
|
||||||
# Terminate already running bar instances
|
{
|
||||||
killall -q polybar
|
# Terminate already running bar instances
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
# Wait until the processes have been shut down
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
# Launch the bar
|
# Launch the bar
|
||||||
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
|
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
|
||||||
polybar -q top -c "$dir/$style/config.ini" &
|
polybar -q top -c "$dir/$style/config.ini" &
|
||||||
polybar -q bottom -c "$dir/$style/config.ini" &
|
polybar -q bottom -c "$dir/$style/config.ini" &
|
||||||
elif [[ "$style" == "pwidgets" ]]; then
|
elif [[ "$style" == "pwidgets" ]]; then
|
||||||
bash "$dir"/pwidgets/launch.sh --main
|
bash "$dir"/pwidgets/launch.sh --main
|
||||||
else
|
else
|
||||||
polybar -q main -c "$dir/$style/config.ini" &
|
if type "xrandr" &>/dev/null; then
|
||||||
fi
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
MONITOR=$m polybar -q main -c "$dir/$style/config.ini" &
|
||||||
|
done
|
||||||
|
else
|
||||||
|
polybar -q main -c "$dir/$style/config.ini" &
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$1" == "--material" ]]; then
|
if [[ "$1" == "--material" ]]; then
|
||||||
style="material"
|
style="material"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--shades" ]]; then
|
elif [[ "$1" == "--shades" ]]; then
|
||||||
style="shades"
|
style="shades"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--hack" ]]; then
|
elif [[ "$1" == "--hack" ]]; then
|
||||||
style="hack"
|
style="hack"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--docky" ]]; then
|
elif [[ "$1" == "--docky" ]]; then
|
||||||
style="docky"
|
style="docky"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--cuts" ]]; then
|
elif [[ "$1" == "--cuts" ]]; then
|
||||||
style="cuts"
|
style="cuts"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--shapes" ]]; then
|
elif [[ "$1" == "--shapes" ]]; then
|
||||||
style="shapes"
|
style="shapes"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--grayblocks" ]]; then
|
elif [[ "$1" == "--grayblocks" ]]; then
|
||||||
style="grayblocks"
|
style="grayblocks"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--blocks" ]]; then
|
elif [[ "$1" == "--blocks" ]]; then
|
||||||
style="blocks"
|
style="blocks"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--colorblocks" ]]; then
|
elif [[ "$1" == "--colorblocks" ]]; then
|
||||||
style="colorblocks"
|
style="colorblocks"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--forest" ]]; then
|
elif [[ "$1" == "--forest" ]]; then
|
||||||
style="forest"
|
style="forest"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--pwidgets" ]]; then
|
elif [[ "$1" == "--pwidgets" ]]; then
|
||||||
style="pwidgets"
|
style="pwidgets"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
elif [[ "$1" == "--panels" ]]; then
|
elif [[ "$1" == "--panels" ]]; then
|
||||||
style="panels"
|
style="panels"
|
||||||
launch_bar
|
launch_bar
|
||||||
|
|
||||||
else
|
else
|
||||||
cat <<- EOF
|
cat <<-EOF
|
||||||
Usage : launch.sh --theme
|
Usage : launch.sh --theme
|
||||||
|
|
||||||
Available Themes :
|
Available Themes :
|
||||||
|
|
4
tags
4
tags
|
@ -1469,7 +1469,7 @@ EOF dot_config/polybar/docky/scripts/executable_colors-dark.sh /^ cat > $RFILE <
|
||||||
EOF dot_config/polybar/docky/scripts/executable_colors-light.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/docky/scripts/executable_colors-light.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
EOF dot_config/polybar/docky/scripts/executable_pywal.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/docky/scripts/executable_pywal.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
EOF dot_config/polybar/docky/scripts/executable_random.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/docky/scripts/executable_random.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
EOF dot_config/polybar/executable_launch.sh /^ cat <<- EOF$/;" h
|
EOF dot_config/polybar/executable_launch.sh /^ cat <<-EOF$/;" h
|
||||||
EOF dot_config/polybar/forest/scripts/executable_styles.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/forest/scripts/executable_styles.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
EOF dot_config/polybar/grayblocks/scripts/executable_colors-dark.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/grayblocks/scripts/executable_colors-dark.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
EOF dot_config/polybar/grayblocks/scripts/executable_colors-light.sh /^ cat > $RFILE <<- EOF$/;" h
|
EOF dot_config/polybar/grayblocks/scripts/executable_colors-light.sh /^ cat > $RFILE <<- EOF$/;" h
|
||||||
|
@ -6506,7 +6506,7 @@ label dot_config/polybar/shapes/modules.ini /^label = %time%$/;" k section:modul
|
||||||
label dot_config/polybar/shapes/user_modules.ini /^label = "%output% "$/;" k section:module/updates
|
label dot_config/polybar/shapes/user_modules.ini /^label = "%output% "$/;" k section:module/updates
|
||||||
language dot_config/copyq/copyq.conf /^language=en$/;" k section:Options
|
language dot_config/copyq/copyq.conf /^language=en$/;" k section:Options
|
||||||
laravel/installer dot_config/composer/composer.json /^ "laravel\/installer": "^5.6"$/;" s object:require
|
laravel/installer dot_config/composer/composer.json /^ "laravel\/installer": "^5.6"$/;" s object:require
|
||||||
launch_bar dot_config/polybar/executable_launch.sh /^launch_bar() {$/;" f
|
launch_bar dot_config/polybar/executable_launch.sh /^launch_bar()$/;" f
|
||||||
launcher dot_config/polybar/panels/scripts/executable_launcher.sh /^launcher() {$/;" f
|
launcher dot_config/polybar/panels/scripts/executable_launcher.sh /^launcher() {$/;" f
|
||||||
layer1 dot_config/awesome/themes/catppuccin/titlebar/close.svg /^<svg version="1.1" xmlns="http:\/\/www.w3.org\/2000\/svg" xmlns:xlink="http:\/\/www.w3.org\/1999/;" i
|
layer1 dot_config/awesome/themes/catppuccin/titlebar/close.svg /^<svg version="1.1" xmlns="http:\/\/www.w3.org\/2000\/svg" xmlns:xlink="http:\/\/www.w3.org\/1999/;" i
|
||||||
layer1 dot_config/awesome/themes/catppuccin/titlebar/close_hover.svg /^<svg version="1.1" xmlns="http:\/\/www.w3.org\/2000\/svg" xmlns:xlink="http:\/\/www.w3.org\/1999/;" i
|
layer1 dot_config/awesome/themes/catppuccin/titlebar/close_hover.svg /^<svg version="1.1" xmlns="http:\/\/www.w3.org\/2000\/svg" xmlns:xlink="http:\/\/www.w3.org\/1999/;" i
|
||||||
|
|
Loading…
Reference in a new issue