Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from NNBnh/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
NNBnh authored May 18, 2021
2 parents a328cb4 + f057832 commit 54209f3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
PREFIX ?= /usr/local
MANDIR ?= $(PREFIX)/share/man

BIN ?= bt


install:
@mkdir -p $(PREFIX)/bin
@mkdir -p $(MANDIR)/man1

@cp -p bin/$(BIN) $(PREFIX)/bin/
@cp -p man/$(BIN).1 $(MANDIR)/man1/
@cp -p bin/bt $(PREFIX)/bin/
@cp -p bin/bt-app $(PREFIX)/bin/
@cp -p man/bt.1 $(MANDIR)/man1/

@chmod 755 $(PREFIX)/bin/$(BIN)
@chmod 755 $(PREFIX)/bin/bt
@chmod 755 $(PREFIX)/bin/bt-app


uninstall:
@rm -rf $(PREFIX)/bin/$(BIN)
@rm -rf $(MANDIR)/man1/$(BIN).1*
@rm -rf $(PREFIX)/bin/bt
@rm -rf $(MANDIR)/man1/bt.1*
4 changes: 3 additions & 1 deletion bin/bt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@


# Values
FONT_FAMILY="${BUI_FONT_MONO_FAMILY:-Liberation Mono}"
FONT_FAMILY="${BUI_FONT_MONO_FAMILY:-Monospace}"
FONT_SIZE="${BUI_FONT_MONO_SIZE:-10.0}"
OPACITY="${BUI_OPACITY:-1.0}"

OPACITY="${BUI_OPACITY:-1.0}"

case "$BUI_FONT_ANTIALIAS" in
'true'|'') FONT_ANTIALIAS='true' ;;
*) FONT_ANTIALIAS='false' ;;
Expand Down
34 changes: 34 additions & 0 deletions bin/bt-app
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

# ____ ______
# / __ )_ __/
# / __ |/ /
# / /_/ // /
# /_____//_/

# File: bt-app
# Description: BUI for ST terminal
# Author: NNB
# └─ https://github.com/NNBnh
# URL: https://github.com/NNBnh/bt-app
# License: GPLv3

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.


# Start
"$(getent passwd "$LOGNAME" | cut -d ':' -f '7')" -c "bt"


exit 0

0 comments on commit 54209f3

Please sign in to comment.