Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waking from sleep re-parents all desktops to the primary monitor #5927

Closed
2 tasks done
blueforesticarus opened this issue Feb 23, 2024 · 2 comments
Closed
2 tasks done
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions stale Issue or PR has become stale and will be closed soon waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment.

Comments

@blueforesticarus
Copy link

Welcome

  • Yes, I'm using the latest major release or the current development version. These are the only supported versions.
  • Yes, I've searched similar issues and discussions on GitHub and didn't find any.

Current Behavior

When waking my monitors from sleep, the desktop previously assigned to the second monitor gets reassigned to the primary, meaning that it is no longer seen and the second monitor is blank.

(To be clear, only the monitors are sleeping, the computer is not suspended.)

Expected Behavior

desktop wakes the same as it went to sleep.

Reproduction Instructions

I don't know why this happens on this specific computer, I have not had it be a problem before. I suspect it may be because these monitors (neo g8) take so long to wake from sleep. This isn't the only weird behavior I have had with them.

i3 version

Binary i3 version:  4.23 (2023-10-29) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.23 (2023-10-29) (pid 2553)
Loaded i3 config:
  /home/user/.config/i3/config (main) (last modified: Tue 06 Jun 2023 02:40:05 PM EDT, 22621729 seconds ago)

The i3 binary you just called: /nix/store/kqdlkl0mbh9sssm6729k3ak1mixmqrdr-i3-4.23/bin/i3
The i3 binary you are running: /nix/store/kqdlkl0mbh9sssm6729k3ak1mixmqrdr-i3-4.23/bin/i3

Config file

focus_follows_mouse no

#==================================================================================================
#                                       THEME
###T===============================================================================================
set_from_resource $FOCUS i3wm.color7 #ff1155
set_from_resource $UNFOCUS i3wm.background #f5f0e3

# Layout colors 	    bord 	 bg       text     indicator (split)
client.focused 			$FOCUS   $FOCUS   $FOCUS   $FOCUS
client.focused_inactive $UNFOCUS $UNFOCUS $UNFOCUS $UNFOCUS
client.unfocused 		$UNFOCUS $UNFOCUS $UNFOCUS $UNFOCUS
client.urgent 			$FOCUS   $FOCUS   $FOCUS   $FOCUS
client.background 		$UNFOCUS

default_border pixel 2
default_floating_border none

#https://github.com/i3/i3/issues/2664
font pango:monospace 0

# Gaps
hide_edge_borders smart
set $GAPS_INNER 25
set $GAPS_OUTER -10
gaps inner $GAPS_INNER
gaps outer $GAPS_OUTER
bindsym Mod1+shift+g  gaps inner all toggle $GAPS_INNER     ; gaps outer all toggle $GAPS_OUTER
bindsym Mod1+g        gaps inner current toggle $GAPS_INNER ; gaps outer current toggle $GAPS_OUTER

#==================================================================================================
#                                       KEYBINDS
###K===============================================================================================
# Media player controls
bindsym XF86AudioPlay  exec mprisctl PlayPause
bindsym XF86AudioPause exec mprisctl PlayPause
bindsym XF86AudioNext  exec mprisctl Next
bindsym XF86AudioPrev  exec mprisctl Previous

# use Mouse+Mod1 to drag floating windows to their wanted position
floating_modifier Mod1

### Scratchpad ###
bindsym Mod1+Shift+0 move scratchpad
bindsym Mod1+0 scratchpad show

### Shortcuts ###
bindsym --release Print exec --no-startup-id screenshot
bindsym --release Shift+Print exec --no-startup-id screenshot -s
bindsym Mod1+Shift+w exec wallpaper -G -S -w -c -l
bindsym Mod1+Ctrl+w exec wallpaper -G -C
bindsym Mod1+w exec wallpaper -G -S -r -w

#bindsym Mod1+Shift+s exec systemctl suspend
bindsym Mod1+s exec betterlockscreen -l blur --off 15
bindsym Mod1+plus exec keylight toggle
bindsym Mod1+Shift+plus exec dim shift up
bindsym Mod1+Shift+minus exec dim shift down
bindsym Mod1+minus exec dim toggle up
bindsym Mod1+Ctrl+plus exec keylight max
bindsym Mod1+Ctrl+period move position center
bindsym Mod1+Ctrl+s exec --no-startup-id i3-save-window-size

# start a terminal
bindsym Mod1+shift+Return exec alacritty --class FloatTerm #see bottom section
bindsym Mod1+Return       exec alacritty
bindsym Mod1+shift+p exec --no-startup-id pavucontrol
bindsym Mod1+shift+n exec --no-startup-id notebook
bindsym Mod1+shift+m exec --no-startup-id ambox
bindsym Mod1+shift+b exec --no-startup-id net
bindsym F2 exec --no-startup-id i3-quickterm shell
bindsym F3 exec --no-startup-id i3-quickterm python
bindsym F4 exec --no-startup-id i3-quickterm conn
for_window [class="DropTerm"] border pixel 0

bindsym Mod1+t exec --no-startup-id alacritty --class FloatTerm translate_widget

bindsym Mod1+F7 exec --no-startup-id xset dpms force standby && betterlockscreen -l blur

# kill focused window
bindsym Mod1+q kill

# start dmenu (a program launcher)
#bindsym Mod1+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym Mod1+u exec --no-startup-id workspace_picker
bindsym Mod1+i exec --no-startup-id rofi -show windowcd
bindsym Mod1+shift+i exec --no-startup-id rofi -show window
bindsym Mod1+d exec --no-startup-id rofi -show drun
bindsym Mod1+shift+d exec --no-startup-id rofi -show run
bindsym Mod1+backslash exec --no-startup-id monitorswap
bindsym Mod1+shift+Tab workspace back_and_forth
bindsym Mod1+Tab exec --no-startup-id i3-focus-last switch

#android rofi menus
bindsym Mod1+Delete exec --no-startup-id android powermenu
bindsym Mod1+Home exec --no-startup-id android apps
bindsym Mod1+Prior exec --no-startup-id android quicklinks
bindsym Mod1+Next exec --no-startup-id android player
bindsym Mod1+End exec --no-startup-id android screenshot
bindsym Mod1+equal exec --no-startup-id android backlight

# change focus
bindsym Mod1+h focus left
bindsym Mod1+j focus down
bindsym Mod1+k focus up
bindsym Mod1+l focus right

# alternatively, you can use the cursor keys:
bindsym Mod1+Left focus left
bindsym Mod1+Down focus down
bindsym Mod1+Up focus up
bindsym Mod1+Right focus right

# move focused window
bindsym Mod1+Shift+h move left
bindsym Mod1+Shift+j move down
bindsym Mod1+Shift+k move up
bindsym Mod1+Shift+l move right

# alternatively, you can use the cursor keys:
bindsym Mod1+Shift+Left move left
bindsym Mod1+Shift+Down move down
bindsym Mod1+Shift+Up move up
bindsym Mod1+Shift+Right move right

# split in horizontal orientation
bindsym Mod1+c split h

# split in vertical orientation
bindsym Mod1+v split v

# enter fullscreen mode for the focused container
bindsym Mod1+f fullscreen
bindsym Mod1+shift+f fullscreen toggle global

# change container layout (stacked, tabbed, toggle split)
#bindsym Mod1+s layout stacking
bindsym Mod1+Shift+e layout toggle tabbed stacked
bindsym Mod1+e layout toggle split

# toggle tiling / floating
bindsym Mod1+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym Mod1+space focus mode_toggle

# focus the parent container
bindsym Mod1+bracketleft focus parent

# focus the child container
bindsym Mod1+bracketright focus child

# reload the configuration file
bindsym Mod1+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod1+Shift+r restart
bindsym Mod1+Ctrl+r exec --no-startup-id userexit --noconfirm

set $ws1 I
set $ws2 II
set $ws3 III
set $ws4 IV
set $ws5 V
set $ws6 VI
set $ws7 VII
set $ws8 VIII
set $ws9 IX

# switch to workspace
bindsym Mod1+1 workspace $ws1
bindsym Mod1+2 workspace $ws2
bindsym Mod1+3 workspace $ws3
bindsym Mod1+4 workspace $ws4
bindsym Mod1+5 workspace $ws5
bindsym Mod1+6 workspace $ws6
bindsym Mod1+7 workspace $ws7
bindsym Mod1+8 workspace $ws8
bindsym Mod1+9 workspace $ws9

# move focused container to workspace
bindsym Mod1+Shift+1 move container to workspace $ws1
bindsym Mod1+Shift+2 move container to workspace $ws2
bindsym Mod1+Shift+3 move container to workspace $ws3
bindsym Mod1+Shift+4 move container to workspace $ws4
bindsym Mod1+Shift+5 move container to workspace $ws5
bindsym Mod1+Shift+6 move container to workspace $ws6
bindsym Mod1+Shift+7 move container to workspace $ws7
bindsym Mod1+Shift+8 move container to workspace $ws8
bindsym Mod1+Shift+9 move container to workspace $ws9

bar {
    status_command i3status
    position bottom
    font pango: Hack, Font Awesome 5 Free Regular 10
    separator_symbol "  "
    colors {
        background #000000
        statusline #ffffff
        separator #586e75
    }
    mode hide
}

exec_always --no-startup-id "killall syncthingtray ; syncthingtray"
bindsym Mod1+b bar mode toggle

#==================================================================================================
#                                      MODES
###M===============================================================================================
# resize window
bindsym Mod1+r mode "resize"
mode "resize" {
    bindsym h resize shrink width 10 px or 10 ppt
    bindsym k resize grow height 10 px or 10 ppt
    bindsym j resize shrink height 10 px or 10 ppt
    bindsym l resize grow width 10 px or 10 ppt

    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

#orient screen.
bindsym Mod1+o mode "orient"
mode "orient" {
    bindsym h exec tprot 90
    bindsym l exec tprot 270
    bindsym k exec tprot 180
    bindsym j exec tprot 0
    bindsym a exec --no-startup-id arandr

    bindsym Return mode "default"
    bindsym Escape mode "default"
}

#==================================================================================================
##                                 floating window settings
###f===============================================================================================
# hack to fix teams ###
for_window [title="Microsoft Teams Notification"] floating enable
no_focus [title="Microsoft Teams Notification"]

# GENERATED BY i3-save-window-size
for_window [class="Pavucontrol"]  floating enable, move position center, resize 1078 770
for_window [class="Steam"] floating enable
for_window [class="Gimp"] floating enable
for_window [class="feh"] floating enable
for_window [class="arandr"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [title="Sonic Controller"] floating enable
for_window [title="Sonic Command Shell"] floating enable
for_window [class="Spotify-Tui"] fullscreen enable
for_window [instance="nvim" class="vvim"] floating enable, resize set 1627 816, move position center
for_window [instance="spt" class="vvim"] floating enable, resize set 1534 965, move position center
for_window [class="FloatTerm"] floating enable, resize set 1513 800, move position center

Linux distribution & Version

nixos 24.05pre586498.0e74ca98a74b (Uakari)

Are you using a compositor?

compton

Logfile

No response

@i3bot
Copy link

i3bot commented Feb 23, 2024

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot i3bot added missing-log Read the CONTRIBUTING.md file for instructions 4.23 labels Feb 23, 2024
@orestisfl
Copy link
Member

Need a log file here. Do you use autorandr or any other software that manages your monitors?

@orestisfl orestisfl added the waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment. label Feb 23, 2024
@orestisfl orestisfl added the stale Issue or PR has become stale and will be closed soon label May 19, 2024
@orestisfl orestisfl closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.23 bug missing-log Read the CONTRIBUTING.md file for instructions stale Issue or PR has become stale and will be closed soon waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment.
Projects
None yet
Development

No branches or pull requests

3 participants