commit 9dc63b3998279201724bdff5d220193e0e8db876
parent 990d258de946d5f41d0b153aa8fb2c87ae77d36f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 23 Apr 2019 12:50:55 +0200
Various minor changes
Diffstat:
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.config/newsboat/urls b/.config/newsboat/urls
@@ -128,6 +128,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC8lJ3EM0VC4TS0jY6VJtTcw you
https://www.youtube.com/feeds/videos.xml?channel_id=UC6t7IQyBM77KVoCUPfuveOA youtube photo "~youtube: Zeiss Camera Lenses"
https://www.youtube.com/feeds/videos.xml?channel_id=UCN1-864p2gbPiJtnRG3Oujg youtube photo "~youtube: Phase One"
https://www.youtube.com/feeds/videos.xml?channel_id=UCfhW84xfA6gEc4hDK90rR1Q youtube photo "~youtube: Thomas Heaton"
+https://www.youtube.com/feeds/videos.xml?channel_id=UCkJld-AoXurbT2jDnfM8qiA youtube photo "~youtube: Nigel Danson"
https://www.youtube.com/feeds/videos.xml?channel_id=UCU9j9_inPFpsOCze_RX-41w youtube photo "~youtube: CineStill"
https://www.youtube.com/feeds/videos.xml?channel_id=UCi4Z9CMZwcYPhl1FguWClzA youtube photo "~youtube: Film is more fun"
https://www.youtube.com/feeds/videos.xml?channel_id=UC8Pksdbj37CdE00kmE7Z1dw youtube photo "~youtube: Adorama"
diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc
@@ -485,7 +485,7 @@ nnoremap <f8> :delete<cr>
map q ZQ
map x :!sxiv -ft * 2>/dev/null &<CR>
-nnoremap o :file &<cr>l
+nnoremap o :file &
map E :!$EDITOR %f<CR>
map mkd :mkdir<space>
map bg :!setbg %f &<CR>
diff --git a/bin/ducksearch b/bin/ducksearch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
# Gives a dmenu prompt to search DuckDuckGo.
# Without input, will open DuckDuckGo.com.
@@ -15,6 +15,14 @@ else
if [[ "$choice" =~ ^(http:\/\/|https:\/\/)?[a-zA-Z0-9\-]+\.[a-zA-Z]+(/)?.*$ ]]; then
$browser "$choice"
else
- $browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
+ case "$choice" in
+ scholar*)
+ $browser "https://scholar.google.com/scholar?q=$choice"
+ ;;
+ *)
+ $browser "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
+ ;;
+ esac
+
fi
fi