From 967effbc24598eec06e5f8052236ccc0a396feac Mon Sep 17 00:00:00 2001 From: aniketkharel Date: Fri, 5 May 2023 10:49:52 +0545 Subject: [PATCH] font and opacity changes --- Makefile | 3 +++ Makefile.rej | 15 +++++++++++++++ config.h | 8 ++++---- config.mk | 2 +- st.desktop | 11 +++++++++++ 5 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 Makefile.rej create mode 100644 st.desktop diff --git a/Makefile b/Makefile index 02045f0..e21d60c 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,8 @@ install: st cp -f st $(DESTDIR)$(PREFIX)/bin cp -f st-copyout $(DESTDIR)$(PREFIX)/bin cp -f st-urlhandler $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(APPPREFIX) + cp -f st.desktop $(DESTDIR)$(APPPREFIX) chmod 755 $(DESTDIR)$(PREFIX)/bin/st chmod 755 $(DESTDIR)$(PREFIX)/bin/st-copyout chmod 755 $(DESTDIR)$(PREFIX)/bin/st-urlhandler @@ -55,6 +57,7 @@ install: st uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/st + rm -f $(DESTDIR)$(APPPREFIX )/st.desktop rm -f $(DESTDIR)$(PREFIX)/bin/st-copyout rm -f $(DESTDIR)$(PREFIX)/bin/st-urlhandler rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 diff --git a/Makefile.rej b/Makefile.rej new file mode 100644 index 0000000..74d7f09 --- /dev/null +++ b/Makefile.rej @@ -0,0 +1,15 @@ +--- Makefile ++++ Makefile +@@ -49,12 +49,9 @@ install: st + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 + tic -sx st.info + @echo Please see the README file regarding the terminfo entry of st. +- mkdir -p $(DESTDIR)$(APPPREFIX) +- cp -f st.desktop $(DESTDIR)$(APPPREFIX) + + uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/st +- rm -f $(DESTDIR)$(APPPREFIX)/st.desktop + rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 + + .PHONY: all options clean dist install uninstall diff --git a/config.h b/config.h index c86daa3..8475b43 100644 --- a/config.h +++ b/config.h @@ -5,7 +5,7 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "mono:pixelsize=12:antialias=true:autohint=true"; +static char *font = "FiraCode Nerd Font:pixelsize=14:antialias=true:autohint=true"; static char *font2[] = { "NotoColorEmoji:pixelsize=10:antialias=true:autohint=true" }; static int borderpx = 2; @@ -17,7 +17,7 @@ static int borderpx = 2; * 4: value of shell in /etc/passwd * 5: value of shell in config.h */ -static char *shell = "/bin/sh"; +static char *shell = "/bin/zsh"; char *utmp = NULL; /* scroll program: to enable use a string like "scroll" */ char *scroll = NULL; @@ -87,7 +87,7 @@ const int boxdraw_braille = 0; static int bellvolume = 0; /* default TERM value */ -char *termname = "st-256color"; +char *termname = "xterm-256color"; /* * spaces per tab @@ -107,7 +107,7 @@ char *termname = "st-256color"; unsigned int tabspaces = 8; /* bg opacity */ -float alpha = 0.8; +float alpha = 0.9; float alphaOffset = 0.0; float alphaUnfocus; diff --git a/config.mk b/config.mk index ef6de39..b413b9e 100644 --- a/config.mk +++ b/config.mk @@ -6,7 +6,7 @@ VERSION = 0.8.5 # paths PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man - +APPPREFIX = $(PREFIX)/share/applications X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib diff --git a/st.desktop b/st.desktop new file mode 100644 index 0000000..d238fb8 --- /dev/null +++ b/st.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Exec=st +TryExec=st +Icon=utilities-terminal +Terminal=false +Categories=System;TerminalEmulator; +Name=st +GenericName=Terminal +Comment=st is a simple terminal implementation for X +StartupWMClass=xterm-256color