dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 87b3d036542ddcd2cd18d8f73bc39be92ba4baf6
parent 0e1026ec1b21109c67d1c2f823d3c1b20050f767
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 14 Jul 2019 17:34:49 +0200

Update sltools, do not remove scholar components of URLs in linkhandler, and launch youtube viewer in correct dir

Diffstat:
M.config/sxhkd/sxhkdrc | 4++--
M.local/bin/linkhandler | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -81,9 +81,9 @@ super + shift + o super + alt + t textqr super + y - $TERMINAL -e tmux new-session youtube-viewer + $TERMINAL -e tmux new-session 'cd ~/tmp && youtube-viewer' super + shift + y - $TERMINAL -e tmux new-session youtube-viewer --novideo + $TERMINAL -e tmux new-session 'cd ~/tmp && youtube-viewer --novideo' super + c $TERMINAL -e calcurse -D ~/.config/calcurse diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -10,7 +10,7 @@ for url in "$@"; do if [ -f "$url" ]; then "$TERMINAL" -e "$EDITOR $url" else - url="$(printf "%s" "$url" | sed 's|http.*://scholar\.google\..*url=||;s|&rt=.*$||')" + #url="$(printf "%s" "$url" | sed 's|http.*://scholar\.google\..*url=||;s|&rt=.*$||')" action="$(printf "Open\nOpen (Tor Browser)\nCopy\nDownload\nSci-Hub\nAdd reference\nPlay" | dmenu_themed -i -p "Action:")" if [ "$action" = "Open" ]; then setsid xdg-open "$url" >/dev/null 2>&1 &