Added workspace assign to monitor

This commit is contained in:
JasonSMASS06160U 2020-03-13 11:23:56 +11:00
parent f91ba208eb
commit 0015bb8166

View File

@ -14,6 +14,9 @@ exec --no-startup-id hsetroot -cover ~/Pictures/wallpaper/wallhaven-0je2yp.jpg
exec --no-startup-id xsettingsd &
exec --no-startup-id compton -b
# Monitor setup
exec_always --no-startup-id xrandr --output DP-2 --right-of DP-1 --auto
# start a terminal
bindsym $super+Return exec i3-sensible-terminal
@ -83,28 +86,51 @@ bindsym $super+space floating toggle
# change focus between tiling / floating windows
bindsym $super+Shift+space focus mode_toggle
set $workspace1 "1: Terminal"
set $workspace2 "2: Firefox"
set $workspace3 "3: File"
set $workspace4 "4: Time"
set $workspace5 "5: Editor"
set $workspace6 "6: Terminal"
set $workspace7 "7: Terminal"
set $workspace8 "8: Terminal"
set $workspace9 "9: Music"
# switch to workspace
bindsym $alt+Control+Right workspace next
bindsym $alt+Control+Left workspace prev
bindsym $super+1 workspace 1
bindsym $super+2 workspace 2
bindsym $super+3 workspace 3
bindsym $super+4 workspace 4
bindsym $super+5 workspace 5
bindsym $super+6 workspace 6
bindsym $super+7 workspace 7
bindsym $super+8 workspace 8
bindsym $super+1 workspace $workspace1
bindsym $super+2 workspace $workspace2
bindsym $super+3 workspace $workspace3
bindsym $super+4 workspace $workspace4
bindsym $super+5 workspace $workspace5
bindsym $super+6 workspace $workspace6
bindsym $super+7 workspace $workspace7
bindsym $super+8 workspace $workspace8
bindsym $super+9 workspace $workspace9
# move focused container to workspace
bindsym $super+Shift+1 move container to workspace 1
bindsym $super+Shift+2 move container to workspace 2
bindsym $super+Shift+3 move container to workspace 3
bindsym $super+Shift+4 move container to workspace 4
bindsym $super+Shift+5 move container to workspace 5
bindsym $super+Shift+6 move container to workspace 6
bindsym $super+Shift+7 move container to workspace 7
bindsym $super+Shift+8 move container to workspace 8
bindsym $super+Shift+1 move container to workspace $workspace1
bindsym $super+Shift+2 move container to workspace $workspace2
bindsym $super+Shift+3 move container to workspace $workspace3
bindsym $super+Shift+4 move container to workspace $workspace4
bindsym $super+Shift+5 move container to workspace $workspace5
bindsym $super+Shift+6 move container to workspace $workspace6
bindsym $super+Shift+7 move container to workspace $workspace7
bindsym $super+Shift+8 move container to workspace $workspace8
bindsym $super+Shift+9 move container to workspace $workspace9
# Assign workspace on specific monitor
workspace $workspace1 output DP-1
workspace $workspace2 output DP-1
workspace $workspace3 output DP-1
workspace $workspace4 output DP-1
workspace $workspace5 output DP-2
workspace $workspace6 output DP-2
workspace $workspace7 output DP-2
workspace $workspace8 output DP-2
workspace $workspace9 output DP-2
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart
@ -139,12 +165,13 @@ bar {
# window rules, you can find the window class using xprop
for_window [class=".*"] border pixel 4
assign [class=URxvt] 1
assign [class=Firefox|Transmission-gtk] 2
assign [class=Thunar|File-roller] 3
assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4
assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5
assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] 6
assign [class=URxvt] $workspace1
assign [class=Firefox|Transmission-gtk] $workspace2
assign [class=Thunar|File-roller] $workspace3
assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] $workspace4
assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] $workspace5
assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] $workspace6
assign [class=Spotify] $workspace9
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
@ -156,3 +183,4 @@ client.unfocused #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background #2f343f