This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Creates an EFI boot option for kernel image on the root partition with swap included | |
# Requires: efibootmgr, blkid | |
# Kernel parameters are after '--unicode' | |
root_uuid="$(blkid -s UUID -o value /dev/nvme0n1p3)" | |
swap_uuid="$(blkid -s UUID -o value /dev/nvme0n1p2)" | |
efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "Arch Linux" --loader /vmlinuz-linux --unicode "root=UUID=${root_uuid} resume=UUID=${swap_uuid} rw initrd=\initramfs-linux.img" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ee4887ce283d44bb1fa63cdf714b6d41a9dfe2d6 Mon Sep 17 00:00:00 2001 | |
From: Piotr Marendowski <[email protected]> | |
Date: Thu, 7 Dec 2023 14:14:00 +0100 | |
Subject: [PATCH] Fix smartborders patch | |
--- | |
config.def.h | 1 + | |
dwl.c | 42 +++++++++++++++++++++++++++--------------- | |
2 files changed, 28 insertions(+), 15 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* requires Xlib and libspng * | |
* gcc -o demo demo.c -l X11 -l spng -g */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <X11/Xlib.h> | |
#include <spng.h> | |
unsigned char *process_png_image(char *filename); | |
int main(void) |