Skip to content

Instantly share code, notes, and snippets.

@whitelynx
Last active July 28, 2019 17:18
Show Gist options
  • Save whitelynx/ff907f20406f7d324927c664c9b81515 to your computer and use it in GitHub Desktop.
Save whitelynx/ff907f20406f7d324927c664c9b81515 to your computer and use it in GitHub Desktop.
Sway error on Intel i965
Machine: Lenovo Yoga 900-13ISK (https://www.lenovo.com/us/en/laptops/yoga/yoga-900-series/Yoga-900-13/p/88YG9000571)
Video card: Intel i965
CPU: i7-6500U
OS: Manjaro Linux
2019-07-28 12:32:09 - [sway/main.c:152] Linux tiny 4.9.186-1-MANJARO #1 SMP PREEMPT Sun Jul 21 11:58:05 UTC 2019 x86_64 GNU/Linux
2019-07-28 12:32:09 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-07-28 12:32:09 - [sway/main.c:152] DISTRIB_ID=ManjaroLinux
2019-07-28 12:32:09 - [sway/main.c:152] DISTRIB_RELEASE=18.0.4
2019-07-28 12:32:09 - [sway/main.c:152] DISTRIB_CODENAME=Illyria
2019-07-28 12:32:09 - [sway/main.c:152] DISTRIB_DESCRIPTION="Manjaro Linux"
2019-07-28 12:32:09 - [sway/main.c:168] Contents of /etc/os-release:
2019-07-28 12:32:09 - [sway/main.c:152] NAME="Manjaro Linux"
2019-07-28 12:32:09 - [sway/main.c:152] ID=manjaro
2019-07-28 12:32:09 - [sway/main.c:152] ID_LIKE=arch
2019-07-28 12:32:09 - [sway/main.c:152] PRETTY_NAME="Manjaro Linux"
2019-07-28 12:32:09 - [sway/main.c:152] ANSI_COLOR="1;32"
2019-07-28 12:32:09 - [sway/main.c:152] HOME_URL="https://www.manjaro.org/"
2019-07-28 12:32:09 - [sway/main.c:152] SUPPORT_URL="https://www.manjaro.org/"
2019-07-28 12:32:09 - [sway/main.c:152] BUG_REPORT_URL="https://bugs.manjaro.org/"
2019-07-28 12:32:09 - [sway/main.c:140] LD_LIBRARY_PATH=(null)
2019-07-28 12:32:09 - [sway/main.c:140] LD_PRELOAD=(null)
2019-07-28 12:32:09 - [sway/main.c:140] PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/whitelynx/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2019-07-28 12:32:09 - [sway/main.c:140] SWAYSOCK=(null)
2019-07-28 12:32:09 - [sway/server.c:39] Preparing Wayland server initialization
2019-07-28 12:32:09 - [backend/session/logind.c:674] Successfully loaded logind session
2019-07-28 12:32:09 - [backend/backend.c:192] Found 1 GPUs
2019-07-28 12:32:09 - [backend/drm/backend.c:152] Initializing DRM backend for /dev/dri/card0 (i915)
2019-07-28 12:32:09 - [backend/drm/drm.c:54] DRM_CRTC_IN_VBLANK_EVENT unsupported
2019-07-28 12:32:09 - [backend/backend.c:198] Failed to open DRM device 9
2019-07-28 12:32:09 - [backend/backend.c:339] Failed to open any DRM device
2019-07-28 12:32:09 - [backend/noop/backend.c:51] Creating noop backend
2019-07-28 12:32:09 - [sway/server.c:46] Unable to create backend
# Also available at https://github.com/whitelynx/dotfiles/blob/master/dotfiles/config/sway/config
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down t
set $up n
set $right s
# Your preferred terminal emulator
set $term kitty
# Your preferred application launcher
#set $menu dmenu_run
set $menu /home/whitelynx/bin/rofi-run
# Password manager
set $pwman /home/whitelynx/bin/rofi-lpass-run
### Configuration
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Input Sans Narrow,Icons 8.25
# Hide vertical borders at the edge of the screen
hide_edge_borders both
# New container tiling mode
workspace_layout tabbed
# Don't steal focus
focus_on_window_activation urgent
# Wrap focus around within containers
focus_wrapping yes
# Don't move the mouse pointer on me!
mouse_warping none
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg /home/whitelynx/Pictures/Wallpaper/InterfaceLIFT/04114_intotheforest_3440x1440.jpg fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
#output eDP-1 pos 0 0 res 3200x1800
#output DP-5 pos 1920 0 res 3440x1440
#output DP-6 pos 1920 0 res 3440x1440
#output eDP-1 scale 2
#output DP-5 scale 1
#output DP-6 scale 1
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
input "1739:31251:DLL08AC:01_06CB:7A13_Touchpad" {
dwt enabled
tap enabled
natural_scroll enabled
click_method clickfinger
scroll_method two_finger
events disabled_on_external_mouse
}
input "1386:18549:Wacom_HID_4875_Finger" {
map_to_output eDP-1
events disabled
}
input "1386:18549:Wacom_HID_4875_Pen" {
map_to_output eDP-1
}
input "1:1:AT_Translated_Set_2_keyboard" {
#xkb_layout us,us,us,us
#xkb_variant dvorak,dvorak-intl,dvorak-alt-intl,
#xkb_options ctrl:nocaps,altwin:swap_lalt_lwin,lv3:ralt_switch,compose:lctrl,eurosign:5,nbsp:zwnj2nb3nnb4,terminate:ctrl_alt_bksp
xkb_layout us
xkb_variant dvorak
xkb_options ctrl:nocaps,altwin:swap_lalt_lwin,lv3:ralt_switch,compose:lctrl,eurosign:5
xkb_numlock enabled
}
### Key bindings
#
# Basics:
#
# start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+C kill
# start your launcher
bindsym $mod+p exec $menu
# password manager
bindsym $mod+Shift+P exec $pwman
# 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
# exit sway (logs you out of your wayland session)
bindsym $mod+Shift+e exit
# Lock the screen
bindsym $mod+l exec --no-startup-id ~/bin/swayexit lock
# List keybindings
bindsym $mod+slash exec --no-startup-id ~/bin/sway-help
#
# Miscellaneous:
#
# Volume controls
bindsym $mod+Prior exec --no-startup-id ponymix -t sink increase 2; exec --no-startup-id ~/bin/notify-volume
bindsym $mod+Next exec --no-startup-id ponymix -t sink decrease 2; exec --no-startup-id ~/bin/notify-volume
bindsym XF86AudioRaiseVolume exec --no-startup-id ponymix -t sink increase 2; exec --no-startup-id ~/bin/notify-volume
bindsym XF86AudioLowerVolume exec --no-startup-id ponymix -t sink decrease 2; exec --no-startup-id ~/bin/notify-volume
bindsym XF86AudioMute exec --no-startup-id ponymix -t sink toggle; exec --no-startup-id ~/bin/notify-volume
#
# Moving around:
#
# Change focus
bindsym $mod+h focus parent; focus left
bindsym $mod+t focus parent; focus down
bindsym $mod+n focus parent; focus up
bindsym $mod+s focus parent; focus right
bindsym $mod+o focus left
bindsym $mod+u focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move focused window
bindsym $mod+Shift+H move left
bindsym $mod+Shift+T move down
bindsym $mod+Shift+N move up
bindsym $mod+Shift+S move right
bindsym $mod+Shift+o move left
bindsym $mod+Shift+u move right
# Move current workspace
bindsym $mod+Ctrl+h move workspace to output left
bindsym $mod+Ctrl+s move workspace to output right
# alternatively, you can use the cursor 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
## Move your focus around
#bindsym $mod+$left focus left
#bindsym $mod+$down focus down
#bindsym $mod+$up focus up
#bindsym $mod+$right 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+$left move left
#bindsym $mod+Shift+$down move down
#bindsym $mod+Shift+$up move up
#bindsym $mod+Shift+$right 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
## Note: workspaces can have any name you want, not just numbers.
## We just use 1-10 as the default.
# Workspace names
set $ws1 1▪alpha
set $ws2 2▪beta
set $ws3 3▪gamma
set $ws4 4▪delta
set $ws5 5▪epsilon
set $ws6 6▪pi
set $ws7 7▪omega
set $ws8 8▪phlange
set $ws9 9▪squirrelbacon
set $ws10 10▪operand
set $ws11 [▪clango
set $ws12 "]▪sadrobot"
# Assign workspaces to outputs
workspace $ws1 output eDP-1
workspace $ws2 output eDP-1
workspace $ws3 output eDP-1
workspace $ws4 output eDP-1
workspace $ws5 output eDP-1
workspace $ws6 output DP-5
workspace $ws7 output DP-5
workspace $ws8 output DP-5
workspace $ws9 output DP-5
workspace $ws10 output DP-5
workspace $ws11 output DP-5
workspace $ws12 output DP-5
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym $mod+bracketleft workspace $ws11
bindsym $mod+bracketright workspace $ws12
# Move focused container to workspace
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8
bindsym $mod+Ctrl+9 move container to workspace $ws9
bindsym $mod+Ctrl+0 move container to workspace $ws10
bindsym $mod+Ctrl+bracketleft move container to workspace $ws11
bindsym $mod+Ctrl+bracketright move container to workspace $ws12
# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
bindsym $mod+Shift+bracketleft move container to workspace $ws11; workspace $ws11
bindsym $mod+Shift+bracketright move container to workspace $ws12; workspace $ws12
#
# Layout stuff:
#
set $mode_layout [layout] split (h)orizontal, split (v)ertical, (s)tacking layout, (t)abbed layout, toggle s(p)lit
mode "$mode_layout" {
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym h splith; mode "default"
bindsym v splitv; mode "default"
# Switch the current container between different layout styles
bindsym s layout stacking; mode "default"
bindsym t layout tabbed; mode "default"
bindsym p layout toggle split; mode "default"
# exit layout mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+y mode "$mode_layout"
# 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+Ctrl+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+grave 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+grave scratchpad show
#
# Shut down, restart and locking features
#
set $mode_system [system] (l)ock, (e)xit sway, reload sway (c)onfiguration, (r)estart sway, toggle status (b)ar, switch (Shift+U)ser, (Shift+S)uspend, (Shift+H)ibernate, (Shift+R)eboot, (Shift+P)oweroff
bindsym $mod+a mode "$mode_system"
mode "$mode_system" {
# lock the screen
bindsym l exec --no-startup-id ~/bin/swayexit lock, mode "default"
# log out (exit sway)
bindsym e exec --no-startup-id ~/bin/swayexit logout, mode "default"
# reload the configuration file
bindsym c reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
bindsym r restart
# hide/unhide swaystatus bar
bindsym b bar mode toggle, mode "default"
bindsym Shift+u exec --no-startup-id ~/bin/swayexit switch_user, mode "default"
bindsym Shift+s exec --no-startup-id ~/bin/swayexit suspend, mode "default"
bindsym Shift+h exec --no-startup-id ~/bin/swayexit hibernate, mode "default"
bindsym Shift+r exec --no-startup-id ~/bin/swayexit reboot, mode "default"
bindsym Shift+p exec --no-startup-id ~/bin/swayexit shutdown, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
#
# Shut down, restart and locking features
#
#set $mode_screenshot [screenshot] full (s)creen, current (w)indow, select (a)rea
set $mode_screenshot [screenshot] full (s)creen, select (a)rea
bindsym Print mode "$mode_screenshot"
mode "$mode_screenshot" {
# Screenshots
bindsym s exec --no-startup-id ~/bin/swaygrim, mode "default"
#bindsym w exec --no-startup-id ~/bin/swaygrim -w, mode "default"
bindsym a exec --no-startup-id ~/bin/swaygrim -s, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
#
# Resizing containers:
#
set $mode_resize [resize] h/s, Left/Right: shrink/grow window width; n/t, Up/Down: shrink/grow height
bindsym $mod+r mode "$mode_resize"
mode "$mode_resize" {
bindsym h resize shrink width 5 px or 5 ppt
bindsym t resize grow height 5 px or 5 ppt
bindsym n resize shrink height 5 px or 5 ppt
bindsym s resize grow width 5 px or 5 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# exit resize mode: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
#
# Literal mode: disable all key bindings except `Escape`
#
set $mode_literal [literal mode]
bindsym $mod+v mode "$mode_literal"
mode "$mode_literal" {
bindsym Escape mode "default"
}
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
status_command i3blocks
position top
colors {
statusline #ffffff
background #000000DD
# class border backgr. text
focused_workspace #808280CC #808280DD #000000
active_workspace #434745CC #434745DD #000000
inactive_workspace #000000CC #000000DD #16A085
#urgent_workspace #434745CC #434745DD #16A085
#binding_mode #434745CC #434745DD #16A085
}
}
#
# Theme colors:
#
# class border backgr. text indic. child_border
client.focused #808280CC #808280DD #000000 #FDF6E3 #808280DD
client.focused_inactive #434745CC #434745DD #000000 #454948 #434745DD
client.unfocused #000000CC #000000DD #16A085 #454948 #434745DD
client.urgent #CB4B16CC #FDF6E3DD #16A085 #268BD2 #FDF6E3DD
client.placeholder #000000CC #0C0C0CDD #FFFFFF #000000 #0C0C0CDD
client.background #2B2C2BAA
include /etc/sway/config.d/*
# vim: et sw=4 ts=4 sts=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment