Files
SDG-OS/sdgos/wayshell/configs/ss-mode.sh
T

13 lines
255 B
Bash
Executable File

#!/bin/bash
state_file=$HOME/.config/screenshot.state
icon=""
if [ -f "$state_file" ]; then
mode=$(awk -F= '/^mode=/ {print $2}' "$state_file")
case $mode in
disk) icon="" ;;
editor) icon="" ;;
esac
fi
echo "$icon"