st

Luke's fork of the suckless terminal: vim-bindings, Xresrouces colors, transparency
Log | Files | Refs | README | LICENSE

README.md (2891B)


      1 # Luke's build of st - the simple (suckless) terminal
      2 
      3 The [suckless terminal (st)](https://st.suckless.org/) with some additional features:
      4 
      5 + Compatibility with `Xresources` and `pywal` for dynamic colors. The `Xdefaults` file shows a usage example.
      6 + Default [gruvbox](https://github.com/morhetz/gruvbox) colors otherwise.
      7 + Transparency/alpha, which is also adjustable from `~/.Xresources`.
      8 + Default font is system "mono" at 16pt, meaning the font will match your system font.
      9 + Very useful keybinds including:
     10 	+ Copy is alt-c, paste is alt-v or alt-p pastes from primary selection
     11 	+ Alt-l feeds all urls on screen to dmenu, so they user can choose and
     12 	  follow one (requires dmenu installed).
     13 	+ Zoom in/out or increase font size with Alt+Shift+k/j or u/d for larger intervals.
     14 	+ Hold alt and press either ↑/↓ or the vim keys k/j to move up/down in the terminal.
     15 	+ Shift+Mouse wheel do the same.
     16 	+ Alt-u and Alt-d scroll back/forward in history a page at a time.
     17 	+ Alt-PageUp and Alt-PageDown will do the same.
     18 + Vertcenter
     19 + Scrollback
     20 + updated to latest version 0.8.1
     21 
     22 The following additional bindings were added before I forked this:
     23 
     24 + Scroll through history -- Shift+PageUp/PageDown or Shift+Mouse wheel
     25 + Increase/decrease font size -- Shift+Alt+PageUp/PageDown
     26 + Return to default font size -- Alt+Home
     27 + Paste -- Shift+Insert
     28 
     29 ## Installation for newbs
     30 
     31 ```
     32 make
     33 sudo make install
     34 ```
     35 
     36 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.
     37 
     38 On OpenBSD, be sure to edit `config.mk` first and remove `-lrt` from the `$LIBS` before compiling.
     39 
     40 Be sure to have a composite manager (`xcompmgr`, `compton`, etc.) running if you want transparency.
     41 
     42 ## How to configure dynamically with Xresources
     43 
     44 For many key variables, this build of `st` will look for X settings set in either `~/.Xdefaults` or `~/.Xresources`. You must run `xrdb` on one of these files to load the settings.
     45 
     46 For example, you can define your desired fonts, transparency or colors:
     47 
     48 ```
     49 *.font:	Liberation Mono:pixelsize=12:antialias=true:autohint=true;
     50 *.alpha: 150
     51 *.color0: #111
     52 ...
     53 ```
     54 
     55 The `alpha` value (for transparency) goes from `0` (transparent) to `255`
     56 (opaque).
     57 
     58 ### Colors
     59 
     60 To be clear about the color settings:
     61 
     62 - This build will use gruvbox colors by default and as a fallback.
     63 - If there are Xresources colors defined, those will take priority.
     64 - But if `wal` has run in your session, its colors will take priority.
     65 
     66 Note that when you run `wal`, it will negate the transparency of existing windows, but new windows will continue with the previously defined transparency.
     67 
     68 ## Contact
     69 
     70 - Luke Smith <luke@lukesmith.xyz>
     71 - [https://lukesmith.xyz](https://lukesmith.xyz)