From 0fe9533ffd5764b3c0865763267834d21ec90512 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 13 Jul 2020 12:23:40 +0300 Subject: [PATCH] Show if FDM flag is present --- x/.xinitrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/.xinitrc b/x/.xinitrc index 371931b..89f7c19 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -6,7 +6,8 @@ xset b off xmodmap ~/.Xmodmap while :; do life=$(apm -l) - xsetroot -name "$life% $(date "+%Y-%m-%dT%H:%M:%S")" + [ -e /tmp/do-fdm ] && fdm_state="FM" || fdm_state="" + xsetroot -name "$fdm_state $life% $(date "+%Y-%m-%dT%H:%M:%S")" sleep 20 done & rm -f ~/.ssh/agent ; ssh-agent -a ~/.ssh/agent -- 2.44.0