Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uberj/qtile
Browse files Browse the repository at this point in the history
  • Loading branch information
uberj committed Apr 20, 2012
2 parents f267143 + 06c4f38 commit 04a95ba
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions libqtile/layout/tile.py
Expand Up @@ -31,7 +31,7 @@ def slave_windows(self):
def up(self):
if self.shift_windows:
self.shift_up()
else:
else:
self.shuffle(utils.shuffleUp)

def down(self):
Expand All @@ -46,7 +46,13 @@ def shift_up(self):
nextindex = self.get_next_index(currentindex)
self.shift(currentindex, nextindex)

def shift_down(self):
def swap_up(self):
if self.clients:
currentindex = self.clients.index(self.focused)
nextindex = self.get_next_index(currentindex)
self.shift(currentindex, nextindex)

def swap_down(self):
if self.clients:
currentindex = self.clients.index(self.focused)
previndex = self.get_previous_index(currentindex)
Expand Down Expand Up @@ -183,6 +189,12 @@ def cmd_down(self):
def cmd_up(self):
self.up()

def cmd_swap_down(self):
self.swap_down()

def cmd_swap_up(self):
self.swap_up()

def cmd_next(self):
self.next()

Expand Down

0 comments on commit 04a95ba

Please sign in to comment.