i3-auto-layout
autotiling
i3-auto-layout | autotiling | |
---|---|---|
3 | 42 | |
141 | 826 | |
- | - | |
0.0 | 5.1 | |
12 months ago | 16 days ago | |
Rust | Python | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
i3-auto-layout
-
Rethinking Window Management in Gnome
The problem with this fairly complex solution is that the easier path by far is simpler window arrangements, multiple monitors, and many workspaces. Once you have more windows than fit on a workspace its easier just to have more workspaces and 1-3 windows is what basically universally fits on most monitors.
If you organize more things in the same space you probably need indivdual apps that themselves have tabs like browsers, editors, IDEs rather than more windows.
Personally I use https://github.com/chmln/i3-auto-layout to make slightly better layouts automatically be automatically alternating between v and h splits and find this fits my needs 95% of the time.
Shit work under i3 is already very small but if you wanted to reduce it further I think you could probably go a long way with a very simple feature.
Add a save button that saves current layout to a list like so
Browser, calculator
Browser, pdf reader
terminal terminal terminal
ide terminal terminal
Then have a restore function that simply walks the list finds the entry that matches the kind and number of window and shoves existing windows into that layout. You can at creation time use something like i3-save-tree, edit the json, yada yada but its all fairly manual and I think for the use case it would be relatively simpler. The few non standard all match for me a simple pattern eg there really isn't 2 different ways I want IDE terminal terminal
- XMonad – The Automated Tiling WM
-
I3altlayout
i3-auto-layout is faster and less resource usage
autotiling
-
I cannot write "^" in the terminal
# i1 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! # # This config file uses keycodes (bindsym) and was written for the QWERTY # layout. # # To get a config file with the same key positions, but for your current # layout, use the i3-config-wizard # The modifier used all along this configuration file. It is the super key. # Mod1 = Alt, Mod4 = super set $mod Mod4 # local conf. Differ depending on the computer include ~/.config/i3/local.conf # A nice autotiling # needs to use the script in https://github.com/nwg-piotr/autotiling exec_always --no-startup-id autotiling # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. # font pango:monospace 12 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). font pango:DejaVu Sans Mono 14 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart exec --no-startup-id dex --autostart --environment i3 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet # use these keys for focus, movement, and resize directions when reaching for # the arrows is not convenient set $up k set $down j set $left h set $right l # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+t exec i3-sensible-terminal # start applications # bindsym $mod+Shift+f exec firefox # bindsym $mod+Shift+z exec zathura # terminal applications # Cause i use konsole terminal... # bindsym $mod+Shift+r exec konsole -e ranger # bindsym $mod+Shift+n exec konsole -e nvim # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) # bindsym $mod+d exec --no-startup-id dmenu_run # A more modern dmenu replacement is rofi: set $rofi exec "rofi -modi drun,run -show drun -show-icons" # some added scripts set $rofi_scripts ~/.config/rofi bindsym $mod+d exec "rofi -modi drun,run -show drun -show-icons" # doesn't work bindsym $mod+b exec $rofi_scripts/i3_switch_workspace.sh bindsym $mod+Shift+b exec "rofi -show window -show-icons" # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+$left focus left bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+$left move left bindsym $mod+Shift+$down move down bindsym $mod+Shift+$up move up bindsym $mod+Shift+$right move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+Shift+v split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container bindsym $mod+z focus child # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+c scratchpad show # move the currently focused window to the scratchpad bindsym $mod+Shift+c move scratchpad # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 #navigate workspaces next / previous, as for the navigation after the f/t bindsym $mod+semicolon workspace next bindsym $mod+comma workspace prev # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # For example, if you are on the workspace 1 and you hit $mod+2, you’ll switch to workspace 2. # Then, if you hit $mod+2 again, you’ll go back to your previous workspaces, workspace 1. workspace_auto_back_and_forth no # reload the configuration file # bindsym $mod+Shift+c reload bindsym $mod+r restart # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym $left resize shrink width 10 px or 10 ppt bindsym $down resize grow height 10 px or 10 ppt bindsym $up resize shrink height 10 px or 10 ppt bindsym $right resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+Shift+s mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { font pango:Exo2, FontAwesome5Free, FontAwesome5Brands, SymbolsNerdFont 12 status_command i3blocks position bottom } # for polybar # exec_always --no-startup-id $HOME/polybar-collection/launch.sh # a mode to exit, more practical that the $mod+Shift+e that forces the use of mouse. mode "exit: [l]ogout, [r]eboot, [s]hutdown" { bindsym l exec i3-msg exit bindsym r exec systemctl reboot bindsym s exec systemctl poweroff bindsym Escape mode "default" bindsym Return mode "default" bindsym $mod+x mode "default" } # I added fullscreen disable in order for the message to always be visible bindsym $mod+x fullscreen disable mode "exit: [l]ogout, [r]eboot, [s]hutdown" # command to rename current workspace, n for 'name' # NOT A GOOD IDEA. Would break the usefullness of the binding for workspaces 1,2,3... # bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New workspace name: ' # bindsym $mod+Shift+n exec i3-input -F 'title_format "%s"' -P 'New windows name: ' # configure gaps gaps inner 5 gaps outer 5 # need to be installed! config file in /etc/xdg/picom.conf # used by flashfocus exec_always --no-startup-id picom # See https://github.com/fennerm/flashfocus/wiki exec_always --no-startup-id flashfocus # flashfocus can also be bound to a keystroke. # bindsym $mod+n exec --no-startup-id flash_window # Not really for i3, but to put zathura as default viewer: # source https://wiki.archlinux.org/title/zathura # xdg-mime default org.pwmt.zathura.desktop application/pdf
-
Is there a way to customize how new windows are gonna be arranged on creation?
Check out https://github.com/nwg-piotr/autotiling I think I even left the configuration as is and the tiling is much better now.
- Change windows layout
-
Master and stack layout, similar to dwm
autotiling --limit 2 is close enough https://github.com/nwg-piotr/autotiling
-
I am struggling with fully understanding how i3 will tile
If you do want some "smart" behaviour as to how a new window will split automatically, try the autotiling script.
-
Dynamic tiling WM with easier config like i3?
https://github.com/nwg-piotr/autotiling does it work for you?
-
Outside of Sway, are there any mature tiling window managers that are compatible with Wayland?
Autotiling for i3 and Sway
-
nwg-shell 0.3.8 released
Original depth limit feature contributed to the Autotiling repository by @Syphdias.
-
How do you like sway
If you want to stay on sway you can try autotiling.
-
People who uses i3 (or any wm) do you use only one monitor, or you have a multiple monitors setup?
Have tried lots of window managers including awesome, but there's always something annoying that sends me back to i3. I use this to solve the problems you're referring to: https://github.com/nwg-piotr/autotiling
What are some alternatives?
spectrwm - A small dynamic tiling window manager for X11.
river - [mirror] A dynamic tiling Wayland compositor
bspwm - A tiling window manager based on binary space partitioning
swayscripts - A collection of Scripts useful for swaywm
autotiling-rs - Autotiling for sway (and possibly i3)
i3-alternating-layout - Scripts to open new windows in i3wm using alternating layouts (splith/splitv) for each new window
swaymgr - Sway autotiling manager
dotfiles - A collection of my dotfiles and other configurations
i3wm-themer - 🎨 Theme collection manager for i3-wm
Amethyst - Automatic tiling window manager for macOS à la xmonad.
xdg-desktop-portal-wlr - xdg-desktop-portal backend for wlroots