Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkuwill/My-dwm-dotfiles-My-st-config
st terminal config steps
https://github.com/tkuwill/My-dwm-dotfiles-My-st-config
archlinux config dmenu dunst dwm st terminal tmux-conf x11
Last synced: 3 days ago
JSON representation
st terminal config steps
- Host: GitHub
- URL: https://github.com/tkuwill/My-dwm-dotfiles-My-st-config
- Owner: tkuwill
- License: gpl-3.0
- Archived: true
- Created: 2022-06-06T07:27:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-29T01:27:24.000Z (almost 2 years ago)
- Last Synced: 2024-11-09T08:02:12.614Z (11 days ago)
- Topics: archlinux, config, dmenu, dunst, dwm, st, terminal, tmux-conf, x11
- Language: C
- Homepage:
- Size: 4.96 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My-st-config & dwm & dmenu & tmux & some scripts of dmenu
st terminal config steps in **archlinux**. (And dwm & dmenu's config)
I also put my tmux's config and .zshrc here.## Screenshot
I added a volume notifications with dunst in dwm.
https://user-images.githubusercontent.com/86701769/183291982-16a51f9b-7c33-41bf-b32e-60e44a70821f.mp4
If you can't see, here is the example video on YouTube. https://www.youtube.com/embed/WoZNyea_gRI
Here is the system info script.
![](/screenshot/sysinfo.png)Here is the Do-not-disturb script.
![](/screenshot/donotdisturb.png)With vertical dmenu.
![](/screenshot/donotdisturbv.png)Here is the tmux.
![](/screenshot/tmux.png)![](/screenshot/st2.png)
![](/screenshot/dwm.png)
![](/screenshot/st.png)
## Notice
It is my first time to install `st`. So the steps may be a little messy.
PLUS, I don't know HOW to install `st`from `AUR`. If you want to install st from AUR, check [st-Archwiki](https://wiki.archlinux.org/title/st).
I also put my dwm and dmenu's configs here. Have a look !
Also some dmenu's scripts here. Have a look !
**Maybe you can also do more search if you are interested in this**.## Credits
- [Arch Linux 下安装 st](https://blog.csdn.net/weixin_44335269/article/details/117848592)
- [mohkale/st](https://github.com/mohkale/st)
- [st-Archwiki](https://wiki.archlinux.org/title/st)
---## Remembering
**st** use `config.def.h` to set.
Remember to **re-compile** everytime when you edit `config.def.h`.
Run `rm -rf config.h && sudo make clean install`.## Steps
First, `git clone https://git.suckless.org/st`. (Assuming you do this in `~`.)
Then, edit `config.mk`.```sh
cd st
vim config.mk
```edit `X11INC = /usr/X11R6/include` → `X11INC = /usr/include/X11`
edit `X11LIB = /usr/X11R6/lib` → `X11LIB = /usr/lib/X11`Then run `sudo make clean install`. After compiling, run `st` in your former terminal.
## Config
By editing `config.def.h` you can config `st`.
Run `rm -rf config.h && sudo make clean install` whenever you edit `config.def.h` or after installing patch for st.## Patch
### Each patch may need some `Dependencies` to make them work. Check that at [st - simple terminal patches](https://st.suckless.org/patches/).Patches I use :
- [st-alpha-20220206-0.8.5.diff](https://st.suckless.org/patches/alpha/st-alpha-20220206-0.8.5.diff)
- [st-anysize-0.8.4.diff](https://st.suckless.org/patches/anysize/st-anysize-0.8.4.diff)
- [st-blinking_cursor-20211116-2f6e597.diff](https://st.suckless.org/patches/blinking_cursor/st-blinking_cursor-20211116-2f6e597.diff)
- [st-delkey-20201112-4ef0cbd.diff](https://st.suckless.org/patches/delkey/st-delkey-20201112-4ef0cbd.diff)
- [st-scrollback-0.8.5.diff](https://st.suckless.org/patches/scrollback/st-scrollback-0.8.5.diff)
- [st-scrollback-mouse-0.8.2.diff](https://st.suckless.org/patches/scrollback/st-scrollback-mouse-0.8.2.diff)
- [st-w3m-0.8.3.diff](https://st.suckless.org/patches/w3m/st-w3m-0.8.3.diff)
- [st-solarized-light-0.8.5.diff](https://st.suckless.org/patches/solarized/st-solarized-light-0.8.5.diff)
You can use browser's `Save Link As` to save them in your `~/st/patch`.
Then typing below to patch you st.
Remember to `patch` in `~/st`.### Remember to add this in your `config.def.h`.
For opacity:(value you can change based on your preference.)
```cpp
/* bg opacity */
float alpha = 0.5;
```For scroll:
```cpp
...static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ XK_ANY_MOD, Button4, kscrollup, {.i = 1}, 0, -1 },
{ XK_ANY_MOD, Button5, kscrolldown, {.i = 1}, 0, -1 },...
static Shortcut shortcuts[] = {
/* mask keysym function argument */
{ XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
{ TERMMOD, XK_Next, zoom, {.f = -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },...
{ TERMMOD, XK_U, kscrollup, {.i = +5} },
{ TERMMOD, XK_D, kscrolldown, {.i = +5} },
};...
```### Steps for patch
```sh
cd st
patch < patch/st-alpha-20220206-0.8.5.diff
patch < patch/st-scrollback-mouse-0.8.2.diff
patch < patch/st-scrollback-0.8.5.diff
patch < patch/st-w3m-0.8.3.diff```
After patching, run `rm -rf config.h && sudo make clean install`.---
## Thanks- [GIN-18](https://github.com/GIN-18)
- [mohkale](https://github.com/mohkale/st)
- [st-Archwiki](https://wiki.archlinux.org/title/st)