aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/show_timer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'X11/show_timer.sh')
-rwxr-xr-xX11/show_timer.sh6
1 files changed, 4 insertions, 2 deletions
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 @@
3origin="$(xdotool getactivewindow)" 3origin="$(xdotool getactivewindow)"
4export origin 4export origin
5 5
6# If timer is set, focus to it 6# If timer is set, focus to it and exit
7xdotool search --name "TIMER" windowactivate && exit 0 7xdotool search --name "TIMER" windowactivate && exit 0
8 8
9# Add new window for a timer 9# Add new window for a timer
10# Use SIGINT 10# Use SIGINT to toggle each mode
11# Use xdotool to reactivate original window user focus
12# After timer is closed or finished, append time into context file
11alacritty --title TIMER --hold \ 13alacritty --title TIMER --hold \
12 -o "window.dimensions.columns=8" \ 14 -o "window.dimensions.columns=8" \
13 -o "window.dimensions.lines=1" \ 15 -o "window.dimensions.lines=1" \