base: add removed shell scripts from /bin
This commit is contained in:
parent
7f3ca05506
commit
df9a113237
2
Makefile
2
Makefile
@ -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
5
apps/reload_desktop.sh
Normal 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
11
apps/set-wallpaper.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user