about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 52bb9f1..5f3b9c9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -904,7 +904,7 @@ manage(Window w, XWindowAttributes *wa) {
 	if(c->w == sw && c->h == sh) {
 		c->x = sx;
 		c->y = sy;
-		c->bw = wa->border_width;
+		c->bw = 0;
 	}
 	else {
 		if(c->x + c->w + 2 * c->bw > sx + sw)
;vc@akkartik.com> 2019-08-09 21:57:27 -0700 5502 - package up into a bootable disk image' href='/akkartik/mu/commit/gen_iso?h=hlt&id=30b2fcf8e6b2b127f769d339ced085ac685c3bcf'>30b2fcf8 ^
30b2fcf8 ^
























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61






                                                                            
                                                                             




















                                                                                           

                                              


                          
                               
           
























                                                                                                                       
#!/bin/sh
# Build one or more .subx files into an ELF binary, and package it up into a
# bootable ISO image.
#
# Must be run on Linux.
#
# Dependencies:
#   apt install build-essential flex bison wget libelf-dev libssl-dev xorriso
#
# Based on http://minimal.linux-bg.org (GPLv3)

set -e

if [ $# -eq 0 ]
then
  echo "Usage: `basename $0` file.subx ..."
  exit 1
fi

echo "=== constructing initramfs out of SubX binary"
./ntranslate $*
mv a.elf init
chmod +x init
rm -rf tmp/isoimage
mkdir -p tmp/isoimage/boot
echo init | cpio -R root:root -H newc -o | xz -9 --check=none > tmp/isoimage/boot/rootfs.xz

if [ ! -d kernel ]
then
  echo "=== cloning kernel"
  git clone https://github.com/akkartik/kernel
fi

echo "=== building kernel"
cp kernel.config kernel/.config
( cd kernel
  make bzImage -j $(grep ^processor /proc/cpuinfo | wc -l)
)
cp kernel/arch/x86/boot/bzImage tmp/isoimage/boot/kernel.xz

echo "=== downloading syslinux"
test -f tmp/syslinux-6.03.tar.xz  ||  wget https://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz -P tmp
echo "=== unpacking syslinux"
tar xf tmp/syslinux-*.tar.xz -C tmp

mkdir -p tmp/isoimage/boot/syslinux
cp syslinux.cfg \
   tmp/syslinux-*/bios/core/isolinux.bin \
   tmp/syslinux-*/bios/com32/elflink/ldlinux/ldlinux.c32 \
   tmp/isoimage/boot/syslinux

echo "=== generating ISO"
# 'hybrid' ISO can also be used on non-optical media such as a disk or USB stick
xorriso -as mkisofs \
  -isohybrid-mbr tmp/syslinux-*/bios/mbr/isohdpfx.bin \
  -c boot/syslinux/boot.cat \
  -b boot/syslinux/isolinux.bin \
    -no-emul-boot \
    -boot-load-size 4 \
    -boot-info-table \
  tmp/isoimage -o mu.iso