Giter Site home page Giter Site logo

taichifan / st Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukesmithxyz/st

0.0 1.0 0.0 1.95 MB

Luke's fork of the suckless simple terminal (st). Some patches, fixes and bindings to make my life easier.

License: MIT License

Makefile 1.38% C 79.87% Objective-C 16.04% Roff 2.72%

st's Introduction

Luke's build of st - the simple (suckless) terminal

Forked from https://github.com/shiva/st for simplicity's sake, which is the suckless terminal (st) with some patches added:

  • transparency
  • copy to clipboard (alt-shift-c)
  • Optional compatibility with Xresources and pywal for dynamic colors
  • Solarized colors (light and dark toggleable)
  • vertcenter
  • scrollback with keyboard
  • scrollback with mouse
  • updated to latest version 0.8.1

My own additions

  • Default font is system "mono" at 14pt, meaning the font will match your system font.
  • Hold alt and press either โ†‘/โ†“ or the vim keys k/j to move up/down in the terminal.
  • Alt-u and Alt-d scroll back/forward in history a page at a time.
  • Alt-PageUp and Alt-PageDown scroll back/forward in history a page at a time.
  • Transparency with solarized colors by default.
  • Zoom in/out with Alt+Shift+k/j or u/d for larger intervals.

Terminal-specific mappings

(Additions before me.)

  • Scroll through history -- Shift+PageUp/PageDown or Shift+Mouse wheel
  • Increase/decrease font size -- Shift+Alt+PageUp/PageDown
  • Return to default font size -- Shift+Alt+Home
  • Paste -- Shift+Insert

Installation for newbs

make
sudo make install

Obviously, make is required to build. fontconfig is required for the default build, since it asks fontconfig for your system monospace font. It might be obvious, but libX11 and libXft are required as well. Chances are, you have all of this installed already.

Custom changes (config.def.h or config.h)

Solarized

By default, the terminal is transparent with a blackish background. There's a patch file solarized-alpha-toggle.patch which you can use to remove the transparency and give it a typical deep, dark blue solarized background. Just run:

patch < solarized-alpha-toggle.patch

Then, run make & sudo make install again to install the new build. You make reverse the solarized background by running the same command as above, but giving patch the -R option as well.

Xresources and pywal/wal compatibility

If you use wal to maintain color schemes across your programs, you can use the xresources.patch.

patch < xresources.patch
make && sudo make install

Explore config.h

  • Change colorname[] array values (88 LOC), default colours are solarized.
  • Numbers of 0 - 15 are usual terminal colors. Change them to your liking.
  • Change bg to your desired terminal background color.
  • Change fg to your desired terminal foreground color.
  • Change cursor to your desired terminal cursor color.

st's People

Contributors

aaptel avatar k0gamsx avatar lukesmithxyz avatar colona avatar frign avatar medgar123 avatar electronicru avatar shiva avatar ericpruitt avatar garbeam avatar schachmat avatar suiginsoft avatar blackbit42 avatar esjeon avatar hiltjo avatar michaelforney avatar mvdan avatar radare avatar pilona avatar v4hn avatar agonrex avatar wengxt avatar mihailzenkov avatar jceb avatar brandoninvergo avatar amade avatar osandov avatar philipnelson5 avatar rafaelgg avatar rianhunter avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.