aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zshrc7
-rwxr-xr-xtmux/date.sh6
2 files changed, 8 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index 65ba945..df4267e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -29,7 +29,7 @@ alias ll="exa -abghHliSmxF --color-scale --git -@"
# alias ll="\ls -lZspihbFA --color=never --full-time --author | colcol | column -t"
alias lss="exa -Sls=size"
# alias lss="ls -sASh"
-alias ee="nautilus ."
+alias ee="thunar ."
alias updaterc="cp ~/scripts/.zshrc ~/.zshrc"
alias fixvimrc='cp ~/scripts/.vimrc ~/.vimrc'
alias fixtmuxrc='cp ~/scripts/.tmux.conf ~/.tmux.conf'
@@ -145,7 +145,7 @@ alias wincmd="/mnt/c/Windows/System32/runas.exe /profile /user:administrator cmd
alias vms="ssh 185.126.202.69 -l ubuntu -p 1022"
alias xonshrc="vim ~/scripts/.xonshrc"
alias fixxonshrc="cp ~/scripts/.xonshrc ~/.xonshrc"
-alias sshphone="ssh 192.168.1.110 -l u0_a263 -p 8022"
+alias sshphone="ssh 192.168.1.110 -l u0_a601 -p 8022"
alias moshvpn="mosh rooot@192.99.102.52 --ssh='ssh -p 1022'"
alias moshvps="mosh ubuntu@terminaldweller.com --ssh='ssh -p 1022'"
alias proxychainsrc="vim ~/scripts/.proxychains/proxychains.conf"
@@ -173,9 +173,10 @@ alias gdbinit="vim ~/scripts/.gdbinit"
alias fixgdbinit="cp ~/scripts/.gdbinit ~/.gdbinit"
alias d="docker"
alias dc="docker-compose"
-alias xbps-file="xbps-query -Ro"
alias zh_freebsd="zssh dev@192.168.90.15"
alias zh_linux="zssh dev@192.168.90.17"
+alias youtube-dl="proxychains4 -f /home/devi/proxies/ca/proxychains.conf youtube-dl"
+alias campv="proxychains4 -f /home/devi/proxies/ca/proxychains.conf mpv"
#autosuggest
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold"
diff --git a/tmux/date.sh b/tmux/date.sh
index c272d07..057108c 100755
--- a/tmux/date.sh
+++ b/tmux/date.sh
@@ -5,6 +5,7 @@ SEPARATOR_LEFT_BOLD=""
SEPARATOR_LEFT_THIN=""
RESULT=$(date +"%a %D %H:%M")
+PROXY="proxychains4 -f /home/devi/proxies/ca/proxychains.conf"
DAY="#[fg=colour255 bg=colour31]"$(echo $RESULT | gawk '{print $1}')
DATE="#[fg=colour255 bg=colour31]"$(echo $RESULT | gawk '{print $2}')
@@ -14,7 +15,8 @@ UTC_TIME="#[fg=colour255 bg=colour25]"$(echo GMT: $UTC_TIME_RESULT)
# JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}')
JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}')
OPENWEATHERMAP_TOKEN=$(cat /home/devi/scripts/tmux/openweathermap.json|jq -r ".token")
-WEATHER_INFO=$(sleep 120 && curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=$OPENWEATHERMAP_TOKEN&units=metric"|jq ".main.temp")
-WEATHER="#[fg=colour255 bg=colour32]"$(echo $WEATHER_INFO" C")
+# WEATHER_INFO=$(sleep 120 && torsocks curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=$OPENWEATHERMAP_TOKEN&units=metric"|jq ".main.temp")
+WEATHER_INFO=$(curl 'wttr.in/tehran?T&format=%t/%f')
+WEATHER="#[fg=colour255 bg=colour32]"$(echo $WEATHER_INFO)
echo "#[fg=colour32 bg=colour16]$SEPARATOR_LEFT_BOLD$WEATHER#[fg=colour29 bg=colour32]$SEPARATOR_LEFT_BOLD$JDATE #[fg=colour31 bg=colour29]$SEPARATOR_LEFT_BOLD$DAY $SEPARATOR_LEFT_THIN $DATE $SEPARATOR_LEFT_THIN $TIME #[fg=colour25 bg=colour31]$SEPARATOR_LEFT_BOLD$UTC_TIME "