Updated
Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
parent
ecc04cec5c
commit
3199f37f03
@ -4,6 +4,7 @@ https://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=Use
|
||||
https://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=User&u=portalLM&media_type=all&limit=-1&format=Mrss "~Portal lm.pl - Facebook"
|
||||
https://nitter.net/MZ_GOV_PL/rss "~MZ_GOV_PL - Twitter"
|
||||
http://www.epoznan.pl/rss.php "~Epoznan - Website"
|
||||
http://rss.slashdot.org/Slashdot/slashdotMain "SlashDot"
|
||||
=====================SOCIAL=================================
|
||||
https://nitter.net/mjermakow/rss "~Maciej Jermakow - Twitter"
|
||||
============================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
print_weather() {
|
||||
[ "$(stat -c %y "/home/yorune/.config/weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && curl -s "wttr.in/$location" > "/home/yorune/.config/weatherreport"
|
||||
print_weather() {
|
||||
[ "$(stat -c %y "/home/yorune/.config/weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && curl -s "wttr.in/$location" > "/home/yorune/.config/weatherreport"
|
||||
|
||||
printf "%s " "$(sed '16q;d' "/home/yorune/.config/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')" && sed '13q;d' "/home/yorune/.config/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄",$1 "°","☀",$2 "°"}'
|
||||
}
|
||||
@ -12,7 +12,7 @@ vol=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
printf "%s%%\\n" "🔊 $vol"
|
||||
}
|
||||
|
||||
print_wifi(){
|
||||
print_wifi(){
|
||||
[ "$(stat -c %y "/home/yorune/.config/vpn" 3>/dev/null | egrep -o '[0-9]+\-[0-9]+\-[0-9]+ [0-9]+')" != "$(date '+%Y-%m-%d %H')" ] && sudo /root/.local/bin/protonvpn status | grep -i Status | awk {'print $2'} > "/home/yorune/.config/vpn"
|
||||
|
||||
|
||||
@ -63,12 +63,12 @@ print_mail(){
|
||||
}
|
||||
|
||||
print_cpu() {
|
||||
cpuUse=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}')
|
||||
cpuUse=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}')
|
||||
echo -e "💻 $cpuUse"
|
||||
}
|
||||
|
||||
while true
|
||||
do
|
||||
xsetroot -name "$(print_temp) $(print_mail) $(print_cpu) $(print_mem) $(print_weather) $(print_wifi) $(print_battery) $(print_volume) $(print_date)"
|
||||
xsetroot -name "$(print_temp) $(print_mail) $(print_cpu) $(print_mem) $(print_wifi) $(print_battery) $(print_volume) $(print_date)"
|
||||
sleep 5
|
||||
done
|
||||
|
@ -12,14 +12,14 @@ then
|
||||
sudo mkdir -p /mnt/gentoo/sys
|
||||
sudo mkdir -p /mnt/gentoo/mnt/backup/ccache
|
||||
sudo cp -r /mnt/backup/ccache/ccache.conf /mnt/gentoo/mnt/backup/ccache
|
||||
sudo rsync -az -H /etc/portage/ /mnt/gentoo/gentoo/etc/portage/
|
||||
sudo rsync -az -H /usr/portage/ /mnt/gentoo/gentoo/usr/portage/
|
||||
sudo rsync -az -H /usr/repos/ /mnt/gentoo/gentoo/usr/repos/
|
||||
sudo rsync --progress -az -H /etc/portage/ /mnt/gentoo/gentoo/etc/portage/
|
||||
sudo rsync --progress -az -H /usr/portage/ /mnt/gentoo/gentoo/usr/portage/
|
||||
sudo rsync --progress -az -H /usr/repos/ /mnt/gentoo/gentoo/usr/repos/
|
||||
sudo mount --types proc /proc /mnt/gentoo/gentoo/proc
|
||||
sudo mount --rbind /sys /mnt/gentoo/gentoo/sys
|
||||
sudo mount --make-rslave /mnt/gentoo/gentoo/sys
|
||||
sudo mount --rbind /dev /mnt/gentoo/gentoo/dev
|
||||
sudo mount --make-rslave /mnt/gentoo/gentoo/dev
|
||||
sudo mount --make-rslave /mnt/gentoo/gentoo/dev
|
||||
sleep 5
|
||||
sudo chroot /mnt/gentoo/gentoo /bin/bash
|
||||
# echo "Europe/Warsaw" > /etc/timezone
|
||||
|
@ -1,2 +1,8 @@
|
||||
#!/bin/bash
|
||||
sudo eix-repos-sync; sudo emerge-webrsync; sudo emerge --sync; sudo eix-sync -a; sudo eix-update; sudo emaint sync -a; sudo emerge -auDN @world
|
||||
sudo eix-repos-sync
|
||||
sudo eix-sync -a
|
||||
sudo eix-update
|
||||
#sudo emerge-webrsync
|
||||
#sudo emerge --sync
|
||||
#sudo emaint sync -a
|
||||
sudo emerge -auDN @world
|
||||
|
Loading…
Reference in New Issue
Block a user