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 3e20e28d5c9e7be86a2134be6faa4bb09e1ecf69
parent 475d62d20e3d22256cb6a4e9420a7b68ebe55f85
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 30 Jul 2019 10:20:38 +0200

Update clipboard configuration

Diffstat:
M.config/sxhkd/sxhkdrc | 4+++-
M.config/vis/visrc.lua | 4++--
M.local/bin/linkhandler | 5++---
3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -12,7 +12,9 @@ super + o super + p $TERMINAL dropdowncalc super + u - linkhandler $(xclip -o) + linkhandler $(xclip -selection primary -o) +super + shift + u + linkhandler $(xclip -selection clipboard -o) super + shift + c showclip super + alt + c diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -82,7 +82,7 @@ vis.events.subscribe(vis.events.INIT, function() vis:map(vis.modes.NORMAL, leader..'n', ':set numbers!<Enter>') vis:map(vis.modes.NORMAL, leader..'N', ':set relativenumbers!<Enter>') vis:map(vis.modes.NORMAL, leader..'o', ':fzf<Enter>') - vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -o<Enter>') + vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -selection clipboard -o<Enter>') vis:map(vis.modes.NORMAL, leader..'q', ':q<Enter>') vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ') vis:map(vis.modes.NORMAL, leader..'t', ':!ctags -R . >/dev/null 2>&1 &<Enter>') @@ -99,7 +99,7 @@ vis.events.subscribe(vis.events.INIT, function() end) vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>') vis:map(vis.modes.VISUAL, leader..'X', '') - vis:map(vis.modes.VISUAL, leader..'y', ':> xclip<Enter>') + vis:map(vis.modes.VISUAL, leader..'y', ':> xclip -selection clipboard -i<Enter>') vis:map(vis.modes.NORMAL, '<F7>', ':!sent $vis_filepath &<Enter>') vis:map(vis.modes.NORMAL, '<Tab><Tab>', '<vis-window-next>') diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -11,7 +11,7 @@ for url in "$@"; do "$TERMINAL" -e "$EDITOR $url" else #url="$(printf "%s" "$url" | sed 's|http.*://scholar\.google\..*url=||;s|&rt=.*$||')" - action="$(printf "Open\nOpen (Tor Browser)\nCopy URL\ncURL\nHtml to pdf\nSci-Hub\nAdd reference\nPlay" | dmenu_themed -i -p "Action:")" + action="$(printf "Open\nOpen (Tor Browser)\nCopy URL\ncURL\nHtml to pdf\nSci-Hub\nAdd reference\nmpv" | dmenu_themed -i -p "Action:")" if [ "$action" = "Open" ]; then setsid xdg-open "$url" >/dev/null 2>&1 & elif [ "$action" = "Open (Tor Browser)" ]; then @@ -24,7 +24,6 @@ for url in "$@"; do setsid tsp curl -LO "$url" >/dev/null 2>&1 & elif [ "$action" = "Html to pdf" ]; then mkdir -p ~/tmp/ - #setsid tsp 'tmpfile="$(mktemp)" && \ out="$HOME/tmp/html_to_pdf_$(date +'%F-%T')".pdf && \ wkhtmltopdf "$url" "$out" && \ notify-send "$(basename $out) complete" @@ -32,7 +31,7 @@ for url in "$@"; do setsid tsp shdl --tor-socks --notify --open --reference "$url" >/dev/null 2>&1 & elif [ "$action" = "Add reference" ]; then getdoi "$url" | getref --notify >> "$BIB" & - elif [ "$action" = "Play" ]; then + elif [ "$action" = "mpv" ]; then setsid mpv -quiet "$url" >/dev/null 2>&1 & else notify-send "${0##/*}" "Error: Action not understood"