A variety of simple automation scripts and enhancements to Sway and i3.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
328B

  1. #!/bin/bash
  2. notify-send Disks \
  3. "$(lsblk -o NAME,SIZE,FSUSE%,MOUNTPOINT | grep -vP '^loop' | \
  4. sed 's/MOUNTPOINT/MOUNT/' | sed -e 's/│ └─/+---/' | \
  5. sed -e 's/ └─/+---/' | sed -e 's/├─/+-/' | sed -e 's/└─/+-/' | \
  6. awk {'printf "%-20s %-7s %- 6s %-7s\n", $1, $2, $3, $4'})"