News for hackers. Stuff that matters.
Re:Way Cooler tiling window manager by Apreche on Sunday July 02, 2017 @06:34AM (#14681875)
It's going to be a tough battle if they want to win my heart away from i3.
Re:Way Cooler tiling window manager by farresito on Sunday July 02, 2017 @07:28AM (#14682034)
Fear not, friend. There's a very active port of i3 to wayland: https://github.com/SirCmpwn/sway

I haven't personally tried it, but I have heard about it a few times, so I assume it's fairly good. This is the list of supported features, if you are interested: https://github.com/SirCmpwn/sway/issues/2

Re:Way Cooler tiling window manager by mort96 on Sunday July 02, 2017 @07:48AM (#14682084)
The problem for me is that i3 is only a part of the puzzle. I use sxhkd for a bunch of hotkeys; that has to be replaced. I use xdotool _a lot_, and I don't know if such functionality is even possible in wayland. I use scoot heavily, both as a way to screenshot from a hotkey (presumably easy to replace?) and as part of scripts; my script which locks the computer uses scrot, imagemagick and i3lock. There's probably a bunch of other small things in my system which will break by not having an X server too.
Re:Way Cooler tiling window manager by yjftsjthsd-h on Sunday July 02, 2017 @09:45AM (#14682463)
This is why I dislike Wayland. Forcing so much functionality through the WM means I can't just build my system out of small parts. I also do things that Wayland is specifically designed to break, like keylogging myself.
Re:Way Cooler tiling window manager by renox on Sunday July 02, 2017 @05:50PM (#14684539)
I agree with your first point against Wayland, but your second point isn't correct: Wayland's design is not meant to prevent keyloggers just to make them optional.
Re:Way Cooler tiling window manager by yjftsjthsd-h on Sunday July 02, 2017 @08:35PM (#14685100)
Same problem, really: now I have to find a window manager that natively supports key logging, rather than just running a small shell script in the background that listens for keyboard events.
Re:Way Cooler tiling window manager by farresito on Sunday July 02, 2017 @09:36AM (#14682425)
Understandable. One of the reasons I haven't switched is because so far my system works pretty well and I haven't had the need to use Wayland. What hotkeys do you use sxhkd for? I vaguely remember sxhkd supporting chords while i3 not doing so, but I don't remember more than that.
Re:Way Cooler tiling window manager by mort96 on Sunday July 02, 2017 @07:28PM (#14684844)
I use i3wm's `bindsym` for stuff that's related to window management, like moving around windows, resizing them, moving windows or focus to workspaces, etc. Other stuff, like volume control, screenshots (print screen -> take screenshot, upload to a web server, put URL in clipboard), mouse movement (with xdotool), etc. is handled through sxhkd. There's no reason I couldn't just use bindsym for all of that, but now non-windowing hotkeys is not coupled with the WM, so I could choose to switch window manager and still have all non-WM hotkeys work.
Re:Way Cooler tiling window manager by gingerlime on Sunday July 02, 2017 @10:11AM (#14682545)
Sounds interesting. Could you share your setup/workflow?
Re:Way Cooler tiling window manager by mort96 on Sunday July 02, 2017 @07:40PM (#14684888)
Here's my git repository with all dotfiles and such: https://github.com/mortie/nixConf

I use i3wm (well, i3-gaps) as the WM. Xdotool is just used to move the cursor with hotkeys: https://github.com/mortie/nixConf/blob/7c12d4215c703de0c6935..., scrot is used both for a print screen button (scrot takes the picture, then it's copied to my server with scp, and the URL is put in the clipboard: https://github.com/mortie/nixConf/blob/master/bin/mshot) and for i3lock (scrot takes the picture, imagemagick pixelates, i3lock shows it: https://github.com/mortie/nixConf/blob/master/bin/mlock).

I also have a project called dedaemon: https://github.com/mortie/dedaemon. That uses udev to listen to events, like displays or input devices being connected or disconnected, and does a preconfigured to them. I for example have these lines, which sets the resolution and frame rate to any connected monitor to the highest possible, and positions it to the left of the primary monitor: https://github.com/mortie/nixConf/blob/7c12d4215c703de0c6935.... I imagine porting that functionality to wayland would be really hard, and probalby require writing custom extensions to each window manager separately.

There's also this other project I have, which isn't really related to wayland, but which I still feel is relevant: mmenu - https://github.com/mortie/mmenu. It just makes dmenu work as a calculator, running the input through python if it doesn't match a program in your $PATH, plus some other features.

Re:Way Cooler tiling window manager by gingerlime on Monday July 03, 2017 @02:27PM (#14690366)
Thanks for sharing! I really appreciate it. Already "borrowed" the screen lock solution, and will look into other productivity enhancements :)
Re:Way Cooler tiling window manager by TokenDiversity on Sunday July 02, 2017 @08:04AM (#14682127)
You sound like someone who'd like keynav http://www.semicomplete.com/projects/keynav
Re:Way Cooler tiling window manager by yjftsjthsd-h on Sunday July 02, 2017 @09:39AM (#14682432)
Since it wasn't linked last time I looked, code is also at https://github.com/jordansissel/keynav

Shameless plug: I maintain a fork at https://github.com/yjftsjthsd-g/keynav because the original author hasn't been active in a while.

Edit: wrong link :)

Re:Way Cooler tiling window manager by mort96 on Friday July 07, 2017 @05:35AM (#14717158)
That looks pretty interesting. stole the idea and made something similar in bash: https://github.com/mortie/nixConf/blob/master/bin/mousetree, with hotkeys configured with sxhkd: https://github.com/mortie/nixConf/blob/d87f241963edc49a57171...
Re:Way Cooler tiling window manager by TokenDiversity on Sunday July 02, 2017 @12:35PM (#14683170)
Not so shameless if you add a scroll functionality I tell you lol.

Actually even otherwise, it's not like you're earning money so no need to disclaim!

Re:Way Cooler tiling window manager by yjftsjthsd-h on Monday July 03, 2017 @09:47PM (#14692905)
Heh, so I went to look and see how hard it would be to simulate mouse scrolling, and the answer is... none. Literally none. Because X11 "mouse scroll" events are represented as button presses. Mouse buttons are 1=left, 2=middle, 3=right, 4=scroll-up, 5=scroll-down. So you just stick the relevant lines in your keynavrc; ex.

   i click 4                                                                                                                             
   e click 5                                                                                                                             
That said, I may make an effort to document this better.
Re:Way Cooler tiling window manager by TokenDiversity on Tuesday July 04, 2017 @05:02AM (#14694556)
I saw, I came here to thank and noticed you replied :)
Re:Way Cooler tiling window manager by yjftsjthsd-h on Sunday July 02, 2017 @08:34PM (#14685092)
Hm. That would be useful. I might have to do that.
Re:Way Cooler tiling window manager by virtualwhys on Sunday July 02, 2017 @08:52AM (#14682268)
> I make unoriginal projects with better code than the thing they rip off.

Nice github tagline for SirCmpwn ;-)

I've checked the linked issue from time-to-time, looks like it's getting really close to feature complete now. Will probably explore Wayland + Sway after new laptop purchase later this year.

In other news, i3 has been at the very core of my computing experience for 5 years running, absolutely fantastic application.

Re:Way Cooler tiling window manager by actsasbuffoon on Sunday July 02, 2017 @07:37AM (#14682056)
i3 is my #1 reason for wanting to switch from MacOS to Linux. I love a good tiling window manager, and the workarounds to emulate a tiling WM in MacOS just aren’t close enough to the real thing.
Re:Way Cooler tiling window manager by tom4000 on Sunday July 02, 2017 @06:06PM (#14684596)
Did you try [chunkwm](https://github.com/koekeishiya/chunkwm) yet? It's the successor of kwm which I have tried on macOS. Mainly I use i3 at Linux but for some work I have to use macOS as well. The only native apps which feel Linux like are iTerm and Emacs (the mac port) because it's possible to suppress the window decorations. Every other native app takes for a real tiling wm too much space with its Titel bar and other frames.
Re:Way Cooler tiling window manager by bathtub on Sunday July 02, 2017 @10:12AM (#14682554)
I did this recently for the same reason.

Do not wait and get a Linux system with i3 tomorrow. You will be so much faster and more structured in your daily workflow than with Alt-Tab.

A nice side effect: Apps feel much faster than on OSX. I don't know why but everything is snappier and just more resonsive despite a much weaker CPU and same hires screen on the Linux system. Especially the terminal rendering and application switching which is instant.

Re:Way Cooler tiling window manager by Null-Set on Sunday July 02, 2017 @11:54AM (#14683041)
It might have to do with the transition animations in OSX. I found a long time ago that turning off the animations in Windows makes a system feel a while lot more responsive.
Re:Way Cooler tiling window manager by city41 on Sunday July 02, 2017 @02:20PM (#14683674)
I switched from OSX to Linux specifically for i3. Linux is still a pretty annoying OS with lots of little to even big problems like NetworkManager flaking out, suspend/resume being flaky, trackpad annoyances, etc. But despite all of that, I still use Linux because i3 is that damn good. i3 has fundamentally made computing more enjoyable, and enables me to stay "in the flow" much more.
Re:Way Cooler tiling window manager by dijit on Sunday July 02, 2017 @04:40PM (#14684232)
Have you tried out openbsd?

Not trying to start a flame war but once I managed to install it how I liked the entire system felt so cohesive and well designed. (Ifconfig handling wpa for instance) and it turned out to be so much lighter that my laptops battery life went up 20%.

It was an older thinkpad though. So I guess YMMV.

Re:Way Cooler tiling window manager by city41 on Sunday July 02, 2017 @05:13PM (#14684375)
I like the BSDs in general and have used them in the past. But for my work I can only use OSX or Linux, as some of the stuff I need is only supported on those OSes. I could probably make a BSD work if I really wanted to, but it's easier to just go with the flow on some things.
Re:Way Cooler tiling window manager by itomato on Sunday July 02, 2017 @10:42AM (#14682673)
You can run another window manager (i3) under Xquartz.

http://fanf.livejournal.com/142372.html

Re:Way Cooler tiling window manager by city41 on Sunday July 02, 2017 @02:21PM (#14683677)
This isn't really helpful because the vast majority of OSX apps do not use X11.
Re:Way Cooler tiling window manager by itomato on Thursday July 06, 2017 @10:53AM (#14710841)
Maybe Amethyst is your jam: https://ianyh.com/amethyst/
Re:Way Cooler tiling window manager by darkr on Sunday July 02, 2017 @03:44PM (#14684004)
by workarounds did you mean amethyst?

As a long time awesomeWM (and other tiling WM) user, I've found it to be more than acceptable.

Re:Way Cooler tiling window manager by dom0 on Sunday July 02, 2017 @10:05AM (#14682534)
KDE managed to do that with me and it isn't even a tiling WM ... and I spent quite a lot of time on i3pystatus (and somewhat less time on j4-dmenu-desktop).
Re:Way Cooler tiling window manager by JetSpiegel on Sunday July 02, 2017 @11:32AM (#14682930)
And for i3 on Wayland there's already Sway.
Re:Way Cooler tiling window manager by modin on Sunday July 02, 2017 @06:37AM (#14681885)
I feel the same way, although Wayland is a good perk. Will check it out.