swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.66k stars 1.11k forks source link

keyboard shortcuts not working #517

Closed kamiyaa closed 6 years ago

kamiyaa commented 8 years ago

I'm on Gentoo Linux without logind and systemd. I did # chmod a+s /usr/bin/sway. I can start sway, but none of the keyboard shortcuts work except for quitting. The error outputs contained something like:

Command 'exec' failed: (null)
Command 'workspace' failed: (null)
mikkeloscar commented 8 years ago

Seems like a config issue, can you post the config you are using?

kamiyaa commented 8 years ago

It is mostly just the default config file. I think i only changed the quit and the kill window shortcuts:


# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
#
# Sway is a work in progress. Some of these defaults are currently unimplemented.

### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Your preferred terminal emulator
set $term urxvt
# Your preferred application launcher
set $menu dmenu_run

### Output configuration
#
# Default wallpaper - CC-BY-NC from Netzlemming http://netzlemming.deviantart.com/art/Field-of-Barley-05240017-307176737
output * bg /home/shana/wallpapers/Anime_Scenery_002-1.jpg fill
#
# Example output configuration:
#
#   output HDMI-A-1 resolution 1920x1080 position 1920,0

### Key bindings
#
# Basics:
#
    # start a terminal
    bindsym $mod+Return exec $term

    # kill focused window
    bindsym $mod+Shift+c kill

    # start your launcher
    bindsym $mod+d exec $menu

    # Drag floating windows by holding down $mod and left mouse button.
    # Resize them with right mouse button + $mod.
    # Despite the name, also works for non-floating windows.
    # Change normal to inverse to use left mouse button for resizing and right
    # mouse button for dragging.
    floating_modifier $mod normal

    # reload the configuration file
    bindsym $mod+Shift+c reload

    # restart sway inplace (preserves your layout/session, can be used to upgrade sway)
    bindsym $mod+Shift+r restart

    # exit sway (logs you out of your wayland session)
    bindsym $mod+Shift+q exit
#
# Moving around:
#
    # Move your focus around with $mod+[h|j|k|l], like vim
    bindsym $mod+h focus left
    bindsym $mod+j focus down
    bindsym $mod+k focus up
    bindsym $mod+l focus right
    # or use $mod+[up|down|left|right]
    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right

    # _move_ the focused window with the same, but add Shift
    bindsym $mod+Shift+h move left
    bindsym $mod+Shift+j move down
    bindsym $mod+Shift+k move up
    bindsym $mod+Shift+l move right
    # ditto, with arrow 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
#
# Workspaces:
#
    # switch to workspace
    bindsym $mod+1 workspace 1
    bindsym $mod+2 workspace 2
    bindsym $mod+3 workspace 3
    bindsym $mod+4 workspace 4
    bindsym $mod+5 workspace 5
    bindsym $mod+6 workspace 6
    bindsym $mod+7 workspace 7
    bindsym $mod+8 workspace 8
    bindsym $mod+9 workspace 9
    bindsym $mod+0 workspace 10
    # move focused container to workspace
    bindsym $mod+Shift+1 move container to workspace 1
    bindsym $mod+Shift+2 move container to workspace 2
    bindsym $mod+Shift+3 move container to workspace 3
    bindsym $mod+Shift+4 move container to workspace 4
    bindsym $mod+Shift+5 move container to workspace 5
    bindsym $mod+Shift+6 move container to workspace 6
    bindsym $mod+Shift+7 move container to workspace 7
    bindsym $mod+Shift+8 move container to workspace 8
    bindsym $mod+Shift+9 move container to workspace 9
    bindsym $mod+Shift+0 move container to workspace 10
#
# Layout stuff:
#
    # You can "split" the current object of your focus with
    # $mod+s or $mod+v, for horizontal and vertical splits
    # respectively.
    bindsym $mod+s splith
    bindsym $mod+v splitv

    # Switch the current container between different layout styles
    bindsym $mod+s layout stacking
    bindsym $mod+w layout tabbed
    bindsym $mod+e layout toggle split

    # Make the current focus fullscreen
    bindsym $mod+f fullscreen

    # Toggle the current focus between tiling and floating mode
    bindsym $mod+Shift+space floating toggle

    # Swap focus between the tiling area and the floating area
    bindsym $mod+space focus mode_toggle

    # move focus to the parent container
    bindsym $mod+a focus parent
#
# Scratchpad:
#
    # Sway has a "scratchpad", which is a bag of holding for windows.
    # You can send windows there and get them back later.

    # Move the currently focused window to the scratchpad
    bindsym $mod+Shift+minus move scratchpad

    # Show the next scratchpad window or hide the focused scratchpad window.
    # If there are multiple scratchpad windows, this command cycles through them.
    bindsym $mod+minus scratchpad show

#
# Status Bar:
#
bar {
        position top
        colors {
            statusline #ffffff
            background #323232
            inactive_workspace #32323200 #32323200 #5c5c5c
        }
}
mikkeloscar commented 8 years ago

Yeah, that doesn't seem to be the issue. Can you post a full log? Run something like sway -d 2> sway.log ?

kamiyaa commented 8 years ago
[wlc] Doing work on SUID/SGID side and dropping permissions
[wlc] Running on vt 3 (fd 3)
[wlc] Work done, dropping permissions and checking communication
[wlc] Failed to open X11 display
Starting sway version 89ef36a (2016-03-16, branch "branch-master")

Set XDG_CONFIG_HOME to /home/shana/.config
Loading config from /home/shana/.config/sway/config
handling config command 'set $mod Mod4'
find_handler(set) 0
handling config command 'set $term urxvt'
find_handler(set) 0
handling config command 'set $menu dmenu_run'
find_handler(set) 0
handling config command 'output * bg /home/shana/wallpapers/Anime_Scenery_002-1.jpg fill'
find_handler(output) 0
Config stored for output * (enabled:-1) (-1 x -1 @ -1, -1) (bg /home/shana/wallpapers/Anime_Scenery_002-1.jpg fill)
handling config command 'bindsym $mod+Return exec $term'
find_handler(bindsym) 0
bindsym - Bound Mod4+Return to command exec urxvt
handling config command 'bindsym $mod+Shift+c kill'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+c to command kill
handling config command 'bindsym $mod+d exec $menu'
find_handler(bindsym) 0
bindsym - Bound Mod4+d to command exec dmenu_run
handling config command 'floating_modifier $mod normal'
find_handler(floating_modifier) 0
handling config command 'bindsym $mod+Shift+e reload'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+e to command reload
handling config command 'bindsym $mod+Shift+r restart'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+r to command restart
handling config command 'bindsym $mod+Shift+q exit'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+q to command exit
handling config command 'bindsym $mod+h focus left'
find_handler(bindsym) 0
bindsym - Bound Mod4+h to command focus left
handling config command 'bindsym $mod+j focus down'
find_handler(bindsym) 0
bindsym - Bound Mod4+j to command focus down
handling config command 'bindsym $mod+k focus up'
find_handler(bindsym) 0
bindsym - Bound Mod4+k to command focus up
handling config command 'bindsym $mod+l focus right'
find_handler(bindsym) 0
bindsym - Bound Mod4+l to command focus right
handling config command 'bindsym $mod+Left focus left'
find_handler(bindsym) 0
bindsym - Bound Mod4+Left to command focus left
handling config command 'bindsym $mod+Down focus down'
find_handler(bindsym) 0
bindsym - Bound Mod4+Down to command focus down
handling config command 'bindsym $mod+Up focus up'
find_handler(bindsym) 0
bindsym - Bound Mod4+Up to command focus up
handling config command 'bindsym $mod+Right focus right'
find_handler(bindsym) 0
bindsym - Bound Mod4+Right to command focus right
handling config command 'bindsym $mod+Shift+h move left'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+h to command move left
handling config command 'bindsym $mod+Shift+j move down'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+j to command move down
handling config command 'bindsym $mod+Shift+k move up'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+k to command move up
handling config command 'bindsym $mod+Shift+l move right'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+l to command move right
handling config command 'bindsym $mod+Shift+Left move left'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+Left to command move left
handling config command 'bindsym $mod+Shift+Down move down'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+Down to command move down
handling config command 'bindsym $mod+Shift+Up move up'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+Up to command move up
handling config command 'bindsym $mod+Shift+Right move right'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+Right to command move right
handling config command 'bindsym $mod+1 workspace 1'
find_handler(bindsym) 0
bindsym - Bound Mod4+1 to command workspace 1
handling config command 'bindsym $mod+2 workspace 2'
find_handler(bindsym) 0
bindsym - Bound Mod4+2 to command workspace 2
handling config command 'bindsym $mod+3 workspace 3'
find_handler(bindsym) 0
bindsym - Bound Mod4+3 to command workspace 3
handling config command 'bindsym $mod+4 workspace 4'
find_handler(bindsym) 0
bindsym - Bound Mod4+4 to command workspace 4
handling config command 'bindsym $mod+5 workspace 5'
find_handler(bindsym) 0
bindsym - Bound Mod4+5 to command workspace 5
handling config command 'bindsym $mod+6 workspace 6'
find_handler(bindsym) 0
bindsym - Bound Mod4+6 to command workspace 6
handling config command 'bindsym $mod+7 workspace 7'
find_handler(bindsym) 0
bindsym - Bound Mod4+7 to command workspace 7
handling config command 'bindsym $mod+8 workspace 8'
find_handler(bindsym) 0
bindsym - Bound Mod4+8 to command workspace 8
handling config command 'bindsym $mod+9 workspace 9'
find_handler(bindsym) 0
bindsym - Bound Mod4+9 to command workspace 9
handling config command 'bindsym $mod+0 workspace 10'
find_handler(bindsym) 0
bindsym - Bound Mod4+0 to command workspace 10
handling config command 'bindsym $mod+Shift+1 move container to workspace 1'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+1 to command move container to workspace 1
handling config command 'bindsym $mod+Shift+2 move container to workspace 2'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+2 to command move container to workspace 2
handling config command 'bindsym $mod+Shift+3 move container to workspace 3'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+3 to command move container to workspace 3
handling config command 'bindsym $mod+Shift+4 move container to workspace 4'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+4 to command move container to workspace 4
handling config command 'bindsym $mod+Shift+5 move container to workspace 5'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+5 to command move container to workspace 5
handling config command 'bindsym $mod+Shift+6 move container to workspace 6'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+6 to command move container to workspace 6
handling config command 'bindsym $mod+Shift+7 move container to workspace 7'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+7 to command move container to workspace 7
handling config command 'bindsym $mod+Shift+8 move container to workspace 8'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+8 to command move container to workspace 8
handling config command 'bindsym $mod+Shift+9 move container to workspace 9'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+9 to command move container to workspace 9
handling config command 'bindsym $mod+Shift+0 move container to workspace 10'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+0 to command move container to workspace 10
handling config command 'bindsym $mod+s splith'
find_handler(bindsym) 0
bindsym - Bound Mod4+s to command splith
handling config command 'bindsym $mod+v splitv'
find_handler(bindsym) 0
bindsym - Bound Mod4+v to command splitv
handling config command 'bindsym $mod+s layout stacking'
find_handler(bindsym) 0
bindsym - 'Mod4+s' already exists, overwriting
bindsym - Bound Mod4+s to command layout stacking
handling config command 'bindsym $mod+w layout tabbed'
find_handler(bindsym) 0
bindsym - Bound Mod4+w to command layout tabbed
handling config command 'bindsym $mod+e layout toggle split'
find_handler(bindsym) 0
bindsym - Bound Mod4+e to command layout toggle split
handling config command 'bindsym $mod+f fullscreen'
find_handler(bindsym) 0
bindsym - Bound Mod4+f to command fullscreen
handling config command 'bindsym $mod+Shift+space floating toggle'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+space to command floating toggle
handling config command 'bindsym $mod+space focus mode_toggle'
find_handler(bindsym) 0
bindsym - Bound Mod4+space to command focus mode_toggle
handling config command 'bindsym $mod+a focus parent'
find_handler(bindsym) 0
bindsym - Bound Mod4+a to command focus parent
handling config command 'bindsym $mod+Shift+minus move scratchpad'
find_handler(bindsym) 0
bindsym - Bound Mod4+Shift+minus to command move scratchpad
handling config command 'bindsym $mod+minus scratchpad show'
find_handler(bindsym) 0
bindsym - Bound Mod4+minus to command scratchpad show
handling config command 'bar {'
find_handler(bar) 0
Configuring bar bar-0
handling config command 'position top'
find_handler(position) 0
Setting bar position 'top' for bar: bar-0
handling config command 'colors {'
find_handler(colors) 0
handling config command 'statusline #ffffff'
find_handler(statusline) 0
Setting statusline color #ffffffff for bar: bar-0
handling config command 'background #323232'
find_handler(background) 0
Setting background color #323232ff for bar: bar-0
handling config command 'inactive_workspace #32323200 #32323200 #5c5c5c'
find_handler(inactive_workspace) 0
Setting inactive_workspace_border color #32323200 for bar: bar-0
Setting inactive_workspace_bg color #32323200 for bar: bar-0
Setting inactive_workspace_text color #5c5c5cff for bar: bar-0
handling config command '}'
End of bar colors block
handling config command '}'
End of bar block
[wlc] libinput: resume
[wlc] Activating tty
[wlc] MODE: (0) 1920x1080 *
[wlc] Connector 1 is not connected or has no modes
[wlc] Connector 2 is not connected or has no modes
[wlc] Connector 3 is not connected or has no modes
[wlc] Connector 4 is not connected or has no modes
[wlc] eDP-1 Chose mode (0) 1920x1080
Output 1 resolution changed to 1920 x 1080
[wlc] EGL context is double buffered
[wlc] EGL version: 1.4 (DRI2)
[wlc] EGL vendor: Mesa Project
[wlc] EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 OpenGL_ES3 
[wlc] EGL context (RGB888)
[wlc] GL version: OpenGL ES 3.0 Mesa 11.0.6
[wlc] GL vendor: Intel Open Source Technology Center
[wlc] GLES2 renderer initialized
[wlc] Set new bsurface to output (1)
New output 1:eDP-1
Matched wildcard output config for eDP-1
Setting background for output 0 to /home/shana/wallpapers/Anime_Scenery_002-1.jpg
Invoking swaybar for bar id 'bar-0'
Adding 0x1f48bd0 (1, 1920.000000x1080.000000) to 0x6304c0 (0, 0.000000x0.000000)
Workspace: Generating new workspace name for output eDP-1
Got valid workspace command for target: '10'
Workspace: Found free name 10
Got valid workspace command for target: '1'
Workspace: Found free name 1
Got valid workspace command for target: '2'
Got valid workspace command for target: '3'
Got valid workspace command for target: '4'
Got valid workspace command for target: '5'
Got valid workspace command for target: '6'
Got valid workspace command for target: '7'
Got valid workspace command for target: '8'
Got valid workspace command for target: '9'
Added workspace 1 for output 1
Setting focus to 0x1f48bd0:1 (OUTPUT 'eDP-1')
[wlc] Added output (1)
[wlc] become active
Using output 0 of 1
Event on IPC listening socket
Event on IPC listening socket
Setting surface 0x1f64230 as panel for output 1 (wl_resource: 0x1f4a0f0)
Creating panel config for resource 0x1f4a0f0
Arranging layout for 0x6304c0 (ROOT '(null)')
Arranging layout for 0x6304c0 (null) 0.000000x0.000000+0.000000,0.000000
Arranging output 'eDP-1' at 0.000000,0.000000
Arranging layout for 0x1f48bd0 (OUTPUT 'eDP-1')
Arranging layout for 0x1f48bd0 eDP-1 1920.000000x1080.000000+0.000000,0.000000
Arranging layout for 0x1f677e0 (WORKSPACE '1')
Arranging layout for 0x1f677e0 1 1920.000000x1080.000000+0.000000,0.000000
-> Found panel for this workspace: 0x0, position: 0
Arranging workspace '1' at 0.000000, 0.000000
focus:R      |(0x6304c0)(p:(nil)   )(f:0x1f48bd0)(h:-1)Type:root|layout:-    |w:   0|h:   0|x:   0|y:   0|g:  0|vis:t|children: 1|name:(null)
|focus:X     |(0x1f48bd0)(p:0x6304c0)(f:0x1f677e0)(h: 1)Type:op  |layout:-    |w:1920|h:1080|x:   0|y:   0|g: -1|vis:t|children: 1|name:eDP-1
|-focus:K    |(0x1f677e0)(p:0x1f48bd0)(f:(nil)   )(h:-1)Type:ws  |layout:Horiz|w:1920|h:1080|x:   0|y:   0|g: -1|vis:t|children: 0|name:1
Found existing panel config for resource 0x1f4a0f0
Panel position for wl_resource 0x1f4a0f0 changed 0 => 0
Arranging layout for 0x6304c0 (ROOT '(null)')
Arranging layout for 0x6304c0 (null) 0.000000x0.000000+0.000000,0.000000
Arranging output 'eDP-1' at 0.000000,0.000000
Arranging layout for 0x1f48bd0 (OUTPUT 'eDP-1')
Arranging layout for 0x1f48bd0 eDP-1 1920.000000x1080.000000+0.000000,0.000000
Arranging layout for 0x1f677e0 (WORKSPACE '1')
Arranging layout for 0x1f677e0 1 1920.000000x1080.000000+0.000000,0.000000
-> Found panel for this workspace: 0x0, position: 0
Arranging workspace '1' at 0.000000, 0.000000
focus:R      |(0x6304c0)(p:(nil)   )(f:0x1f48bd0)(h:-1)Type:root|layout:-    |w:   0|h:   0|x:   0|y:   0|g:  0|vis:t|children: 1|name:(null)
|focus:X     |(0x1f48bd0)(p:0x6304c0)(f:0x1f677e0)(h: 1)Type:op  |layout:-    |w:1920|h:1080|x:   0|y:   0|g: -1|vis:t|children: 1|name:eDP-1
|-focus:K    |(0x1f677e0)(p:0x1f48bd0)(f:(nil)   )(h:-1)Type:ws  |layout:Horiz|w:1920|h:1080|x:   0|y:   0|g: -1|vis:t|children: 0|name:1
Setting surface 0x1b09570 as background for output 1
rewritten name Power_Button
Found input device (0:1:Power_Button)
rewritten name Video_Bus
Found input device (0:6:Video_Bus)
rewritten name Video_Bus
Found input device (0:6:Video_Bus)
rewritten name USB_Optical_Mouse
Found input device (7119:5:USB_Optical_Mou)
rewritten name AT_Translated_Set_2_keyboard
Found input device (1:1:AT_Translated_Set_2_keyboard)
rewritten name AlpsPS/2_ALPS_DualPoint_Stick
Found input device (2:8:AlpsPS/2_ALPS_DualPoint_Stick)
rewritten name AlpsPS/2_ALPS_DualPoint_TouchPad
Found input device (2:8:AlpsPS/2_ALPS_DualPoint_TouchPad)
rewritten name ThinkPad_Extra_Buttons
Found input device (6058:20564:ThinkPad_Extra_B)
Arranging layout for 0x6304c0 (ROOT '(null)')
Arranging layout for 0x6304c0 (null) 0.000000x0.000000+0.000000,0.000000
Arranging output 'eDP-1' at 0.000000,0.000000
Arranging layout for 0x1f48bd0 (OUTPUT 'eDP-1')
Arranging layout for 0x1f48bd0 eDP-1 1920.000000x1080.000000+0.000000,0.000000
Arranging layout for 0x1f677e0 (WORKSPACE '1')
Arranging layout for 0x1f677e0 1 1920.000000x1080.000000+0.000000,0.000000
-> Found panel for this workspace: 1920x21, position: 0
Arranging workspace '1' at 0.000000, 21.000000
focus:R      |(0x6304c0)(p:(nil)   )(f:0x1f48bd0)(h:-1)Type:root|layout:-    |w:   0|h:   0|x:   0|y:   0|g:  0|vis:t|children: 1|name:(null)
|focus:X     |(0x1f48bd0)(p:0x6304c0)(f:0x1f677e0)(h: 1)Type:op  |layout:-    |w:1920|h:1080|x:   0|y:   0|g: -1|vis:t|children: 1|name:eDP-1
|-focus:K    |(0x1f677e0)(p:0x1f48bd0)(f:(nil)   )(h:-1)Type:ws  |layout:Horiz|w:1920|h:1059|x:   0|y:  21|g: -1|vis:t|children: 0|name:1
Handling command 'workspace 2'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 2'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 3'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 4'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 4'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 1'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 8'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'workspace 8'
find_handler(workspace) 0
Command 'workspace' failed: (null)
Handling command 'exec dmenu_run'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec dmenu_run'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec dmenu_run'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec dmenu_run'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exec urxvt'
find_handler(exec) 0
Command 'exec' failed: (null)
Handling command 'exit'
find_handler(exit) 0
[wlc] Terminating wlc...
[wlc] Terminating compositor...
[wlc] Output (1) terminated...
OUTPUT: Destroying output '1'
[wlc] Released drm surface (0x1ae01f8)
[wlc] Removed bsurface from output (1)
[wlc] Removed output (1)
[wlc] Compositor terminated...
[wlc] Cleanup wlc
Compositor is ready, executing cmds in queue
[wlc] Closing Xwayland
[wlc] Closed drm
Panel surface killed
Arranging layout for 0x6304c0 (ROOT '(null)')
Arranging layout for 0x6304c0 (null) 0.000000x0.000000+0.000000,0.000000
focus:F      |(0x6304c0)(p:(nil)   )(f:(nil)   )(h:-1)Type:root|layout:-    |w:   0|h:   0|x:   0|y:   0|g:  0|vis:t|children: 0|name:(null)
Background surface killed
[wlc] Failed to activate vt3 for restoration
[wlc] Failed to switch back to vt1
[wlc] Parent exit (3289)
[wlc] Restoring vt 3 (0x3) (fd 3)
mikkeloscar commented 8 years ago

It looks like those commands are executed before sway is ready.

Try to wait for the line Compositor is ready, executing cmds in queue before you start to click anything.

I'm not quite sure how this can happen though, on my machine it takes less than 1 second to reach that state, so I couldn't possible execute all those commands by clicking the keyboard. Are you running those commands in a script?

kamiyaa commented 8 years ago

I always start trying out buttons after the bar is loaded (appears). I don't know when it's going to be ready because I start it from the console. If I start sway from X11, the keyboard shortcuts work fine. But if I start from console, the keyboard doesn't work. Also my computer fan starts spinning really fast when I start from console, so I'm guessing there's some sort of task that's taking a long time to execute, maybe even an infinite loop?

mikkeloscar commented 8 years ago

Hmm, it could sound like a problem in wlc, since the compositor_ready callback takes so long to trigger.

@Cloudef do you have an idea what could be happening here?

kamiyaa commented 8 years ago

So, I tried sway some more nested in X11, and dmenu and urxvt would appear. Not exactly sure why :/ But the process(dmenu and urxvt) is spawned according to htop.

Also the process (command) that was using 100% cpu, according to htop was: Xwayland :0 -rootless -terminate -listen 16 -listen 17 -wm 21

ddevault commented 8 years ago

So, I tried sway some more nested in X11, and dmenu and urxvt would appear. Not exactly sure why :/

This is an issue with nested sways that comes from wlc. I informed @Cloudef of it a while ago.

https://github.com/Cloudef/wlc/issues/113

hashashini commented 8 years ago

Maybe not related, but thought I'd point it out in case you didn't yet see it yourself:

# kill focused window bindsym $mod+Shift+c kill [...] # reload the configuration file bindsym $mod+Shift+c reload

ddevault commented 7 years ago

Can reproduce on a void linux install with musl libc. Will investigate.

ddevault commented 7 years ago

The problem lies somehow with Xwayland, though I'm not sure exactly how yet. Problem disappears when Xwayland is disabled. Also, interestingly, I can run sway as root and it works correctly. Likely related to some permissions problem.

ddevault commented 7 years ago

So it seems that Xwayland is never sending SIGUSR1 to wlc, so it never thinks it's ready. Still not sure why. Going to end up having to dig into Xwayland itself. Bleh.

dlrobertson commented 7 years ago

FWIW I run Gentoo as well and I just hit this when I added the glamor use flag to x11-base/xorg-server. Without the glamor use flag I no longer hit this.

dlrobertson commented 7 years ago

As of sway version 0.13.0 and wlc version 0.0.9, I no longer can reproduce this on my gentoo box.