The user now has complete control over everything -a alters.
All checks for the -a flags are now done in the helper functions.
"is_floating" is now always defined and will return 1 if the window is
not floating. Fix the float checks in mapping functions. Get rid of
separate "dec_fix_auto" variable.
Used for hiding/unhiding programs to acheive quake-dropdown-like-functionality. Can create a dropdown window if one does not already exist and provides options to control the intial size and position, e.g. to leave panels visible. When used with a terminal, provides the option to specify the name of a tmuxinator or tmux session to automatically start or attach to.
usage: tdrop [options] <program> or 'current' or
one of 'auto_show'/'auto_hide'/'toggle_auto_hide'
Also supports the ability to auto-hide and auto-show. For example, this can be used to automatically hide a window when opening something, e.g. image viewer, video player, etc. from it, and then re-show the window whenever the image view, video player, etc. is closed.
Takes a window as an argument or one of auto_show, auto_hide, or toggle_auto_hide. 'toggle_auto_hide' toggles whether calling 'auto_hide' or 'auto_show' will have any effect. 'current' will turn the current window into a dropdown.
usage: tdrop [options] <program or 'current'> or one of <auto_show/auto_hide/toggle_auto_hide>
options:
options:
-h height specify a height for a newly created term (default: 45%)
-h height specify a height for a newly created term (default: 45%)
-w width specify a width for a newly created term (default: 100%)
-w width specify a width for a newly created term (default: 100%)
-x pos specify x offset for a newly created term (default: 0)
-x pos specify x offset for a newly created term (default: 0)
-y pos specify y offset for a newly created term (default: 1, see BUGS in man)
-y pos specify y offset for a newly created term (default: 1, see man)
-s name name for tmux or tmuxinator session (requires the program to be a supported terminal)
-s name name for tmux/tmuxinator session (supported terminal required)
-n num num or extra text; only needed if want multiple dropdowns of same program (default: none)
-n num num or extra text; only needed if for the purpose of sing
-p cmd provide a pre-map command to float the window if necessary
multiple dropdowns of same program
-P cmd provide a post-map command to float the window if necessary
-c cmd provide a pre-create command
-M cmd provide a post-unmap command; can be used for example with a window manager that doesn't support floating to turn fullscreen on when mapping a terminal then off when unmapping it
-C cmd provide a post-create command
-O cmd provide a one time command only for when a dropdown is created/initiated (useful for 'tdrop current')
-l cmd provide a command to float the window before it is mapped
-d XxY give decoration/border size to accurately save position; only applicable with auto_show; on applicable with a few window managers (e.g. blackbox)
-L cmd provide a command to float the window after it is mapped
-f specify flags/options to be used when creating the term or window (e.g. -f '--title mytitle'; default: none). caution: if there is a tmux/tmuxinator session specified (with -s), the option to execute a program (usually -e for terminal programs) is implicitly added by tdrop!
-p cmd provide a pre-map command
-a automatically detect window manager and if settings exist for it, automatically set -p, -P, and -d values as necessary; this can have affect when used with a terminal or with auto_show or auto_hide (default: false)
-P cmd provide a post-map command
-m for use with multiple monitors and only with dropdowns (not for auto_show or auto_hide); convert percentages used for width or height to values relative to the size of the current monitor and force reszing of the dropdown when the monitor changes (default: false)
-u cmd provide a pre-unmap command
-c cmd provide a command to be run after first creating the dropdown
-U cmd provide a post-unmap command
(e.g. to set some window property)
-d XxY give decoration/border size to accurately restore window
--clear clear saved window id; useful accidentally make a window a dropdown (e.g. '$ tdrop --clear current')
position; only applicable with auto_show
--no-cancel don't cancel auto-showing
-S cmd can be used to fix saved geometry with auto_hide; see manpage
(default is to prevent this when manually toggling a term after it is auto-hidden)
-i cmd provide a command to detect whether the current window is a
floating window; on applicable with auto_hide
-f flags specify flags/options to be used when creating the term or