You are not logged in.

#1 2013-08-02 01:14:26

zackpete
Member
Registered: 2011-04-27
Posts: 9

Awesome WM with slate-like hints

I've been using slate with my mac and the one thing that I'm missing from my awesome config on arch is slate's ability to use hints for window switching. Basically you press a keycombo like Mod4+j, and a letter pops up in the center of each visible window, and then you press the window's corresponding letter to switch to it. Does anyone have any suggestions on how to implement that in awesome? I thought I'd be able to draw the letters with naughty's notify method but that just seems to be able to put the message boxes in one of the four corners of the screen. Any ideas?

Edit: Got it working using wiboxes, if anyone's interested you can get it here.

Last edited by zackpete (2013-08-05 08:55:42)

Offline

#2 2013-08-03 13:23:15

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Awesome WM with slate-like hints

If you don't care about the windows getting temporarily adjusted, you can draw temporary titles. Another (better but more complicated) option is to create wiboxes (they don't have to be statusbars) and position them over the windows.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2013-08-03 16:20:23

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Awesome WM with slate-like hints

It's been quite a while for me, but if I remember correctly, the i3 window manager actually has a feature similar to this to handle the sheer number of possible layouts one can achieve.  It also functions much more similarly to Divvy and SizeUp, which appear to be what slate was inspired by: The user opens clients on the screen, then uses keybindings to manually place, resize, and switch between them.  If Awesome is more of your thing, something like this might be possible, but I'd guess you'd have to write a fairly complex Lua script to achieve it (I don't think there's anything native to Awesome that works like what you want).

Offline

Board footer

Powered by FluxBB