Remove unnecessary quotes

master
Fox Kiester 5 years ago
parent 4926be8fcb
commit 59c426dfc0
No known key found for this signature in database
GPG Key ID: 316E205D6017DBFF

12
tdrop

@ -359,7 +359,7 @@ decoration_settings() {
fi fi
fi fi
if [[ -z "$dec_fix" ]] && $auto_detect_wm; then if [[ -z $dec_fix ]] && $auto_detect_wm; then
# settings for stacking/floating wms where can't get right position # settings for stacking/floating wms where can't get right position
# easily from xwininfo; take borders into account # easily from xwininfo; take borders into account
if [[ $wm == Blackbox ]]; then if [[ $wm == Blackbox ]]; then
@ -582,9 +582,9 @@ create_win_return_wid() {
else else
wids=$(xdotool search --pid "$pid") wids=$(xdotool search --pid "$pid")
fi fi
if [[ -n "$wids" ]]; then if [[ -n $wids ]]; then
while read -r wid; do while read -r wid; do
if [[ ! $blacklist =~ (^|$'\n')"$wid"($|$'\n') ]] && \ if [[ ! $blacklist =~ (^|$'\n')$wid($|$'\n') ]] && \
[[ $(get_visibility "$wid") == IsViewable ]]; then [[ $(get_visibility "$wid") == IsViewable ]]; then
visible_wid=true visible_wid=true
program_wid=$wid program_wid=$wid
@ -615,7 +615,7 @@ program_start() {
program_command+=(-d 0 0) program_command+=(-d 0 0)
fi fi
program_command+=("${program_flags[@]}") program_command+=("${program_flags[@]}")
if [[ -n "$session_name" ]]; then if [[ -n $session_name ]]; then
session_name=$(printf "%q" "$session_name") session_name=$(printf "%q" "$session_name")
tmux_command="tmux attach-session -dt $session_name || \ tmux_command="tmux attach-session -dt $session_name || \
tmuxifier load-session $session_name || \ tmuxifier load-session $session_name || \
@ -633,7 +633,7 @@ program_start() {
fi fi
fi fi
wid=$(create_win_return_wid "${program_command[@]}") wid=$(create_win_return_wid "${program_command[@]}")
if [[ -n "$name" ]]; then if [[ -n $name ]]; then
xdotool set_window --name "$name" "$wid" xdotool set_window --name "$name" "$wid"
fi fi
echo "$wid" > "$MUTDROP_PATH/$program$num" echo "$wid" > "$MUTDROP_PATH/$program$num"
@ -646,7 +646,7 @@ current_create() {
wid=$(xdotool getactivewindow) wid=$(xdotool getactivewindow)
echo "$wid" > "$MUTDROP_PATH"/current"$num" echo "$wid" > "$MUTDROP_PATH"/current"$num"
get_class_name "$wid" > "$MUTDROP_PATH"/current"$num"_class get_class_name "$wid" > "$MUTDROP_PATH"/current"$num"_class
if [[ -n "$name" ]]; then if [[ -n $name ]]; then
xdotool set_window --name "$name" "$wid" xdotool set_window --name "$name" "$wid"
fi fi
echo -n "$wid" echo -n "$wid"

Loading…
Cancel
Save