diff --git a/dotfiles/bash.org b/dotfiles/bash.org index ca68246..c10e069 100644 --- a/dotfiles/bash.org +++ b/dotfiles/bash.org @@ -225,7 +225,7 @@ colors() { tmpfile=$(mktemp -t transferXXX) # basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9]/-/g') curl --progress-bar --upload-file "$1" "https://transfer.sh/" >> $tmpfile; - cat $tmpfile | xclip -selection clipboard; + cat $tmpfile | xsel -ib; echo "Copied:" $(cat $tmpfile); rm -f $tmpfile; } diff --git a/dotfiles/image.org b/dotfiles/image.org index 5d3e0cc..270b695 100644 --- a/dotfiles/image.org +++ b/dotfiles/image.org @@ -32,7 +32,7 @@ Press =C-x= to activate to key handler. "C-r") convert -rotate 90 "$file" "$file" ;; "C-c") - echo -n "$file" | xclip -selection clipboard ;; + echo -n "$file" | xsel -ib ;; "C-w") nitrogen --save --set-zoom-fill "$file" ;; esac diff --git a/dotfiles/scripts.org b/dotfiles/scripts.org index b205426..8d82573 100644 --- a/dotfiles/scripts.org +++ b/dotfiles/scripts.org @@ -172,7 +172,7 @@ Finally, lock the screen using =i3lock=. if [ -n "$1" ]; then xdotool key Shift+Insert else - echo "$chosen" | tr -d '\n' | xclip -selection clipboard + echo "$chosen" | tr -d '\n' | xsel -ib notify-send "'$chosen' copied to clipboard." & fi #+end_src