|
This commit is contained in:
parent
3f15c7b6c2
commit
b48198caf0
8
Makefile
8
Makefile
@ -29,7 +29,7 @@ clean:
|
|||||||
dist: clean
|
dist: clean
|
||||||
mkdir -p st-$(VERSION)
|
mkdir -p st-$(VERSION)
|
||||||
cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
|
cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
|
||||||
config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
|
config.def.h show_stuff.sh st_show_stuff.sh st.info st.1 arg.h st.h win.h $(SRC)\
|
||||||
st-$(VERSION)
|
st-$(VERSION)
|
||||||
tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
|
tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
|
||||||
rm -rf st-$(VERSION)
|
rm -rf st-$(VERSION)
|
||||||
@ -37,7 +37,11 @@ dist: clean
|
|||||||
install: st
|
install: st
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f st $(DESTDIR)$(PREFIX)/bin
|
cp -f st $(DESTDIR)$(PREFIX)/bin
|
||||||
|
cp -f show_stuff.sh $(DESTDIR)$(PREFIX)/bin
|
||||||
|
cp -f st_show_stuff.sh $(DESTDIR)$(PREFIX)/bin
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/st
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/st
|
||||||
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/show_stuff.sh
|
||||||
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/st_show_stuff.sh
|
||||||
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
||||||
sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
|
sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
|
||||||
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
|
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
|
||||||
@ -46,6 +50,8 @@ install: st
|
|||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/st
|
rm -f $(DESTDIR)$(PREFIX)/bin/st
|
||||||
|
rm -f $(DESTDIR)$(PREFIX)/bin/show_stuff.sh
|
||||||
|
rm -f $(DESTDIR)$(PREFIX)/bin/st_show_stuff.sh
|
||||||
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
|
||||||
|
|
||||||
.PHONY: all clean dist install uninstall
|
.PHONY: all clean dist install uninstall
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
*
|
*
|
||||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||||
*/
|
*/
|
||||||
static char *font = "Liberation Mono:pixelsize=14:antialias=true:autohint=true";
|
static char *font = "Liberation Mono:pixelsize=16:antialias=true:autohint=true";
|
||||||
/* Spare fonts */
|
/* Spare fonts */
|
||||||
static char *font2[] = {
|
static char *font2[] = {
|
||||||
"Inconsolata for Powerline:pixelsize=14:antialias=true:autohint=true",
|
// "Inconsolata for Powerline:pixelsize=14:antialias=true:autohint=true",
|
||||||
// "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true",
|
// "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ char *termname = "st-256color";
|
|||||||
unsigned int tabspaces = 8;
|
unsigned int tabspaces = 8;
|
||||||
|
|
||||||
/* bg opacity */
|
/* bg opacity */
|
||||||
float alpha = 0.9;
|
float alpha = 0.8;
|
||||||
|
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
|
8
show_stuff.sh
Executable file
8
show_stuff.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
trap 'stty sane; exit' INT TERM
|
||||||
|
eval "$@"
|
||||||
|
stty_orig="$(stty -g)"
|
||||||
|
stty -echo raw
|
||||||
|
dd bs=1 count=1 1>/dev/null 2>/dev/null
|
||||||
|
stty $stty_orig
|
||||||
|
|
3
st_show_stuff.sh
Normal file
3
st_show_stuff.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
st -e show_stuff.sh "$@"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user