From 661c9f53dba1a2c2241fd3c4c3554ec1ae380b51 Mon Sep 17 00:00:00 2001 From: viviansamuel <77439769+viviaaan@users.noreply.github.com> Date: Sun, 18 Jul 2021 18:42:48 +0530 Subject: [PATCH 1/6] use just awk without grep (#974) --- .local/bin/dmenurecord | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index b1a034a..b83a7c5 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -31,7 +31,7 @@ screencast() { \ ffmpeg -y \ -f x11grab \ -framerate 60 \ - -s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \ + -s "$(xdpyinfo | awk '/dimensions/ {print $2;}')" \ -i "$DISPLAY" \ -f alsa -i default \ -r 30 \ @@ -43,7 +43,7 @@ screencast() { \ video() { ffmpeg \ -f x11grab \ - -s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \ + -s "$(xdpyinfo | awk '/dimensions/ {print $2;}')" \ -i "$DISPLAY" \ -c:v libx264 -qp 0 -r 30 \ "$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" & From 1df8bcd8feffde0361726c5b70d5deb0bc183f60 Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Wed, 21 Jul 2021 18:09:53 +0200 Subject: [PATCH 2/6] Minor performance improvements (#975) * Skip head and grep and do it all in sed * Replace echo and awk with a parameter expansion --- .local/bin/compiler | 2 +- .local/bin/queueandnotify | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index 39e149e..faf37c9 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -53,5 +53,5 @@ case "$ext" in scad) openscad -o "$base".stl "$file" ;; sent) setsid -f sent "$file" 2>/dev/null ;; tex) textype "$file" ;; - *) head -n1 "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; + *) sed -n '/^#!/s/^#!//p; q' "$file" | xargs -r -I % "$file" ;; esac diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify index a54b13e..54b2c2a 100755 --- a/.local/bin/queueandnotify +++ b/.local/bin/queueandnotify @@ -7,7 +7,7 @@ queuefile="${XDG_DATA_HOME:-$HOME/.local/share}/newsboat/queue" while read -r line; do [ -z "$line" ] && continue - url="$(echo "$line" | awk '{print $1}')" + url="${line%%[ ]*}" qndl "$url" "curl -LO" done < "$queuefile" From 2363526b67ea8b27fc999415d3ba67b2efa5dbfa Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Sat, 31 Jul 2021 08:36:45 -0300 Subject: [PATCH 3/6] Odysee to linkhandler (#977) --- .local/bin/linkhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 04934e5..fa74caf 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -10,7 +10,7 @@ [ -z "$1" ] && { "$BROWSER"; exit; } case "$1" in - *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*) + *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*) setsid -f mpv -quiet "$1" >/dev/null 2>&1 ;; *png|*jpg|*jpe|*jpeg|*gif) curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; From e424c8ba8ea59ed229466544b0b4a6a56e3ccecd Mon Sep 17 00:00:00 2001 From: Jonatan Schneevoigt Date: Wed, 4 Aug 2021 22:17:05 +0200 Subject: [PATCH 4/6] Change links to https (#978) --- .config/newsboat/urls | 2 +- .local/bin/getbib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 77497a9..d675d97 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -2,5 +2,5 @@ https://lukesmith.xyz/rss.xml https://notrelated.libsyn.com/rss https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (YouTube)" https://landchad.net/rss.xml -http://based.cooking/rss.xml +https://based.cooking/rss.xml https://www.archlinux.org/feeds/news/ "tech" diff --git a/.local/bin/getbib b/.local/bin/getbib index ed441c5..8675aae 100755 --- a/.local/bin/getbib +++ b/.local/bin/getbib @@ -11,4 +11,4 @@ else fi # Check crossref.org for the bib citation. -curl -s "http://api.crossref.org/works/$doi/transform/application/x-bibtex" -w "\\n" +curl -s "https://api.crossref.org/works/$doi/transform/application/x-bibtex" -w "\\n" From 418c00cbc459c456ab489d093561d3a3e127aa2b Mon Sep 17 00:00:00 2001 From: krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> Date: Sat, 7 Aug 2021 19:10:36 +0000 Subject: [PATCH 5/6] Update peertubetorrent due to changed URL format (#979) --- .local/bin/peertubetorrent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/peertubetorrent b/.local/bin/peertubetorrent index 56f2476..7a7a483 100755 --- a/.local/bin/peertubetorrent +++ b/.local/bin/peertubetorrent @@ -3,5 +3,5 @@ # first argument is the video link, second is the quality (480 or 1080) # 13/07/20 - Arthur Bais -link="$(echo "$1" | sed "s/videos\/watch/download\/torrents/")""-$2.torrent" +link="$(echo "$1" | sed "s/w/download\/torrents/")""-$2.torrent" transadd "$link" From 32f91e223d2cc3ce734939fe5a1f8ad5578e5e25 Mon Sep 17 00:00:00 2001 From: Rafael Date: Fri, 13 Aug 2021 12:20:53 +0000 Subject: [PATCH 6/6] vim-airline repo changed its ownership from bling to vim-airline (#982) github automatically redirects to vim-airline, so this is not a problem when installing, but updating just for the sake of explicitness and having the correct username/repo --- .config/nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ce0db87..f93eed4 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -14,7 +14,7 @@ Plug 'junegunn/goyo.vim' Plug 'jreybert/vimagit' Plug 'lukesmithxyz/vimling' Plug 'vimwiki/vimwiki' -Plug 'bling/vim-airline' +Plug 'vim-airline/vim-airline' Plug 'tpope/vim-commentary' Plug 'ap/vim-css-color' call plug#end()