bioe007 / awesome-shifty Goto Github PK
View Code? Open in Web Editor NEWDynamic tagging library for awesome window manager
Dynamic tagging library for awesome window manager
Hello, I'm using the shifty branch 3.5, and my version of awesome is 3.5.1.
I have two screens, and I'm trying to make a custom matcher, that looks like this:
{
match = {
"skype",
},
tag = "4:chat",
screen = 2,
},
When I open skype on screen 2, it works ok (opens in "4:chat" tag), but when I open it on screen 1, a new tag is created (named "4:chat") and skype is opened there. It seems to be ignoring the screen=2
option.
Is this feature not implemented yet or is this a bug (or maybe I'm doing it wrong)?
Thanks!
The match function is just ... monolithic.
Would it be hard to pop up a prompt to ask for the tag to switch to, and, if it's not "open" yet, do the same behavior as add()? I'm thinking something like emac's buffer switching. I keep too many tags open for the modkey-1, modkey-2 etc. to be useful. Also, it's a lot slower having to think about which number a window is on than to just type a tag name. Doesn't have to be fancy.
I tried adding this on the master branch, but my Lua's skills are practically non-existent (not to mention understanding the internals of awful). I'm sure this is rather simple to do. (I copied the rename function and tried to adapt, but it didn't work.)
Hello, are you still maintaining this ? I plan to add luadoc documentation to this. Do you wanna help ?
when renaming a tag from one preset to another, the layout is not always overridden and stays at old preset
If you have two screens, new windows in floating layout can appear offscreen and inaccessible.
The below patch on 3.5 branch fixed it for me (borrowed from awesome's original rc.lua).
diff --git a/init.lua b/init.lua index 8e7a760..631e7d9 100644 --- a/init.lua +++ b/init.lua @@ -756,6 +756,14 @@ function match(c, startup) awful.placement.no_offscreen(c) end + if not startup then + -- Put windows in a smart way, only if they does not set an initial position. + if not c.size_hints.user_position and not c.size_hints.program_position then + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end + end + local sel = awful.tag.selectedlist(target_screen) if not target_tag_names or #target_tag_names == 0 then -- if not matched to some names try putting
The current git checkout from shifty does not work together with awesome 4.0
Regards,
bitwave
this feature appears in your code but it is not documented. this has caused some confusion where a user wanted to disable sloppy focus but couldn't find the usual code that handles it.
personally, I find it strange that a library that handles dynamic tagging also ships with a singular abstraction for this. it feels like feature creep.
I think it should at least be documented very clearly, but I'd vote to remove the feature entirely or move it into a different extension.
if you're okay with removing the feature, I can handle creating the pull request for you. just looking to initiate some discussion on the matter.
Hello,
after creating one tag in background (nopopup) the focus on my current window in my current tag is lost.
I'm using the shifty package of debian (testing).
Greetings
In the example.init.rc there is the property "solitary", but it seems, that it is never used in init.lua.
There should be a branch for awesome's master development tip.
awful.tag.history
has only one level, so if you delete many tags in a row then subsequent call to history.restore() will leave you on a nil tag.
Allow specific fields to be matched:
match = { class = "URxvt", inst = "urxvt", })
Hi!
When using sweep_delay
, we can get a continuous warning about "timer not started". To reproduce this, switch to a new tag, open a terminal, close it, then switch to another tag before the sweep delay is hit. When the tag is sweeped, we get a continuous warning about "timer not started".
To fix this, make "tmr" variable local.
like match, this function is ridiculously long and tries to do 100 different things.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.