Skip to content

Commit

Permalink
add shortcut to switch to last focused view
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Oct 18, 2009
1 parent 9c54c34 commit dadff33
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config.yaml
Expand Up @@ -254,6 +254,9 @@ control:
${mod}-${next}: | # focus next view
next_view.focus
${mod}-o: | # focus most recently focused view
$last_view.focus if $last_view
# focus the view whose index or name equals the pressed number
${mod}-1: focus_view tags[0] || 1
${mod}-2: focus_view tags[1] || 2
Expand Down Expand Up @@ -781,6 +784,18 @@ script:
DETACHED_TAG = '|'
ZOOMED_SUFFIX = /~(\d+)$/
# keep track of most recently focused view
$last_view = nil
class Rumai::View
alias __focus__ focus
def focus
$last_view = View.curr
__focus__
end
end
after: |
# desktop wallpaper
system 'test -f ~/.fehbg && sh ~/.fehbg'
Expand Down

0 comments on commit dadff33

Please sign in to comment.