Skip to content

Instantly share code, notes, and snippets.

❯ coredumpctl gdb sway
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
PID: 717 (sway)
UID: 1000 (friso)
GID: 1000 (friso)
Signal: 11 (SEGV)
Timestamp: Fri 2021-12-03 13:44:51 CET (6min ago)
Command Line: sway
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] darkman-0.2.0-1
1 darkman (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): darkman
1 darkman (Build Files Exist)
#!/bin/bash
ICON_ROOT=/usr/share/icons/Adwaita
# pause in milliseconds per test notification
# about icons 5907 in total
PAUSE=1
LOG="wg-dunst-test-icons.log"
# $ find $ICON_ROOT -type f | grep -v -e "\(.png\|.svg\)"
# shows that the only other files are below, which are not icons
@fwsmit
fwsmit / anchor.diff
Created April 4, 2021 17:06
Mako patch for adding left-right anchors
diff --git a/config.c b/config.c
index 6d68205..2423dbf 100644
--- a/config.c
+++ b/config.c
@@ -597,6 +597,16 @@ static bool apply_style_option(struct mako_style *style, const char *name,
ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT;
} else if (strcmp(value, "center") == 0) {
style->anchor = 0;
+ } else if (strcmp(value, "left-right") == 0) {
+ style->anchor = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT |
[ 88.912559] CPU: 8 PID: 1018 Comm: sway Tainted: G W OE 5.11.9-arch1-1 #1
[ 88.912567] Hardware name: HP HP ZBook Studio G5/8427, BIOS Q71 Ver. 01.10.02 02/24/2020
[ 88.912571] RIP: 0010:ttm_bo_release+0x2ac/0x300 [ttm]
[ 88.912591] Code: e8 29 3c ce e1 e9 e3 fd ff ff 48 8b 7d 88 b9 28 23 00 00 31 d2 be 01 00 00 00 e8 9f 61 ce e1 48 8b 45 d8 eb 9d 4c 89 e0 eb 98 <0f> 0b c7 85 9c 00 00 00 00 00 00 00 4c 89 ef e8 b0 f1 ff ff 48 8d
[ 88.912598] RSP: 0018:ffffb13c80ee7880 EFLAGS: 00010202
[ 88.912604] RAX: 0000000000000001 RBX: ffff9e84830bf100 RCX: 0000000000000006
[ 88.912609] RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffffc0822b28
[ 88.912614] RBP: ffff9e84830bf170 R08: ffff9e8499c95f38 R09: ffff9e84830bf000
[ 88.912618] R10: ffff9e84830bf000 R11: 0000000001320122 R12: ffff9e848fd866d0
[ 88.912622] R13: ffff9e84830bf000 R14: 0000000000000000 R15: ffff9e8480f3e700
[ 1006.458455] processor_thermal_rapl cfg80211 mei idma64 soundcore intel_rapl_common sysfillrect intel_ishtp rfkill sysimgblt ucsi_acpi fb_sys_fops intel_soc_dts_iosf intel_pch_thermal typec_ucsi tpm_crb typec int3403_thermal i2c_hid int340x_thermal_zone wmi tpm_tis hp_accel video tpm_tis_core lis3lv02d tpm int3400_thermal mac_hid rng_core acpi_thermal_rel acpi_pad hp_wireless vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) drm sg crypto_user fuse agpgart bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc mmc_core xhci_pci crc32c_intel serio_raw rtsx_pci xhci_pci_renesas
[ 1006.458486] CPU: 1 PID: 5272 Comm: sway Tainted: G W OE 5.11.9-arch1-1 #1
[ 1006.458488] Hardware name: HP HP ZBook Studio G5/8427, BIOS Q71 Ver. 01.10.02 02/24/2020
[ 1006.458489] RIP: 0010:ttm_bo_release+0x2ac/0x300 [ttm]
[ 1006.458494] Code: e8 29 3c ba ee e9 e3 fd ff ff 48 8b 7d 88 b9 28 23 00 00 31 d2 be 01 00 00 00 e8 9f 61 ba ee 48 8b 45 d8 eb 9d 4c 89 e0 eb 98 <0f> 0b c7 85 9c 00 00 00 00 0
[global]
font = Iosevka Term 11
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
00:00:00.087 [ERROR] [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_DISPLAY (0x3008), message: "(null)"
00:00:00.087 [ERROR] [render/egl.c:315] eglQueryDeviceStringEXT(EGL_EXTENSIONS) failed
00:00:00.087 [ERROR] [EGL] command: eglMakeCurrent, error: EGL_BAD_DISPLAY (0x3008), message: "Invalid display (nil)"
00:00:00.089 [ERROR] [EGL] command: eglCreatePlatformWindowSurfaceEXT, error: EGL_NOT_INITIALIZED (0x3001), message: "_eglCreateWindowSurfaceCommon"
00:00:00.089 [ERROR] [render/egl.c:446] Failed to create EGL surface
layer-shell: examples/layer-shell.c:638: main: Assertion `egl_surface' failed.
@fwsmit
fwsmit / firefox middle click with move
Created December 28, 2020 12:30
Important output starts at 5297
[1742697.685] -> wl_display@1.get_registry(new id wl_registry@2)
[1742697.723] -> wl_display@1.sync(new id wl_callback@3)
[1742697.859] wl_display@1.delete_id(3)
[1742697.897] wl_registry@2.global(1, "wl_shm", 1)
[1742697.904] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1742697.955] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 11, 2304)
[1742698.138] -> wl_shm_pool@5.resize(6912)
[1742698.205] -> wl_shm_pool@5.resize(16128)
[1742698.317] -> wl_shm_pool@5.resize(34560)
[1742698.520] -> wl_shm_pool@5.resize(71424)