发布时间:2015-04-12 22:46:53
F1: 移动当前窗口到左边SPACErequire 'totalspaces2'current_spaces = TotalSpaces2.current_spacewindows = TotalSpaces2.window_listif current_spaces > 1 dest_space = current_spaces - 1else dest_space = 4endif !windows.empty? current_space_windows = windows.selec.........【阅读全文】
发布时间:2014-12-20 21:49:34
require 'totalspaces2'def alfred_move_windows(reg) current_space = TotalSpaces2.current_space windows = TotalSpaces2.window_list wx = 0 wxy = 0 if !windows.empty? windows.each{|window| &nbs.........【阅读全文】
发布时间:2014-03-01 19:12:53
he scripts I posted above are those I used for TotalSpaces. Here are them converted for TotalSpaces2.Get current space:#!/usr/bin/env rubyrequire 'rubygems'require 'totalspaces2'current_space = TotalSpaces2.current_spaceputs "#{current_space}"Switch to space:.........【阅读全文】