Skip to content

Instantly share code, notes, and snippets.

View bendik's full-sized avatar
👣

Bendik Aagaard Lynghaug bendik

👣
View GitHub Profile
### Keybase proof
I hereby claim:
* I am bendik on github.
* I am benlyn (https://keybase.io/benlyn) on keybase.
* I have a public key ASDQYEGj33YFQuaw55hN4wZWr83DsjsSFjssEAkENcjzOwo
To claim this, I am signing this object:
2019-02-12 15:31:15 - [sway/sway/main.c:152] Linux kringkaster 4.20.5-arch1-1-ARCH #1 SMP PREEMPT Sat Jan 26 12:59:18 UTC 2019 x86_64 GNU/Linux
2019-02-12 15:31:15 - [sway/sway/main.c:168] Contents of /etc/os-release:
2019-02-12 15:31:15 - [sway/sway/main.c:152] NAME="Arch Linux"
2019-02-12 15:31:15 - [sway/sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-02-12 15:31:15 - [sway/sway/main.c:152] ID=arch
2019-02-12 15:31:15 - [sway/sway/main.c:152] BUILD_ID=rolling
2019-02-12 15:31:15 - [sway/sway/main.c:152] ANSI_COLOR="0;36"
2019-02-12 15:31:15 - [sway/sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2019-02-12 15:31:15 - [sway/sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-02-12 15:31:15 - [sway/sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
@bendik
bendik / backtrace.log
Created February 12, 2019 23:45
journalctl -xe
Feb 12 15:31:42 kringkaster systemd-coredump[29753]: Process 29422 (sway) of user 1000 dumped core.
Stack trace of thread 29422:
#0 0x000055fc27d5bc09 subsurface_get_root_coords (sway)
#1 0x000055fc27d5be47 view_child_damage (sway)
#2 0x000055fc27d5c1a1 view_child_destroy (sway)
#3 0x000055fc27d5bd07 subsurface_handle_destroy (sway)
#4 0x00007f0c5d5c789e wlr_signal_emit_safe (libwlroots.so.0)
#5 0x00007f0c5d5c1054 subsurface_destroy (libwlroots.so.0)
#6 0x00007f0c5d5c789e wlr_signal_emit_safe (libwlroots.so.0)
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055fc27d5bc09 in subsurface_get_root_coords (child=0x55fc29cbae20, root_sx=0x7ffca354fab0, root_sy=0x7ffca354fab4)
at ../sway/sway/tree/view.c:711
711 ../sway/sway/tree/view.c: No such file or directory.
[Current thread is 1 (Thread 0x7f0c5b3df9c0 (LWP 29422))]
(gdb) bt full
#0 0x000055fc27d5bc09 in subsurface_get_root_coords (child=0x55fc29cbae20, root_sx=0x7ffca354fab0, root_sy=0x7ffca354fab4)
at ../sway/sway/tree/view.c:711
subsurface = 0x0
surface = 0x55fc29cc3ab0
@bendik
bendik / config
Created February 13, 2019 00:01
Sway config
# 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.
Apr 09 12:29:13 kringkaster systemd[599]: sway.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [sway-1.0/sway/server.c:46] Unable to create backend
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [wlroots-0.5.0/backend/backend.c:282] Failed to start a DRM session
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [wlroots-0.5.0/backend/session/session.c:96] Failed to load session backend
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [wlroots-0.5.0/backend/session/direct.c:170] Cannot open /dev/tty: No such device or address
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [wlroots-0.5.0/backend/session/logind.c:576] Session '8' isn't a graphical session (type: 'tty')
Apr 09 12:29:13 kringkaster sway[3182]: 2019-04-09 12:29:13 - [wlroots-0.5.0/backend/wayland/backend.c:199] Could not connect to remote display: No such file or directory
@bendik
bendik / alacritty-sway-start.sh
Created December 4, 2019 10:30
Alacritty Sway current working directory in with new terminal
#!/bin/bash
# This script assumes you have `dynamic_title true` in you `alacritty.yml`
WDIR=$(\
swaymsg -t get_tree |\
jq '.. | select(.type?) | select(.type=="con") | select(.focused==true) | select(.app_id=="Alacritty").name' |\
tr -d '"' |\
cut -d ' ' -f2 \
)
if [ "" != "$WDIR" ]; then
/usr/bin/alacritty --working-directory "$WDIR"
@bendik
bendik / pipewire-pulse.conf
Created October 9, 2021 13:32
zeroconf audio pi config
# PulseAudio config file for PipeWire version "0.3.33" #
#
# Copy and edit this file in /etc/pipewire for systemwide changes
# or in ~/.config/pipewire for local changes.
context.properties = {
## Configure properties in the system.
#mem.warn-mlock = false
#mem.allow-mlock = true
#mem.mlock-all = false