Update
This commit is contained in:
31
dwm_status
31
dwm_status
@ -1,4 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Last update: 19-01-2020
|
||||
#
|
||||
|
||||
feh --bg-fill $HOME/.wall.jpg &
|
||||
xset s off -dpms&
|
||||
xset b off&
|
||||
@ -6,19 +11,19 @@ xset s off&
|
||||
xset -dpms&
|
||||
redshift -l 52.2327:18.3036 -t 6500:3200&
|
||||
nm-applet --sm-disable&
|
||||
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; new-window -n HTOP 'htop'\; new-window -n MUSIC 'cmus'"&
|
||||
firefox&
|
||||
thunderbird&
|
||||
keepassxc&
|
||||
#"/mnt/mega/Systems/Linux/apps/KeePass.AppImage"&
|
||||
megasync&
|
||||
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window -h \; split-window 'htop'\; new-window -n IRC 'irssi'\; new-window -n MUSIC 'cmus'"&
|
||||
firefox-bin&
|
||||
thunderbird-bin&
|
||||
sudo keepassxc&
|
||||
#megasync&
|
||||
dunst -config&
|
||||
/usr/bin/ibus-daemon -d&
|
||||
transmission-daemon&
|
||||
teamviewer&
|
||||
#teamviewer&
|
||||
#pl&
|
||||
#(sleep 30 && getforecast)&
|
||||
|
||||
(sleep 30 && getforecast)&
|
||||
sudo /usr/bin/rdate -s -l ntp.task.gda.pl && sudo /sbin/hwclock --systohc
|
||||
/opt/MEGAcmd/mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
||||
|
||||
print_torrent(){
|
||||
transmission-remote -l | grep % |
|
||||
@ -39,9 +44,9 @@ print_torrent(){
|
||||
}
|
||||
|
||||
testweather() {
|
||||
[ "$(stat -c %y "/home/yorune/.weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && ping -q -c 1 1.1.1.1 >/dev/null && curl -s "wttr.in/$location" > "/home/yorune/.weatherreport" && notify-send "🌞 Weather" "New weather forecast for today."
|
||||
[ "$(stat -c %y "/home/yorune/.weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && curl -s "wttr.in/$location" > "/home/yorune/.weatherreport" && notify-send " Weather" "New weather forecast for today."
|
||||
|
||||
printf "%s " "$(sed '16q;d' "/home/yorune/.weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')" && sed '13q;d' "/home/yorune/.weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print "❄️",$1 "°","",$2 "°"}'
|
||||
printf "%s " "$(sed '16q;d' "/home/yorune/.weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/ /g" | tr -d '\n')" && sed '13q;d' "/home/yorune/.weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ",$1 "°","",$2 "°"}'
|
||||
|
||||
}
|
||||
|
||||
@ -152,7 +157,7 @@ esac
|
||||
|
||||
while true
|
||||
do
|
||||
#xsetroot -name "$(print_torrent)$(print_temp) | $(usageData) | $(testweather) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||
xsetroot -name "$(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||
xsetroot -name "$(print_temp) | $(usageData) | $(print_wifi) | $(testweather) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||
#xsetroot -name "$(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||
sleep 2
|
||||
done
|
||||
|
Reference in New Issue
Block a user