From 6eb996c031841182eedf6e3dc25a343906ae55a8 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 6 Apr 2023 23:12:47 +0800 Subject: Update --- X11/show_timer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'X11/show_timer.sh') diff --git a/X11/show_timer.sh b/X11/show_timer.sh index dfe3dd2..dd6d877 100755 --- a/X11/show_timer.sh +++ b/X11/show_timer.sh @@ -3,11 +3,13 @@ origin="$(xdotool getactivewindow)" export origin -# If timer is set, focus to it +# If timer is set, focus to it and exit xdotool search --name "TIMER" windowactivate && exit 0 # Add new window for a timer -# Use SIGINT +# Use SIGINT to toggle each mode +# Use xdotool to reactivate original window user focus +# After timer is closed or finished, append time into context file alacritty --title TIMER --hold \ -o "window.dimensions.columns=8" \ -o "window.dimensions.lines=1" \ -- cgit v1.2.3-70-g09d2