Updates to polybar (adding bluetooth) and creverting to older sys updates format and added cbeams to clear command

This commit is contained in:
Vlad Doster 2020-03-05 16:26:35 -05:00
parent 22f331b8ff
commit 495c837156
4 changed files with 21 additions and 7 deletions

View File

@ -10,3 +10,6 @@ image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
[Added Associations]
text/plain=code-oss.desktop;

View File

@ -39,16 +39,16 @@ padding-right = 0
module-margin-left = 1
module-margin-right = 1
font-0 = "Sauce Code Pro:size=9;1"
font-1 = "Sauce Code Pro:size=8;1"
font-2 = "Sauce Code Pro:scale=10:style=Regular;2"
font-3 = "Sauce Code Pro:size=9;1"
font-0 = "fixed:pixelsize=9;1"
font-1 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1"
font-2 = "Font Awesome 5 Free:style=Solid:pixelsize=8;2"
font-3 = "Font Awesome 5 Brands:pixelsize=8;1"
wm-restack = i3
modules-left = i3
modules-center = xwindow
modules-right = sys_updates sys_temp cpu memory volume wifi ethernet battery date
modules-right = sys_updates bluetooth sys_temp cpu memory volume wifi ethernet battery date
tray-position = right
tray-padding = 0
@ -57,7 +57,7 @@ tray-padding = 0
exec = ~/.local/bin/polybar_scripts/aur_updates
format = <label>
interval = 1000
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
label = %{A1:$TERMINAL -e sudo pacman -Syyu --overwrite '*' >/dev/null 2>&1 &:}%output%%{A}
label-overline=${colors.red}
label-underline=${colors.red}
type = custom/script
@ -90,6 +90,13 @@ ramp-capacity-0 = %{u#ff0000}%{+u}
ramp-capacity-1 = %{u#ffea00}%{+u}
ramp-capacity-2 = %{u#20c723}%{+u}
[module/bluetooth]
type = custom/script
exec = ~/.local/bin/polybar_scripts/bluetooth.sh
interval = 2
click-left = exec blueberry
click-right = exec ~/.local/bin/polybar_scripts/toggle_bluetooth.sh
[module/cpu]
format = <label>
format-prefix-foreground = ${colors.gray}

View File

@ -61,5 +61,7 @@ ranger() {
fi
}
alias clear='[ $[$RANDOM % 10] = 0 ] && timeout 6 cbeams -o; clear || clear'
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null

View File

@ -1,6 +1,8 @@
#!/usr/bin/env sh
updates=$(yay -Qum | wc -l)
if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
updates=0
fi
if [ "$updates" -eq 1 ]; then
echo "$updates update"