wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 833fa847eda19c244a0e4761344a0008b143126d
parent 1248b5c46cb2803f9293cc410ff6afc7b9cf7d59
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Thu, 31 Aug 2006 05:23:59 -0700

[project @ 8d782965a4f1ded886a4dbdfc7bfcd702def7ee6]

[project @ 20]
rm  Wmii#rename_view method

Diffstat:
wmii.rb | 11-----------
wmiirc | 14--------------
2 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/wmii.rb b/wmii.rb @@ -200,17 +200,6 @@ class Wmii focus_view tags[newIndex] end -=begin - # Renames the given view and sends its clients along for the ride. - def rename_view aOld, aNew - read('/client').split.each do |id| - tags = read("/client/#{id}/tags") - - write "/client/#{id}/tags", tags.gsub(aOld, aNew).squeeze('+') - end - end -=end - # Applies wmii-2 style tiling layout to the current view while maintaining the order of clients in the current view. Only the first client in the primary column is kept; all others are evicted to the *top* of the secondary column. Any teritiary, quaternary, etc. columns are squeezed into the *bottom* of the secondary column. def apply_tiling_layout areaList = read('/view').split.grep(/^[^0]\d*$/) diff --git a/wmiirc b/wmiirc @@ -262,20 +262,6 @@ SHORTCUTS = { SHORTCUTS["#{LAYOUT}z"].call end, -=begin - # rename the current view - # NOTE: columns & layouts are not preserved - "#{SEND}r" => lambda do - old = WM.read('/view/name') - new = WM.show_menu(WM.read('/tags')) - - unless new.empty? - WM.rename_view old, new - WM.focus_view new - end - end, -=end - "#{SWAP}#{LEFT}" => lambda do WM.write '/view/sel/sel/ctl', 'swap prev' end, "#{SWAP}#{RIGHT}" => lambda do WM.write '/view/sel/sel/ctl', 'swap next' end,