8 ms·
Switching to the i3 window manager
- eloeffler 5y agoA very nice addition to i3 is pass, the paswordmanager which comes with passmenu that lets you read and autotype passwords with dmenu.
- eurasiantiger 5y agoI never, ever use these autotyping features; they are a security risk. Is my paranoia justified?
- eloeffler 5y agoAs far as I can assess this, I believe it is safer to do this instead of copying to the clipboard. The clipboard might be read by a malicious process while autotype with passmeni will only pipe the password to xdotool and that will generate keystrokes. it's only important to have the correct field selected before autotyping or you might end up googling your password :)
- eurasiantiger 5y agoA malicious process could also do many other things. I think the most likely vector for autotyping attacks is simple phishing / clickjacking.
- Normal_gaussian 5y agoFor general readers: Its pretty safe when done via a browser plugin to a website because the plugin both verifies the website (anti-phishing) and uses auto-fill rather than type (it directly injects into the target field rather than typing, so clickjacking isn't a risk). Its rare that I use passwords outside of the browser now, but windows and mac allow system credentials to mitigate the same risks for desktop apps (the app must support it).
- eloeffler 5y agoTrue, but wouldn't that apply to manual password entry as much?
- hyperstar 5y agoI don't think so. https://security.stackexchange.com/a/171916/257701 https://security.stackexchange.com/a/171916/257701
- megous 5y agoThe link says you should not use the autotype, but use the browser password manager instead.
- captn3m0 5y agoI use both browserpass, and pass and consider the pass+dmenu model to be more secure. I keep auto-fill disabled on the browserpass extension, and recommend doing the same for any password manager. Mainly because bugs in browser extensions have led to easily exploitable bugs where the extension could be tricked into thinking it was filling the password for google.com, while the page wasn't actually google.com (dubbed Auto-fill sweep attacks on pg25 at https://aaltodoc.aalto.fi/bitstream/handle/123456789/27984/master_Manihatty_Bojan_Viswanathan_2017.pdf https://aaltodoc.aalto.fi/bitstream/handle/123456789/27984/m...)
- throwaway59553 5y agoI3 is the only software I miss when working on Windows.
- orwin 5y agoI don't know, i don't understand how networking works with windows 10, and the memories i have of versioning with IIS (is that stuff still a thing on win10?) still makes me cry.
- throwaway59553 5y agoA window manager (I3) and IIS (web server) are completely unrelated. Or am I missing something?
- Deukhoofd 5y agoFancyZones in PowerToys might fill some of that void. https://docs.microsoft.com/en-us/windows/powertoys/fancyzones https://docs.microsoft.com/en-us/windows/powertoys/fancyzone...
- throwaway59553 5y agoThank you, I'll check it out.
- dijit 5y agoSome of these things (compositor, notably) come by default if you use Sway, which is an i3 compatible reimplementation of i3 written in rust for Wayland. If there’s interest I could do a similar breakdown of my sway config, as certain software is X11 only (rofi, notably) but there are fantastic wayland native replacements.
- strange_aeons 5y agoSway is written in C, though.
- dijit 5y agoHuh. You’re right. I wonder why I thought it was written in rust. How terrible of me not to check before saying that.
- ducktective 5y agoConfusion with way-cooler? https://github.com/way-cooler/way-cooler https://github.com/way-cooler/way-cooler
- saladuh 5y agoNot to come off like an ass, but honestly when I read 'rust' I laughed. If you knew how the founders of Sway feel about rust + the difficulties people have had with creating rust wayland compositors (particularly with wlroots), the idea of Sway being quoted as written in rust is almost satirical
- lavabiopsy 5y agoI'm not sure what difficulty you mean aside from way cooler, please check out smithay/anvil if you want to see decent progress on a rust wayland implementation: https://github.com/Smithay/smithay https://github.com/Smithay/smithay Wlroots is a bit of an extreme case as the API is mostly idiomatic to low-level C and not easy to wrap in safe rust, I believe the developers are also not keen on supporting C++ either. This is intentional design choice on their part, as "language-binding-friendly" C APIs usually tend to expose some kind of reference counting or smart pointers that make it easy to adapt to a higher level language.
- gigatexal 5y agoI love, love, love i3.
- xupybd 5y agoA great write up. I used i3 for a while. Now I find myself back in Windows. It's easier to use but I do miss a full screen with no borders wasting space. Also I loved i3 gaps for the look. Even though I don't like borders wasting space. It doesn't make sense.
- matheusmoreira 5y agoi3 changed my life. As many workspaces as I want, any window arrangement I want, including full screen. No wasted space. Wrote my own script to add nvidia GPU information to the bar. Bound important programs like browsers and terminals to shortcuts. It's amazing, it just gets out of my way and I get frustrated whenever I have to use anything else.
- jcelerier 5y agoI love i3 but it's really missing a way to group workspaces, I use https://github.com/infokiller/i3-workspace-groups https://github.com/infokiller/i3-workspace-groups but it's subpar, what I'd really really like is a native workspace matrix...
- legal_penguin 5y agoThere was a discussion about implementing a similar feature natively, but it didn't go anywhere. https://github.com/i3/i3/issues/4024 https://github.com/i3/i3/issues/4024
- matheusmoreira 5y agoThis sounds nice.
- j3romee 5y agoNot exactly the same purpose but here is a small tool I wrote to group workspaces across all monitors : https://github.com/J3rome/i3-multimonitor-workspace https://github.com/J3rome/i3-multimonitor-workspace TLDR: global workspace span across all monitors. Changing workspace change for all monitors (Similar to what happen in windows & macos). In my opinion, it allows for a better separation between workspaces/tasks when working with multiple monitors. It's an MVP/alpha software. Need some optimisations but it does the job (been using it daily for over a year now).
- globular-toast 5y agoI've been using i3 for a few years now. I wouldn't go back to a non-tiling window manager at this point. Initially I was drawn to stumpwm [0] because it's built with Common Lisp and therefore very hackable. There is also exwm [1] which uses emacs, but I haven't tried it. In practice, though, I've found that I rarely want to write any hacks for i3 itself. But this article is very cool and I may use some of this stuff. The one thing I have spent some time on is my i3blocks config which has some things I like such as CPU/RAM usage monitors and ability to control pulseaudio (switch outputs, control volume etc.). I use i3 at work but for more than a year now at home I've been using sway. I've had a few bugs with Firefox on Wayland, but currently it's all working very well. Sway is excellent. [0] https://stumpwm.github.io/ https://stumpwm.github.io/ [1] https://github.com/ch11ng/exwm https://github.com/ch11ng/exwm
- 12ian34 5y agoWhen starting out with Arch Linux 5 years ago, choosing a desktop environment and/or window manager was one of the key decisions. i3's excellent documentation and principles[0] really sold it for me. The base config is full of sensible defaults and the learning curve for shortcuts was relatively short for me. I use it alone as my WM with picom as compositor (which is unnecessary) and no DE. I've never looked back and whilst there are some alternatives in win/OSX, I miss it so much when I have to use a Mac or boot into Windows... having to constantly move, resize and fiddle with app windows is such a pain I'm glad I don't have to worry about with i3. Bonus tip: I recently switched from i3status to i3status-rs[1] which provides an excellent status bar for i3 (developed with Rust, which I hear is apparently a major selling point for many). I'd strongly recommend this. Linux is my daily desktop+laptop driver for work and personal life, and i3 is the main reason for this. To me, DEs are full of bloat. I would stress, though, that it's not for everyone at all. [0]: https://i3wm.org/ https://i3wm.org/ [1]: https://github.com/greshake/i3status-rust https://github.com/greshake/i3status-rust
- rjzzleep 5y agoI used to use awesome like the OP. I used bspwm for a while and am now using i3 as the daily driver. Here are a few of the issues that arise when using a tiling window manager: 1. Per display xrandr settings, or xsettings 2. Statusbar losing tray icons when switching screens or reloading. Tray icons having the wrong size or not showing up at all. Part of the reason is that all tray icons used to be Xembed based. Then came appindicators with KDE having KStatusNotifierItems which may just be a Freedesktop StatusNotifierItem implementation. Polybar too frequently had this issue[0]. The only third party statusbar that properly implements this with using sni-proxy is a haskell based one which's name I forgot which is hard to use on Archlinux if you use the dynamically linked haskell packages. My compromise right now is to use lxqt with i3, which seems to be a somewhat lightweight wrapper around xsettingsd and a lightweight session implementation. I really prefer Awesome's tiling mechanism over i3, but i3's multiscreen just works. No weird window disappearing bugs etc. A lot of these issues seem to have been fixed inside of Gnome directly or inside of KDE, but for some annoying reason every DE seems to have to solve these issues from scratch, which is just a standard Linux issue. I've been using linux as a DE for multiple decades now, so you'd think these issues would be fixed at a more fundamental level at some point, but no ... [0] https://github.com/polybar/polybar/issues/2010 https://github.com/polybar/polybar/issues/2010
- checkyoursudo 5y agoI like to change things up. I try different DEs. I always come back to i3. The minimalism and distinct lack of ... stuff ... I just can't use full blown desktops anymore. The write-up seems like a decent introduction. It mentions that you can use alternatives to the i3bar, but you can also use alternate status programs. I like i3PyStatus as an alternative to i3Status. PyStatus lets you write custom modules to output pretty much anything you want to the status bar (whichever status bar you want too, probably, though I just use i3bar).
- cdogl 5y agoBig fan of I3. This may sound superficial, but I've moved away from tiling window managers because everything just looks so ugly. There's something to be said for having a window at ~75% full size with drop shadow around it and a bit of your desktop background showing. It's easier on the eyes. I say this with a heavy hand on heart because I was an enthusiastic user and advocate for xmonad and I3 for several years.
- nsaje 5y agoIf you want background showing, check out i3-gaps https://github.com/OstOgBajer/i3-gaps https://github.com/OstOgBajer/i3-gaps
- remedan 5y agoI encourage you to browse /r/unixporn [0]. I my opinion, a nicely configured tiling wm can look just as good as a stacking wm. And people on the subreddit are happy to share configs, so you don't have to spend more effort than some copying and pasting. [0] https://www.reddit.com/r/unixporn/ https://www.reddit.com/r/unixporn/
- 1_player 5y agoThose /r/unixporn screenshots are as real as a McDonald's burger in an ad. In both cases it's mostly careful staging to make it appear better than it is in real life (or when you're actually using your computer).
- b215826 5y agoSome posts on /r/unixporn don't even look like desktops: https://www.reddit.com/r/unixporn/comments/ovb5bh/openbox_frida_kahlo/ https://www.reddit.com/r/unixporn/comments/ovb5bh/openbox_fr...
- Karrot_Kream 5y ago> Those /r/unixporn screenshots are as real as a McDonald's burger in an ad. Haha this is a great line! I'm gonna use this on my friends :D
- carpenecopinum 5y agoI really appreciate the detail on the "Remaining bits" part. I like the minimalism/simplicity of i3 and the philosophy of doing a few things well, rather than everything a bit, but it also makes it hard sometimes to know what pieces of the puzzle one's still missing. Especially since it's a puzzle with no unique solution, so I find it really valuable to learn of an additional perspective.
- dugmartin 5y agoIf you want to try i3 without all the work mentioned in the article checkout Regolith. It is an easily installable full desktop environment that bundles i3 with a launcher, notifier and other apps. https://regolith-linux.org/ https://regolith-linux.org/
- 10GBps 5y ago> it can feel quite overwhelming as you need to visualize the tree in your head And that's why I don't use a tiling window manager. I prefer to use my brain for actual work, not futzing around with configuration and OS BS. I mean if it takes 3000 lines of code to make your friggin window manager work then you're doing it wrong. I happen to like overlapping windows, it's just natural and free-flowing. I don't mind wasting a little space when I have a 6400x1200 desktop.
- deleted 5y ago[deleted]
- Pius_IX 5y agoFirst of all, you are absolutely right. Using your brain for actual work and not futzing around with configuration is always a great choice. But honestly, the amount of mental energy the author seems to put into this is way beyond anything I would consider needed to use a tiling window manager. Just the base configuration with an application launcher installed is pretty much enough for most people. And I have never in my whole live visualized the tree in my head. For me at least i3 is a simple and performance conscious way to use my small/old laptop screen, easily switch between the 10 virtual desktops and either use a stack or a side-by-side view. Sometimes I build a very, very simple tree if I use a ton of terminals at once. I feel like these kind of 'I installed a new kind of desktop environment'-blog posts are just desperate for any kind of content that exceeds 'I installed it and fiddled around in the configuration file to adjust it to my keyboard and then it worked well enough. Over the next couple of weeks I kept adjusting small things to better fit my workflow. After a while I got used to the shortcuts. Oh, and I changed the background.'
- sndwnm 5y agoThis. The author is obsessed, but that makes it fun to read. I've been using i3 exclusively for close to a decade and never used a window placement other than 1-3 windows in a horizontal row; switching to tabbed layout when I want something fullscreen; and rarely, for specific applications, a floating layout. Rather, I use a lot of workspaces (16) and put windows in those that I expect to find them. My point is, you don't need to use a WM/DE like others are using it, but how you prefer to use it. i3 is flexible enough to allow many styles, so choosing to use it might be mostly about whether you think it can cover your preferences.
- gbuk2013 5y agoFor my new job I had to switch to Ubuntu on my corporate laptop and I installed Regolith (https://regolith-linux.org/ https://regolith-linux.org/) on it which is basically i3 on top of Gnome (was using Awesome WM on Debian before) and so far it is a very pleasant experience 9 month in.
- cassepipe 5y agoDoes Regolith offer an out-of-the-box i3 experience or do you have to tweak it the same ?
- codethief 5y agoAFAIK (and judging by the screenshots) the former
- gbuk2013 5y agoI have done no tweaking at all - never used i3 before but it has everything I need. It also has the Gnome config tools available which is nice to have in one place for changing things like volume and external display settings (fine to do it without but I am getting lazy with age).
- ssivark 5y agoRegolith is literally just i3 (plus Gnome) with sane defaults. FWIW, it's also slowly getting decoupled from the underlying Ubuntu infrastructure. Eg, here's regolith for Arch linux: https://github.com/gardotd426/regolith-de https://github.com/gardotd426/regolith-de
- clktmr 5y agoFWIW I recommend everyone to try the `stacking` layout instead of `tabbed`. It makes navigation much more intuitive if you're mainly using horizontal splits: Left/right to focus your split and up/down to select a window from that stack.
- satysin 5y agoTiling window managers are great and they are the biggest overall UX difference I miss when using macOS and Windows vs Linux. I've tried many things for both macOS and Windows to get that "i3wm feel" but nothing quite scratches the itch. macOS can get close but sadly requires disabling security features in macOS for deep integration and that is something I don't care to entertain personally. So I make do with macOS's Spaces and Magnet (a nice third party application for hotkey window 'snapping', there are good free/oss alternatives also such as Spectacle). Windows 11 is getting some more powerful snapping options plus Microsoft's Fancy Zones PowerToy is quite nice although a far cry from i3 or similar. When on a laptop a twm is freakin' awesome* as dealing with overlapping windows is such a pain in the ass on a 13-15" screen. Is a little sad when I see people fiddling about to get two or three windows resized using a trackpad. Hopefully with the enhancements in Windows 11 we will see more progress towards automatic window layout and management . While unlikely it would be nice if Apple take note for Microsoft's changes also. *pun intended ;)
- bartvk 5y agoFor macOS, I use Amethyst, recommended here on HN and works fine without disabling security features. https://github.com/ianyh/Amethyst https://github.com/ianyh/Amethyst
- satysin 5y agoI have used Amethyst and it works alright but is still a long way from i3 or dwm. Mostly because dealing with different virtual desktops (Spaces) is quite janky as it isn't managed by the wm but automating macOS in ways it wasn't designed to be automated.
- dkersten 5y agoI use it when I use OS X, but I find it’s not substitute for i3/sway. It’s better than nothing but I still greatly miss a “native” tiling WM when using it.
- eeiac928 5y agoThe Pi's LXDE taskbar button toggle behavior fixes OSX's. Further personalizing in lxde-pi-rc.xml is awesome comfy.
- messo 5y agoI switched from i3 to Sway a year ago on my work laptop. I was looking into using Sway (instead of KDE) on my personal laptop too, but have had to drop it as Sway lacks the ability to load color profiles. I calibrate my screens for photo editing with darktable, so this is a hard requirement, so I guess I'll have to go back to i3.
- dkersten 5y agoI switched to sway last year when I bought a new laptop and had trouble with screen tearing on i3. It’s been working perfectly for me but I also haven’t done anything that needed me to load colour profiles. One thing I do still need to use X for is playing windows games with proton. They run extremely badly under xwayland (but differently badly: some run slowly, some have mouse resolution offset from screen resolution, some don’t accept input at all...)
- a3n 5y agoI used to use Awesome. And I3 before that. My young adult son would sometimes ask to do something quick on my laptop. Hilarity ensued. Now I'm a truck driver. Bought a new laptop awhile back. Don't have time to fiddle (drive, eat, sleep) so I left the default Mint desktop. Right now I'm being unloaded at a distribution center in Alabama. They tell me it will be 5 to 6 hours until they're done. No labor on Labor Day, I guess. So I'll install Regolith, based on a couple comments here, and see how that goes. I actually kinda miss fiddling.
- codethief 5y ago> Now I'm a truck driver. […] I actually kinda miss fiddling. What did you do before and why did you become a truck driver, if I may ask?
- a3n 5y agoOriginally SW dev, most recently SWQA. I rage quit my last job over a conflict with a dev manager. No one else was interested in me. Been driving three years and change. I mostly like it. I've never had a meeting, standup or otherwise. I miss my couch, weekends and the money. But it's pretty low stress. No SO, and my son is grown.
- codethief 5y agoWow, that's quite a career change! Thanks for the insight! Personally, the one thing that saved me from going crazy during the pandemic were precisely those standup meetings (via Zoom) – otherwise I probably wouldn't have had any human interaction for months. But I suppose it all depends on who your colleagues are.
- diragon 5y agoi3 and its Wayland port sway are the best things that have happened to UX.
- ancarda 5y agoIs there any way to add a close button (or any button) through the IPC mechanism? I know you can do something like $Mod+x to close a window, but I'd honestly rather just use a button. Maybe the button can have a tooltip reminding you what close is set to I have a feeling the i3 maintainers won't want to add a close button, however.
- sjdrc 5y agoWhen you full screen some windows that have window decorators turned on (like browsers) then they show the minimise, close, maximise buttons. However, I always try to use the built in hot keys for closing a program rather than unceremoniously killing them with the close client hotkey.
- sjdrc 5y agoI used a heavily modified build of DWM for years, but when I discovered Regolith I moved to that. There is a third party project porting it to Arch. Echoing a few other comments here, regolith is just super convenient having sane defaults out of the box, along with all the other conveniences of having a desktop environment. I really appreciate how well and in depth this article was, I’ll probably make a couple of changes to my setup based on it, thanks!
- urlwolf 5y agoI'm on openbox (non tiling) and I'm extremely happy. I was on tiling wm before. You can do a lot with openbox. Now I open windows, not tabs, for browser pages. And search for window title to teleport. The spatial arrangement of 'tabs' adds a layer of mnemonics
- b215826 5y agoWhen I first started using i3 (which is also the first tiling WM that I used for more than an hour), I found the experience to be a bit annoying. By default, i3 uses a tiled layout which becomes cumbersome to use on a laptop monitor when more than two windows are open since each window gets very little screen real estate. My experience drastically changed when I set the default layout to tabbed, so that initially each window fills the screen.
- riccardomc 5y agoI love i3. Like many, I've been using it for years. Here's my config files with a lot of i3 goodies: https://github.com/riccardomc/rcs https://github.com/riccardomc/rcs Maybe you'll find something useful in there.
- sandreas 5y agoFor those on KDE just wanna try a tiling-WM-ish behaviour, I found Kröhnkite[1] pretty neat. It cannot be compared to a real tiling WM, but it's nice to get a feeling what this is all about. DWM like behaviour is intended... [1] https://github.com/esjeon/krohnkite https://github.com/esjeon/krohnkite
- VortexDream 5y agoAwesomewm is and always has been my favorite window manager. My biggest issue with it, i3 and other barebones WMs is that there are a lot of edge cases covered by traditional DEs that you suddenly have to solve yourself. And often they're things you first discover when you're trying to do a thing affected by that edge case and you waste a lot of time doing something other than what you actually wanted to do. So I've begrudgingly moved back to KDE. It's customizable and capable and is close enough to what I expect a DE to be without wasting my time too much.
- fastssd 5y agoIs there any WM that supports mouse use just as much as the keyboard? I love keyboard navigation, don't get me wrong, but sometimes I just want to lean back and navigate using just the mouse
- deleted 5y ago[deleted]