Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Default acpi script that takes an entry for all actions
case "$1" in
button/power)
case "$2" in
PBTN|PWRF)
logger 'PowerButton pressed'
;;
*)
@skeleten
skeleten / dmesg
Last active September 13, 2018 16:47
[ 0.000000] Linux version 4.18.6-arch1-1-ARCH (builduser@heftig-4211) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018
[ 0.000000] Command line: \\boot\vmlinuz-linux root=PARTUUID=218d9ae6-578a-4456-b300-e48b15daf8d1 rw add_efi_memmap thinkpad-acpi.brightness_enable=1 initrd=\boot\initramfs-linux.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] Linux version 4.18.6-arch1-1-ARCH (builduser@heftig-4211) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Wed Sep 5 11:54:09 UTC 2018
[ 0.000000] Command line: \\boot\vmlinuz-linux root=PARTUUID=218d9ae6-578a-4456-b300-e48b15daf8d1 rw add_efi_memmap thinkpad-acpi.brightness_enable=1 initrd=\boot\initramfs-linux.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
acheron
description: Notebook
product: 20BFS01T00 (LENOVO_MT_20BF)
vendor: LENOVO
version: ThinkPad T540p
serial: R900EZTD
width: 4294967295 bits
capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
configuration: administrator_password=disabled chassis=notebook family=ThinkPad T540p power-on_password=disabled sku=LENOVO_MT_20BF uuid=012BB2BE-8E53-CB11-BEB4-CBA136581EA6
*-core
Fresh version_check v0.1.4
Fresh pkg-config v0.3.14
Fresh siphasher v0.2.3
Fresh gcc v0.3.54
Fresh libc v0.2.43
Fresh rand_core v0.2.1
Fresh cfg-if v0.1.5
Fresh matches v0.1.8
Fresh unicode-normalization v0.1.7
Fresh percent-encoding v1.0.1
emacs: magick/cache.c:306: AddOpenCLEvent: Assertion `cache_info->opencl != (OpenCLCacheInfo *) NULL' failed.
Fatal error 6: Aborted
Backtrace:
emacs[0x50f73f]
emacs[0x4f4a72]
emacs[0x50db6f]
emacs[0x50dd99]
emacs[0x50de89]
/usr/lib/libpthread.so.0(+0x11a80)[0x7f74a81d1a80]
/usr/lib/libc.so.6(gsignal+0x10b)[0x7f74a731e86b]
Jul 30 22:52:37 styx systemd-coredump[28540]: Process 28447 (emacs) of user 1000 dumped core.
Stack trace of thread 28447:
#0 0x00007f176ad2191b raise (libpthread.so.0)
#1 0x00000000004f4a3c n/a (emacs-26.1)
#2 0x000000000050db6f n/a (emacs-26.1)
#3 0x000000000050dd99 n/a (emacs-26.1)
#4 0x000000000050de89 n/a (emacs-26.1)
#5 0x00007f176ad21a80 __restore_rt (libpthread.so.0)
#6 0x00007f1769e6e86b raise (libc.so.6)
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: c7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
diff --git a/dwm/config.h b/dwm/config.h
index c9db82f..7887a47 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -118,8 +118,8 @@ static const char *scrot[] = { "nougat", "-f", NULL };
static Key keys[] = {
/* modifier key function argument */
-
- { Super, 27, /* r */ spawn, {.v = ranger } },
diff --git a/dwm/drw.o b/dwm/drw.o
index 2c60e48..630eff7 100644
Binary files a/dwm/drw.o and b/dwm/drw.o differ
diff --git a/dwm/dwm b/dwm/dwm
deleted file mode 100755
index eb04e7b..0000000
Binary files a/dwm/dwm and /dev/null differ
diff --git a/dwm/dwm.c b/dwm/dwm.c
index ef12e7f..cb71751 100644
--- a/dwm/dwm.c