lock.sh 184 B

123456
  1. #!/bin/sh
  2. playerctl pause
  3. SIZE="$(xrandr | awk -F, '/Screen 0/ { print $2 }' | awk '{print $2 "x" $4 }')"
  4. maim -u | convert - -paint 2 RGB:- | i3lock --raw "$SIZE":rgb -i /dev/stdin