at master 174 B view raw
1#!/usr/bin/env bash 2 3idle="$(pgrep -f -a swayidle | grep bash | sed -e 's/\(.*\)swayidle_\(.*\)\.sh/\2/')" 4 5if [ ! -z idle ] && [ "$idle" != "" ]; then 6 echo "idle $idle" 7fi