QR码

来自百合仙子's Wiki
(重定向自二维码
跳转到导航 跳转到搜索

命令

# 剪贴板数据到QR码
clipboard2qr () {
  data="$(xsel)"
  echo $data
  zint -b 58 --scale=5 --binary --direct --filetype=PNG -d $data | display -bordercolor white -border 16x16 -
}

# 使用 qrencode 输出到终端
clipboard2qr () {
  data="$(xsel)"
  echo $data
  echo $data | qrencode -t UTF8
}

参见

在线编解码

外部链接