-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workspace Overview Popup: Questions about configuring / feature requests #59
Comments
This is an interesting one. It would probably make sense to write a separate program with a preview matrix functionality, but I don't see a good way to it properly. The main challenge would be getting a preview of off-screen workspaces. We can get their geometry via i3 IPC, but I don't think we can get their visuals without activating them and iterating across all workspaces to get previews wouldn't be ideal. As for the questions above:
And bind the same mod to key to workspace changes, i.e. Now the bar will show up when you press $mod, workspace will change once you press 1 while holding $mod and the bar will stay on screen until you release $mod. |
Thank you for you're quick answer! I'm very happy you didn't shut me down :) Though graphical previews of the workspaces could be a very elegant, I think less can do. Already the pager as you've implemented it beats my current vertical Waybar config. If you're the preview functionality could be shown by default (maybe with window titles a la Sway Overview, I think that would be nice, too. About the questions:
With Can you point me to the missing piece? |
I usually try to implement as many use-cases as possible, so long as they fit with the general idea of a taskbar and functionality is reasonably re-usable.
Ideally I would have implemented pager as a graphical representation of window layout, but sway doesn't send notification of window geometry changes, so there is no way to determine when the representation needs to be updated. With preview I side-step the issue, since the bar updates the geometry every time preview pops up.
Done in the current git. You can add
Do you mean a bar along one of the edges, but not stretching all the way along it? You can achieve this with SetBarSize command in the "SfwbarInit" function. I.e.
Sfwbar starts visible by default (i.e. it doesn't respect your
|
I'm very glad my use case fit!
Ah, yes, I see. There is a difference to GNOME there, I suppose. In the Workspace Matrix extension, even videos playing are shown as playing in the overview.
So fast! Nice! This works excellently! Thank you! For the record, I did mean that I'd be happy with using
That the bar can be narrowed I got from the default config. I meant that the bar has a bit of "air" between it and the screen edge is popular. The following are three examples taken from the first 10 posts of current Hot on r/uniporn: Example 1, Example 2, Example 3. I see that I can maybe get that effect (and the centering I'm looking for) by using the padding of
Alas, the
Marvelous! Thank you very much! |
If you want to have a gap between the bar and the main edge, you will indeed need to transparent CSS background for that part of the bar, to do this (I'm assuming bar at the bottom in my example), add the following to your CSS section:
(you will probably want to use a better choice of color than red for your grid, since this will be the background color for your bar). |
The one thing I miss in Sway coming from GNOME is Workspace Matrix. With a bit of creative keybindings, the "space" can emulated, and with
sfwbar
, it can be visualized using the pager. I'm thrilled!The key feature from Workspace Matrix that I miss is their popup workspace overview. The popup shows when switching workspace, and stay shown either for a set time, or---if the time is set to 0---until $mod is released. Being able to see what is on the workspaces is great, but just being able to see where I am would make me happy.
My attempt to use
sfwbar
for the purpose involves a taskbar with the same dimensions as the pager, which has 6 pinned workspaces in 3 rows, as is my preference. I've set the bar to take up 1/3 of my screen height, usingSetLayer "top"
andSetExclusiveZone "-1"
to make it appear on top of my windows. Nice!There are three things I hope you can help me set up:
Reorder workspace in pager. Currently, workspaces are order downwards in columns. Is it possible to order them along the rows instead? in
pager
, I have tried playing around with order ofpins = "1", "3", "5", "2", "4", "6"
settingnumeric = false
, but to no avail.Set position of taskbar. For the love of me, I can't figure out how to set the vertical positioning of the taskbar. I've looked at the code for the switcher, but I miss it. Then again, calling be a Gtk newbie would be generous.
Show taskbar on
$mod+key
, hide taskbar on$mod release
. I would like the workspace overview to show when I switch workspace and show for as long as I keep$mod
pressed, then hide.__ It is my impression that the way keybindings are implemented in Sway makes it impossible to implement this through the Sway config alone. The patch from this rejected PR makes it possible, but changes
--release
a lot, which was given as a reason for rejecting it. Another reason given for the PR rejection is that the behavior should be implementable through current Wayland protocols for apps that use layer-shell---so it should be possible insfwbar
?__ Apart from being nice for workspace switching, this feature combined with the versatile layout options of
sfwbar
would let me to place all my taskbar elements (clock, tray, etc.) into the "overview taskbar", allowing for a generally bar-free, information-on-demand environment.Is there a chance these three things are already possible?
The text was updated successfully, but these errors were encountered: