lock.sh 180 B

12345
  1. #!/usr/bin/env bash
  2. primary_screen=($(xrandr | grep -w connected | sed 's/primary //' | awk -F'[ +]' '{print $1,$3,$4}' | head -n 1))
  3. sflock -xshift $((${primary_screen[2]} / 2))