base: add removed shell scripts from /bin

This commit is contained in:
K. Lange 2021-06-15 16:47:02 +09:00
parent 7f3ca05506
commit df9a113237
3 changed files with 17 additions and 1 deletions

View File

@ -88,7 +88,7 @@ system: image.iso
$(BASE)/mod/%.ko: modules/%.c | dirs
${CC} -c ${KERNEL_CFLAGS} -mcmodel=large -o $@ $<
ramdisk.igz: $(wildcard $(BASE)/* $(BASE)/*/* $(BASE)/*/*/*) $(APPS_X) $(LIBS_X) $(KRK_MODS_X) $(BASE)/bin/kuroko $(BASE)/lib/ld.so $(APPS_KRK_X) $(KRK_MODS)
ramdisk.igz: $(wildcard $(BASE)/* $(BASE)/*/* $(BASE)/*/*/*) $(APPS_X) $(LIBS_X) $(KRK_MODS_X) $(BASE)/bin/kuroko $(BASE)/lib/ld.so $(APPS_KRK_X) $(KRK_MODS) $(APPS_SH_X)
python3 util/createramdisk.py
KRK_SRC = $(sort $(wildcard kuroko/src/*.c))

5
apps/reload_desktop.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
export-cmd DESKTOP cat /var/run/.wallpaper.pid
if not empty? "$DESKTOP" then kill -SIGUSR2 $DESKTOP

11
apps/set-wallpaper.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if empty? "$1" then exec sh -c "echo 'usage: $0 WALLPAPER'"
if not stat -Lq "$1" then exec sh -c "echo '$0: $1 does not exist'"
export-cmd DESKTOP cat /var/run/.wallpaper.pid
if empty? "$DESKTOP" then sh -c "echo '$0: No wallpaper running?'"
echo "wallpaper=$1" > $HOME/.wallpaper.conf
kill -SIGUSR1 $DESKTOP