News for hackers. Stuff that matters.
Re:Sway 1.0-beta.1 release highlights by ntxy on Sunday October 21, 2018 @07:32AM (#18267566)
"You can also now do crazy stuff like having multiple mice with multiple cursors, and linking keyboards, mice, drawing tablets, and touchscreens to each other arbitrarily. You can now have your dvorak keyboard for normal use and a second qwerty keyboard for when your coworker comes over for a pair programming session. You can even give your coworker the ability to focus and type into separate windows from what you’re working on."

has this been done ever before ?

Re:Sway 1.0-beta.1 release highlights by badsectoracula on Sunday October 21, 2018 @08:45AM (#18267750)
I'm certain multiple mice is (or at least, was) supported on Windows, i remember some of Reflexive Entertainment's games from around mid-2000s having what they called "Mouse Party" which was basically a local multiplayer mode with multiple mice connected to the same PC (their games were casual indie games with simple control schemes that often supported something like that).

In theory multiple mice and keyboards are possible on X too since late 80s/90s, at least assuming the XInput extension is available on the server since the core events do not provide any way to differentiate between devices. But like everything with X, the feature might be there, but it is up to the clients to actually use it and use it properly (which isn't always the case and a lot of "X cannot do <thing>" you hear really means "due to the way we use X, we cannot do <thing>"). And even if the feature is there, if it is a niche case, it may be so buggy that it isn't practically usable (of course this applies to almost every open source project that is older than a couple of years, especially those that are big and have a small number of contributors).

An example of this would be multiple focused windows (one per keyboard) - despite XInput allowing for such a thing, i doubt many window managers and toolkits would be able to handle it (and to be frank, neither does my own toolkit and most likely will never have support for it - it is so niche of a feature, it isn't worth the time and increase in complexity and potential future maintenance).

No idea about macOS.

Re:Sway 1.0-beta.1 release highlights by uluyol on Sunday October 21, 2018 @10:30AM (#18268114)
Yes, Peter Hutterer (who now works on Xorg and libinput) developed Multi-Pointer X. Link below:

https://en.m.wikipedia.org/wiki/Multi-Pointer_X

Re:Sway 1.0-beta.1 release highlights by AnIdiotOnTheNet on Sunday October 21, 2018 @10:35AM (#18268133)
Multiple mice was supported by the Amiga. IIRC the Amiga version of Lemmings utilized it for two-player mode.
Re:Sway 1.0-beta.1 release highlights by pmoriarty on Sunday October 21, 2018 @09:11AM (#18267824)
"You can now have your dvorak keyboard for normal use and a second qwerty keyboard for when your coworker comes over for a pair programming session"

Well over a decade ago, I had multiple keyboards with different layouts hooked up to my linux laptop, and could use both of them at the same time with no problem.

I'm not sure why this is supposed to be so novel.

Re:Sway 1.0-beta.1 release highlights by ddevault on Sunday October 21, 2018 @10:32AM (#18268121)
We had to start everything over again from scratch on Wayland. It's not novel for Linux desktops in general, but it is novel for Wayland.
Re:Sway 1.0-beta.1 release highlights by justinsaccount on Sunday October 21, 2018 @12:03PM (#18268644)
> You can even give your coworker the ability to focus and type into separate windows from what you’re working on.
Re:Sway 1.0-beta.1 release highlights by mmmdaaa on Sunday October 21, 2018 @11:33AM (#18268516)
I setup sway couple days ago from source (with wlroots instead of wlc) and agree with the statement that sway now has the best hidpi support on Linux. I have UHD 15.6 inch laptop monitor and use FullHD 21.5 inch external monitor. Setting the scaling properly was super easy, and the performance is much better compared to my previous Xorg setup. The only thing missing for me currently is tray icons support.
Re:Sway 1.0-beta.1 release highlights by jeremejevs on Thursday October 25, 2018 @01:38PM (#18302746)
Check out Waybar [0], it got tray support merged today, with a fix for Electron apps coming soon [1].

[0] https://github.com/Alexays/Waybar

[1] https://github.com/Alexays/Waybar/issues/57

Re:Sway 1.0-beta.1 release highlights by peatmoss on Sunday October 21, 2018 @10:05AM (#18268009)
Slightly OT, but I hope you’ll indulge: The main thing keeping me from trying i3 and by extension Sway, is that I got used to a mostly default set of Xmonad keybinding and I’ve been too lazy to figure out how to configure i3/Sway to work like Xmonad.

Has anyone here gotten their i3 to behave like Xmonad? How is it? Care to share your config / tips for getting it rolling?

Re:Sway 1.0-beta.1 release highlights by ddevault on Sunday October 21, 2018 @10:33AM (#18268125)
Check out waymonad, it uses the same underlying technology which powers sway:

https://github.com/waymonad/waymonad

Re:Sway 1.0-beta.1 release highlights by tbrock on Sunday October 21, 2018 @10:43AM (#18268184)
The big news here is fraction scaling without hacks! The hidpi support is awesome.

You can specify a fractional scale instead of a non-fractional one for the ui and then adjusting the fonts/using xrandr.

Re:Sway 1.0-beta.1 release highlights by trulyrandom on Sunday October 21, 2018 @12:40PM (#18268797)
I've been running this for a couple of hours and it seems really solid so far. Feels great to finally have atomic layout updates and absolutely no tearing.

I hope these questions aren't too off-topic:

- How can I get GTK to stop ignoring my theme? It works with Qt using qtstyleplugins, but not with GTK itself, oddly enough. The theme also works fine when using the x11 backend.

- How can I force floating windows to have title bars? Calling 'swaymsg border normal' manually works, but I can't find a way to set a default. Setting 'default_floating_border normal' doesn't help.

- HiDPI support is claimed to be the best in sway, but Qt appears to ignore 'scale 1' on my HiDPI screen and displays it as 'scale 2'.

Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @12:42PM (#18268809)
1 and 3 are problems with GTK and Qt respectively, not something I'm too sure of as a sway developer. Qt's Wayland support and HiDPI support both leave a lot to be desired, but I think you can configure it through environment variables. I'm not sure how to address your GTK problem.

As for forcing floating windows to have title bars, you might have encountered a bug. Can you open a ticket?

Re:Sway 1.0-beta.1 release highlights by trulyrandom on Sunday October 21, 2018 @01:01PM (#18268873)
Yeah, I figured those might be out of your scope, thanks anyways. I'll open a ticket for the title bar thing in a bit.

Also, thank you for sway and wlroots!

Re:Sway 1.0-beta.1 release highlights by mmmdaaa on Sunday October 21, 2018 @12:56PM (#18268866)
qt scaling worked for me with QT_AUTO_SCREEN_SCALE_FACTOR=1 and QT_FONT_DPI=287.
Re:Sway 1.0-beta.1 release highlights by nicois on Sunday October 21, 2018 @04:42AM (#18267195)
Looks interesting, though the installation documentation needs a bit of love. The PPA is quite out of date and the install from source instructions aren't super easy to follow.
Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:34AM (#18268129)
We don't show favoritism to any downstream distros, so sway packages for any particular distro are maintained by users of that distribution. Unfortunately, the state of the Ubuntu port isn't great, this would be a great place for you to volunteer as a representative of your distro :)

I would also like to hear more detail about where you ran into issues with the source installation instructions.

Re:Sway 1.0-beta.1 release highlights by tshanmu on Sunday October 21, 2018 @05:05AM (#18267245)
Great news!! Tired it on arch sometime back and a few missing i3 compatible features made me go back to i3. Will be trying to switch now and see!! Thanks a lot @Sir_Cmpwn!
Re:Sway 1.0-beta.1 release highlights by mmmdaaa on Sunday October 21, 2018 @12:38PM (#18268788)
when using `sway` from community you will get sway running with `wlc` compositor instead of `wlroots`. `wlc` does not work with dynamic external monitor connection (which was a deal breaker for me, maybe other issues). `wlroots` solves that.
Re:Sway 1.0-beta.1 release highlights by solarkraft on Sunday October 21, 2018 @08:41AM (#18267740)
I had never heard of this before, this sounds crazy impressive. Just a few years ago there was nothing really useable, everything still had their bugs and there were no guides to making a compositor or shell plug-in. This seems to have changed. Finally!

The dream of Wayland ("soon!") has been out for many years, but it seems to finally become real.

Re:Sway 1.0-beta.1 release highlights by eBombzor on Sunday October 21, 2018 @02:25PM (#18269357)
> Other cool features include support for daisy-chained DisplayPort configurations and improved Redshift support.

Wayland can do redshift now? I thought it wasn't possible yet. Guess it's time to move off of Xorg.

Re:Sway 1.0-beta.1 release highlights by reacharavindh on Sunday October 21, 2018 @10:11AM (#18268032)
I'm a sysadmin who works with Linux on the servers and does not have the interest or know-how with window managers. Is there a easy way to try Sway? Like a pre-built OS distribution or VM?

I'm imagining something like Debian/Fedora/Ubuntu - Sway edition..

The desktop side of Linux makes me feel like I'm lost in the city where I live. Am I missing easy instructions to try this somewhere?

(No snark of any kind intended. Based on comments, I think this must be an amazing open source project. I'm just wondering how I can get myself started to see what it really is...)

Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:35AM (#18268136)
Sway isn't really an entry-level Linux desktop, though you're welcome to try. RebeccahBlackOS comes with it pre-installed, but it's more of a demo distro than one which is usable in the long-term.
Re:Sway 1.0-beta.1 release highlights by sz4kerto on Sunday October 21, 2018 @10:25AM (#18268096)
:( What can I do with my desktop? Replacing my nvidia card is hardly an option but I want Sway.
Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:32AM (#18268119)
You can use the nouveau driver, which is supported and works well. Or you could sell your card and get an AMD one. If not, there's nothing wrong with sticking to i3+X11 until a more convenient time.
Re:Sway 1.0-beta.1 release highlights by sz4kerto on Sunday October 21, 2018 @11:13AM (#18268392)
Nouveau is useless for a card like the 1080Ti, you get 10% of the performance and much worse energy efficiency.

Yes, I also dislike nvidia but a few years ago AMD was absolutely awful under Linux.

Yeah, not much wrong with i3 but I really like what you're doing with Sway. :)

Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @11:17AM (#18268419)
What was true a few years ago has little bearing on what's true now. People buying new cards should be buying AMD. If your current circumstances don't make this possible for you, though, then there's nothing wrong with staying on X.
Re:Sway 1.0-beta.1 release highlights by majewsky on Monday October 22, 2018 @05:09AM (#18273188)
> Yes, I also dislike nvidia but a few years ago AMD was absolutely awful under Linux.

I can assure you that these days are gone. I just got a new Thinkpad with a Ryzen APU and nearly [1] everything worked out of the box. The R9 Nano in my desktop also works perfectly with the AMDGPU driver.

[1] "Nearly" because I needed to add "iommu=soft" to the kernel parameters to get Linux to boot.

Re:Sway 1.0-beta.1 release highlights by half-kh-hacker on Sunday October 21, 2018 @12:35PM (#18268777)
I use nouveau on my 960, and the performance is pretty much the same. 10% seems like a big overstatement.
Re:Sway 1.0-beta.1 release highlights by bpye on Sunday October 21, 2018 @02:26PM (#18269364)
It very much depends upon the generation, the 1000 series cards aren't well supported but they do work.
Re:Sway 1.0-beta.1 release highlights by AnIdiotOnTheNet on Sunday October 21, 2018 @10:33AM (#18268126)
Unfortunately that's the world we live in. You can either keep your nvidia card and have the best hardware, or you can vote with your wallet and have a lack-luster experience. Pretty much been the story of using Linux Desktop for a long time.
Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:36AM (#18268140)
Your experience is not lackluster with non-nvidia cards. These days AMD cards are competetive in both price and performance.
Re:Sway 1.0-beta.1 release highlights by sz4kerto on Sunday October 21, 2018 @11:12AM (#18268380)
I bought my 1080Ti two years ago and have custom watercooling on it. I can spend a lot of money now and get an AMD card that's a bit slower and consumes much more power. Sure, I should be voting with my wallet but it's not a cheap vote.
Re:Sway 1.0-beta.1 release highlights by m45t3r on Sunday October 21, 2018 @03:39PM (#18269723)
What is your use case for external GPU? If you need a good GPU for gaming on Linux, it is better to sell your 1080ti and get a AMD RX580 or even AMD Vega. If it is for CUDA, you can use your CPU's IGP or buy a cheap AMD GPU for desktop and only use NVIDIA for CUDA.

So unless you don't have a IGP and your motherboard doesn't have spare PCI-e slots, it is better to use a dual GPU approach of if you really need a NVIDIA card. Otherwise selling your NVIDIA card and buying a AMD one is a good choice.

Of course, YMMV and you know better than me what is good for you.

Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @11:21AM (#18268443)
AMD cards are not slower, but they do get somewhat worse performance per watt.
Re:Sway 1.0-beta.1 release highlights by deltron3030 on Sunday October 21, 2018 @11:35AM (#18268525)
There might be an option to swap your nvidia card with your integrated GPU through some kernel modesetting scripts if your bios doesn't disable the integrated GPU.
Re:Sway 1.0-beta.1 release highlights by tbrock on Sunday October 21, 2018 @10:41AM (#18268159)
Can you not run sway with an Nvidia card?
Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:47AM (#18268206)
There are two Linux drivers for Nvidia GPUs: proprietary (nvidia) and open source (nouveau). Only the latter is supported by sway, and it has inferior performance and doesn't support newer cards well.
Re:Sway 1.0-beta.1 release highlights by AnIdiotOnTheNet on Sunday October 21, 2018 @10:48AM (#18268213)
You can, but only with nouveau, which performs considerably worse. This is because Sway only supports GBM and nVidia only supports EGLStreams.
Re:Sway 1.0-beta.1 release highlights by wasted_intel on Thursday October 25, 2018 @10:20AM (#18301081)
Thank you for all of the hard work you've put into this. i3/sway are what I love most about my Linux desktop!
Re:Sway 1.0-beta.1 release highlights by KitDuncan on Sunday October 21, 2018 @08:49AM (#18267762)
Very exited. Will install this on a Void VM and try it out.
Re:Sway 1.0-beta.1 release highlights by Sir_Cmpwn on Sunday October 21, 2018 @10:34AM (#18268132)
Note that the only hypervisor which is supported by sway is qemu.
Re:Sway 1.0-beta.1 release highlights by 7e on Sunday October 21, 2018 @05:24PM (#18270349)
Where can I find a fork where support for EGLStreams has been re-added?