diff options
author | Joursoir <chat@joursoir.net> | 2024-05-10 12:10:14 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2024-05-20 12:10:14 +0300 |
commit | 9ddcf71ef6325e7e20360ff9d2a71523df840f9a (patch) | |
tree | df2a0fbf8bc95d0662b29616df23095d5c872278 | |
parent | c9957214a42f85c358caf3ff73f699f0cc83835c (diff) | |
download | dotfiles-9ddcf71ef6325e7e20360ff9d2a71523df840f9a.tar.gz dotfiles-9ddcf71ef6325e7e20360ff9d2a71523df840f9a.tar.bz2 dotfiles-9ddcf71ef6325e7e20360ff9d2a71523df840f9a.zip |
dotconfig/i3: support multi-monitor environment
-rw-r--r-- | dotconfig/i3/config | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dotconfig/i3/config b/dotconfig/i3/config index 3622841..b14aee2 100644 --- a/dotconfig/i3/config +++ b/dotconfig/i3/config @@ -2,6 +2,10 @@ # # Please see https://i3wm.org/docs/userguide.html for a complete reference! +# Run `xrandr --listmonitors` to get a list of monitors +set $monitor1 eDP +set $monitor2 HDMI-A-0 + # Use 'Windows' key as modifier set $mod Mod4 @@ -104,6 +108,19 @@ set $ws8 "8" set $ws9 "9" set $ws10 "10" +# Odd-even approach: Odd workspaces onto first monitor and even on the other. +# If a second monitor isn't connected, then they will go on the first monitor. +workspace $ws1 output $monitor1 +workspace $ws2 output $monitor2 $monitor1 +workspace $ws3 output $monitor1 +workspace $ws4 output $monitor2 $monitor1 +workspace $ws5 output $monitor1 +workspace $ws6 output $monitor2 $monitor1 +workspace $ws7 output $monitor1 +workspace $ws8 output $monitor2 $monitor1 +workspace $ws9 output $monitor1 +workspace $ws10 output $monitor2 $monitor1 + # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 |