From bd98ceb916d838f144f9e6c55bfbb11f33ed906b Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 13 Jun 2020 14:15:14 +0300 Subject: move weath to script --- dotfiles/.config/mimeapps.list | 12 +++++++----- dotfiles/.config/zsh/shortcuts | 1 - dotfiles/.local/bin/weath | 7 +++++++ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100755 dotfiles/.local/bin/weath diff --git a/dotfiles/.config/mimeapps.list b/dotfiles/.config/mimeapps.list index 2fa39ed..52b9972 100644 --- a/dotfiles/.config/mimeapps.list +++ b/dotfiles/.config/mimeapps.list @@ -2,12 +2,14 @@ application/rdf+xml=org.qutebrowser.qutebrowser.desktop; application/xhtml+xml=org.qutebrowser.qutebrowser.desktop; application/xml=org.qutebrowser.qutebrowser.desktop; -x-scheme-handler/discord-589393213723246592=discord-589393213723246592.desktop; -x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop; -x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop; -x-scheme-handler/qute=org.qutebrowser.qutebrowser.desktop; +application/pdf=org.pwmt.zathura-pdf-mupdf.desktop; image/gif=imv.desktop; -image/png=imv.desktop; image/jpeg=imv.desktop; +image/png=imv.desktop; text/html=org.qutebrowser.qutebrowser.desktop; text/xml=nvim.desktop; +x-scheme-handler/discord-589393213723246592=discord-589393213723246592.desktop; +x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop; +x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop; +x-scheme-handler/qute=org.qutebrowser.qutebrowser.desktop; + diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 336d7bc..4d827d3 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -8,7 +8,6 @@ alias ls="ls -hN --color=auto --group-directories-first" alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" alias units="units -H ''" alias trans="trans -v -pager='less -R'" -weath() { curl wttr.in/$1 ;} # Check the weather (give city or leave blank). corona() { curl -s https://corona-stats.online/$1 ;} # It's corona time wintitle() { printf "\033]2;%s\a" "$1";} diff --git a/dotfiles/.local/bin/weath b/dotfiles/.local/bin/weath new file mode 100755 index 0000000..d644bfb --- /dev/null +++ b/dotfiles/.local/bin/weath @@ -0,0 +1,7 @@ +#!/bin/sh + +location="Saint Petersburg" + +[ -n "$1" ] && location=$1 + +curl wttr.in/"$location" -- cgit v1.2.3