(i3) fixed monitor configuration for multiple setups
This commit is contained in:
1 parent
dd95905fe5
commit
c0f5e915bd
1 file changed
+41
-30
+41
-30
@@ -1,20 +1,25 @@
|
||||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
# i3 configuration
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
## [note]
|
||||
##
|
||||
## this configuration relies on Xresources for the monitor setup
|
||||
## edit '~/.Xresources' and add the following lines:
|
||||
##
|
||||
## ```
|
||||
## i3wm.main_display: <output>
|
||||
## i3wm.aux_display: <output>
|
||||
## # example:
|
||||
## # i3wm.main_display: DP-1
|
||||
## ```
|
||||
##
|
||||
## then execute `xrdb -merge ~/.Xresources`
|
||||
|
||||
set $Alt Mod1
|
||||
set $Super Mod4
|
||||
|
||||
set $alt Mod1
|
||||
set $super Mod4
|
||||
set $mod Mod4
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
# variable definitions for workspaces
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
@@ -26,7 +31,7 @@ set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
# use modifier to manipulate floating windows with the mouse
|
||||
floating_modifier $mod
|
||||
|
||||
# move tiling windows via drag & drop by left-clicking into the title bar,
|
||||
@@ -112,7 +117,7 @@ bindsym $mod+n split h
|
||||
bindsym $mod+v split v
|
||||
|
||||
# toggle window between tiling/floating
|
||||
bindsym $mod+$Alt+Shift+f floating toggle
|
||||
bindsym $mod+$alt+Shift+f floating toggle
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
@@ -144,22 +149,22 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
bindsym $mod+Shift+z move scratchpad
|
||||
|
||||
# move focused container and switch to workspace
|
||||
bindsym $mod+$Alt+1 move container to workspace number $ws1; workspace number $ws1
|
||||
bindsym $mod+$Alt+2 move container to workspace number $ws2; workspace number $ws2
|
||||
bindsym $mod+$Alt+3 move container to workspace number $ws3; workspace number $ws3
|
||||
bindsym $mod+$Alt+4 move container to workspace number $ws4; workspace number $ws4
|
||||
bindsym $mod+$Alt+5 move container to workspace number $ws5; workspace number $ws5
|
||||
bindsym $mod+$Alt+6 move container to workspace number $ws6; workspace number $ws6
|
||||
bindsym $mod+$Alt+7 move container to workspace number $ws7; workspace number $ws7
|
||||
bindsym $mod+$Alt+8 move container to workspace number $ws8; workspace number $ws8
|
||||
bindsym $mod+$Alt+9 move container to workspace number $ws9; workspace number $ws9
|
||||
bindsym $mod+$Alt+0 move container to workspace number $ws10; workspace number $ws10
|
||||
bindsym $mod+$alt+1 move container to workspace number $ws1; workspace number $ws1
|
||||
bindsym $mod+$alt+2 move container to workspace number $ws2; workspace number $ws2
|
||||
bindsym $mod+$alt+3 move container to workspace number $ws3; workspace number $ws3
|
||||
bindsym $mod+$alt+4 move container to workspace number $ws4; workspace number $ws4
|
||||
bindsym $mod+$alt+5 move container to workspace number $ws5; workspace number $ws5
|
||||
bindsym $mod+$alt+6 move container to workspace number $ws6; workspace number $ws6
|
||||
bindsym $mod+$alt+7 move container to workspace number $ws7; workspace number $ws7
|
||||
bindsym $mod+$alt+8 move container to workspace number $ws8; workspace number $ws8
|
||||
bindsym $mod+$alt+9 move container to workspace number $ws9; workspace number $ws9
|
||||
bindsym $mod+$alt+0 move container to workspace number $ws10; workspace number $ws10
|
||||
|
||||
# switch workspace
|
||||
bindsym $mod+Shift+Tab workspace prev
|
||||
bindsym $Alt+Shift+Tab workspace prev
|
||||
bindsym $alt+Shift+Tab workspace prev
|
||||
bindsym $mod+Tab workspace next
|
||||
bindsym $Alt+Tab workspace next
|
||||
bindsym $alt+Tab workspace next
|
||||
|
||||
# move focused workspace to output
|
||||
bindsym $mod+u move workspace to output left
|
||||
@@ -231,9 +236,15 @@ client.urgent $transp $background $text_focus $transp $transp
|
||||
client.placeholder $transp $background $text_focus $transp $transp
|
||||
client.background $background
|
||||
|
||||
exec i3-msg workspace number $ws1
|
||||
|
||||
|
||||
# window rules
|
||||
for_window [title="Slay.*" class="steam.*"] floating enable
|
||||
|
||||
# display workspace 1 on the main display at start
|
||||
set_from_resource $main_display i3wm.main_display DP-1
|
||||
set_from_resource $aux_display i3wm.aux_display DP-2
|
||||
|
||||
workspace $ws1 output $main_display
|
||||
workspace $ws2 output $aux_display
|
||||
|
||||
# select workspace 1 at startup
|
||||
exec i3-msg workspace number $ws1
|
||||
Reference in new issue
Block a user