why the spaces are not full to the screen brim but leave big gap when overview grid
Why not bigger for each grid with a small screen (13 inch)?
why the spaces are not full to the screen brim but leave big gap when overview grid
Why not bigger for each grid with a small screen (13 inch)?
The reason is that I thought it looks clear with the borders set the way they are. What layout of spades do you use?
require ‘totalspaces2’
def alfred_move_windows(appname)
wx = 0
wxy = 0
current_space = TotalSpaces2.current_space
windowsall = TotalSpaces2.window_list
if !windowsall.empty?
no_current_windows = windowsall.select {
|window| window[:space_number] != current_space
}
no_current_windows.each{|window|
wx = wx + 1
if window[:app_name].downcase =~/#{appname}/
win_pra = (window[:frame].delete"\{\} ").split(',')
xpos = win_pra[0].to_i
ypos = win_pra[1].to_i
width = win_pra[2].to_i
off = 1920 - xpos
if window[:space_number] < current_space
TotalSpaces2.move_window(
window[:window_id],-1920, ypos)
TotalSpaces2.move_window_to_space(
window[:window_id], current_space)
0.step(1920,8){|n| TotalSpaces2.move_window(
window[:window_id],-(1920-xpos)+n,ypos)
}
else
TotalSpaces2.move_window(
window[:window_id],1920, ypos)
TotalSpaces2.move_window_to_space(
window[:window_id], current_space)
0.step(off,8){|n| TotalSpaces2.move_window(
window[:window_id],1920-n,ypos)
}
end
if wxy == 0
wxy = wx - 1
TotalSpaces2.set_front_window(no_current_windows[wxy][:window_id])
wxy = nil
end
sleep 0.3
end
}
end
end
$LOAD_PATH << '.'
alfred_move_windows("{query}")
use this script with Alfred!
sorry,I reply another topic