pbincli etc.
This commit is contained in:
parent
746c885893
commit
bc35b57da4
|
|
@ -1,9 +0,0 @@
|
||||||
--flag-switches-begin
|
|
||||||
--enable-smooth-scrolling
|
|
||||||
--disable-font-subpixel-positioning
|
|
||||||
--ignore-gpu-blacklist
|
|
||||||
-–enable-zero-copy
|
|
||||||
-–enable-gpu-rasterization
|
|
||||||
--enable-native-gpu-memory-buffers
|
|
||||||
--high-dpi-support=1
|
|
||||||
--flag-switches-end
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
server=https://privatebin.hartzan.com
|
||||||
|
|
@ -223,8 +223,8 @@ label-background = ${colors.color9}
|
||||||
|
|
||||||
[module/temperature]
|
[module/temperature]
|
||||||
type = internal/temperature
|
type = internal/temperature
|
||||||
thermal-zone = 11
|
thermal-zone = 7
|
||||||
#hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon6/temp1_input
|
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon7/temp1_input
|
||||||
warn-temperature = 65
|
warn-temperature = 65
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
format-underline = ${colors.foreground}
|
format-underline = ${colors.foreground}
|
||||||
|
|
@ -249,7 +249,7 @@ format-prefix = " "
|
||||||
format-prefix-foreground = ${colors.color0}
|
format-prefix-foreground = ${colors.color0}
|
||||||
format-foreground = ${colors.color0}
|
format-foreground = ${colors.color0}
|
||||||
format-background = ${colors.color9}
|
format-background = ${colors.color9}
|
||||||
click-left = st -e yay --noconfirm -Syu
|
click-left = kitty -e yay --noconfirm -Syu
|
||||||
click-right = "~/.config/polybar/scripts/arch/arch-updates.sh -c&"
|
click-right = "~/.config/polybar/scripts/arch/arch-updates.sh -c&"
|
||||||
click-middle = "~/.config/polybar/scripts/arch/arch-updates.sh -n"
|
click-middle = "~/.config/polybar/scripts/arch/arch-updates.sh -n"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ killall -q polybar
|
||||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
# Launch arch_updates script
|
# Launch arch_updates script
|
||||||
~/.config/Scripts/arch-updates.sh & echo $! > ~/.config/Scripts/arch_updates.pid
|
~/.config/polybar/scripts/arch/arch-updates.sh & echo $! > ~/.config/polybar/scripts/arch/arch_updates.pid
|
||||||
|
|
||||||
# Launch
|
# Launch
|
||||||
polybar top &
|
polybar top &
|
||||||
|
|
|
||||||
|
|
@ -1,54 +1,54 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
path=${HOME}/.config/polybar/scripts/arch/
|
archpath=/home/hate/.config/polybar/scripts/arch/
|
||||||
#trap 'exit' SIGINT
|
#trap 'exit' SIGINT
|
||||||
|
|
||||||
function main_loop {
|
function main_loop {
|
||||||
while true; do
|
while true; do
|
||||||
echo '' > ${path}status
|
echo '' > ${archpath}status
|
||||||
check_for_updates
|
check_for_updates
|
||||||
sleep 600
|
sleep 600
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function status {
|
function status {
|
||||||
echo $$ > ${path}polybar_updates.pid
|
echo $$ > ${archpath}polybar_updates.pid
|
||||||
while true; do
|
while true; do
|
||||||
cat ${path}status
|
cat ${archpath}status
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_for_updates {
|
function check_for_updates {
|
||||||
checkupdates | nl -w2 -s '. ' >| ${path}repo.pkgs
|
checkupdates | nl -w2 -s '. ' >| ${archpath}repo.pkgs
|
||||||
yay -Qu --aur | nl -w2 -s '. ' >| ${path}aur.pkgs
|
yay -Qu --aur | nl -w2 -s '. ' >| ${archpath}aur.pkgs
|
||||||
updates=$(cat ${path}*.pkgs | wc -l)
|
updates=$(cat ${archpath}*.pkgs | wc -l)
|
||||||
|
|
||||||
echo "0" >| ${path}status
|
echo "0" >| ${archpath}status
|
||||||
[ $updates -gt 0 ] && echo "%{F#e60053}$updates" >| ${path}status
|
[ $updates -gt 0 ] && echo "%{F#e60053}$updates" >| ${archpath}status
|
||||||
|
|
||||||
>| ${path}packages
|
>| ${archpath}packages
|
||||||
[ -s ${path}repo.pkgs ] && cat ${path}repo.pkgs >> ${path}packages
|
[ -s ${archpath}repo.pkgs ] && cat ${archpath}repo.pkgs >> ${archpath}packages
|
||||||
[ -s ${path}repo.pkgs ] && [ -s ${path}aur.pkgs ] && printf "\n" >> ${path}packages
|
[ -s ${archpath}repo.pkgs ] && [ -s ${archpath}aur.pkgs ] && printf "\n" >> ${archpath}packages
|
||||||
[ -s ${path}aur.pkgs ] && sed '1iAUR Updates' ${path}aur.pkgs >> ${path}packages
|
[ -s ${archpath}aur.pkgs ] && sed '1iAUR Updates' ${archpath}aur.pkgs >> ${archpath}packages
|
||||||
}
|
}
|
||||||
|
|
||||||
function notify {
|
function notify {
|
||||||
if [[ $(cat ${path}status) -eq 0 ]]
|
if [[ $(${archpath}status) -eq 0 ]]
|
||||||
then
|
then
|
||||||
twmnc "Updates 0"
|
notify-send 0
|
||||||
else
|
else
|
||||||
twmnc Updates "$(cat ${path}packages)"
|
notify-send "$(cat ${archpath}packages)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade {
|
function upgrade {
|
||||||
kitty -e yay --noconfirm -Syu
|
urxvt -e yay --noconfirm -Syu
|
||||||
echo "0" > ${path}status
|
echo "0" > ${archpath}status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[[ $# -eq 0 ]] && main_loop
|
[[ $# -eq 0 ]] && main_loop
|
||||||
[[ $1 == "-s" ]] && status
|
[[ $1 == "-s" ]] && status
|
||||||
[[ $1 == "-c" ]] && echo '' > ${path}status && check_for_updates
|
[[ $1 == "-c" ]] && echo '' > ${archpath}status && check_for_updates
|
||||||
[[ $1 == "-n" ]] && notify
|
[[ $1 == "-n" ]] && notify
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,6 @@ terminus-font
|
||||||
texinfo
|
texinfo
|
||||||
the_silver_searcher
|
the_silver_searcher
|
||||||
tk
|
tk
|
||||||
tlpui-git
|
|
||||||
tmux
|
tmux
|
||||||
ttf-liberation
|
ttf-liberation
|
||||||
udiskie
|
udiskie
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,14 @@ networkmanager-dispatcher-chrony
|
||||||
networkmanager-dmenu-git
|
networkmanager-dmenu-git
|
||||||
otf-powerline-symbols-git
|
otf-powerline-symbols-git
|
||||||
pacback
|
pacback
|
||||||
|
pbincli
|
||||||
picom-tryone-git
|
picom-tryone-git
|
||||||
polybar-git
|
polybar-git
|
||||||
powerline-fonts-git
|
powerline-fonts-git
|
||||||
python-ueberzug
|
python-ueberzug
|
||||||
ranger-git
|
ranger-git
|
||||||
redshift-minimal
|
redshift-minimal
|
||||||
|
riot-desktop-git
|
||||||
tlp-git
|
tlp-git
|
||||||
tlp-rdw-git
|
tlp-rdw-git
|
||||||
ttf-weather-icons
|
ttf-weather-icons
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue