|
|
@ -91,8 +91,8 @@ do
|
|
|
|
a) auto_detect_wm=true;;
|
|
|
|
a) auto_detect_wm=true;;
|
|
|
|
m) monitor_aware=true;;
|
|
|
|
m) monitor_aware=true;;
|
|
|
|
-)
|
|
|
|
-)
|
|
|
|
OPTION=$(echo "$OPTARG" | awk -F '=' '{print $1}')
|
|
|
|
OPTION=${OPTARG%%=*}
|
|
|
|
OPTARG=$(echo "$OPTARG" | awk -F '=' '{print $2}')
|
|
|
|
OPTARG=${OPTARG#*=}
|
|
|
|
case $OPTION in
|
|
|
|
case $OPTION in
|
|
|
|
height) height=$OPTARG;;
|
|
|
|
height) height=$OPTARG;;
|
|
|
|
width) width=$OPTARG;;
|
|
|
|
width) width=$OPTARG;;
|
|
|
@ -225,7 +225,7 @@ update_geometry_settings_for_monitor() {
|
|
|
|
local last_monitor
|
|
|
|
local last_monitor
|
|
|
|
last_monitor=$(< /tmp/tdrop/last_monitor)
|
|
|
|
last_monitor=$(< /tmp/tdrop/last_monitor)
|
|
|
|
echo "$current_monitor" > /tmp/tdrop/last_monitor
|
|
|
|
echo "$current_monitor" > /tmp/tdrop/last_monitor
|
|
|
|
if [[ $current_monitor != $last_monitor ]]; then
|
|
|
|
if [[ $current_monitor != "$last_monitor" ]]; then
|
|
|
|
monitor_changed=true
|
|
|
|
monitor_changed=true
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -438,12 +438,7 @@ maybe_cancel_auto_show() {
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
term_create() {
|
|
|
|
term_create() {
|
|
|
|
local term_command
|
|
|
|
local term_command="$term $program_flags"
|
|
|
|
if [[ -n $program_flags ]]; then
|
|
|
|
|
|
|
|
term_command="$term $program_flags"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
term_command=$term
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $term == terminix ]]; then
|
|
|
|
if [[ $term == terminix ]]; then
|
|
|
|
sleep_term_time=0.3
|
|
|
|
sleep_term_time=0.3
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -471,12 +466,7 @@ term_create() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
win_create() {
|
|
|
|
win_create() {
|
|
|
|
local win_command
|
|
|
|
local win_command="$term $program_flags"
|
|
|
|
if [[ -n $program_flags ]]; then
|
|
|
|
|
|
|
|
win_command="$term $program_flags"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
win_command=$term
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
$win_command &
|
|
|
|
$win_command &
|
|
|
|
# need to wait for window to be created
|
|
|
|
# need to wait for window to be created
|
|
|
|
sleep $sleep_win_time
|
|
|
|
sleep $sleep_win_time
|
|
|
|