You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shownotes-w3m-rice/clipboard_removeformatting.sh

27 lines
821 B
Bash

#!/bin/bash
# _ _ _ _
# __ _ ___ | |_| |__ | | ___| |_ _ _
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
#| (_| | (_) | |_| |_) | | __/ |_| |_| |
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
# |___/
# http://www.youtube.com/user/gotbletu
# https://twitter.com/gotbletu
# https://plus.google.com/+gotbletu
# https://github.com/gotbletu
# gotbletu@gmail.com
# Useful when copying from websites
# This will paste in plain text without formatting.
# tutorial video: https://www.youtube.com/watch?v=YY3hRhrUjOQ
# requires: xclip xdotool
xclip -selection clipboard -o | xclip -selection clipboard
sleep 0.5
xdotool key ctrl+v
# if you are using a clipboard manager also then you can uncomment theses
# sleep 0.5
# killall xclip