# leave some space at the top and the bottom of the screen
set scrolloff 3
+# hook command which is invoked when the terminal gains focus
+cmd on-focus-gained :{{
+ set cursorparentfmt "\033[7m"
+ set cursoractivefmt "\033[7m"
+ set cursorpreviewfmt "\033[4m"
+}}
+
+# hook command which is invoked when the terminal loses focus
+cmd on-focus-lost :{{
+ # set cursorparentfmt "\033[7;2m"
+ # set cursoractivefmt "\033[7;2m"
+ # set cursorpreviewfmt "\033[4;2m"
+ set cursorparentfmt ""
+ set cursoractivefmt ""
+ set cursorpreviewfmt ""
+}}
+
+# set initial values upon startup
+on-focus-gained
+
# make sure trash folder exists
%mkdir -p ~/.trash