1
0
Fork 0

xresources for st

This commit is contained in:
Luca Bilke 2024-02-05 17:32:24 +01:00
parent 35c1471be3
commit 8671663e1a
3 changed files with 37 additions and 3 deletions

View file

@ -65,3 +65,31 @@ dwm.scratchnormfgcolor: UNDEFINED
dwm.scratchnormbgcolor: UNDEFINED
dwm.scratchnormbordercolor: GRAY
dwm.scratchnormfloatcolor: GRAY
! *.font: Noto Sans:style=Regular:pixelsize=14:antialias=true;
st.color0: BLACK
st.color1: RED
st.color2: GREEN
st.color3: ORANGE
st.color4: BLUE
st.color5: MAGENTA
st.color6: CYAN
st.color7: LIGHT_GRAY
st.color8: GRAY
st.color9: RED
st.color10: GREEN
st.color11: ORANGE
st.color12: BLUE
st.color13: MAGENTA
st.color14: CYAN
st.color15: WHITE
st.cursorColor: WHITE
st.foreground: WHITE
st.background: BLACK
st.unfocusedForeground: WHITE
st.unfocusedBackground: BLACK
st.selectionForeground: WHITE
st.selectionBackground: #33467c
st.alpha: 0.9
st.alphaUnfocused: 0.80

View file

@ -10,6 +10,7 @@ bindkey -M menuselect 'j' vi-down-line-or-history
# Widgets
bindkey '^e' lfwrap
bindkey '^g' lg
bindkey '^[[15~' refresh_xrdb_st
bindkey -M vicmd '^v' edit-command-line
bindkey '^?' backward-delete-char

View file

@ -14,7 +14,7 @@ function write_title_wd() { echo -ne "\033]0;$(print -P "%n@%m [%3~]")\007"; }
function reset_beam() { echo -ne '\e[5 q'; }
function lfwrap () {
function lfwrap() {
LF_DIRFILE="/tmp/lfdir.$(uuidgen)"
env EMBEDDED=true lfX -last-dir-path="$LF_DIRFILE"
dir="$(cat "$LF_DIRFILE")"
@ -33,7 +33,7 @@ function lfwrap () {
zle -N lfwrap
# Cursor Shape
function zle-keymap-select () {
function zle-keymap-select() {
case $KEYMAP in
vicmd) echo -ne '\e[1 q';; # block
viins|main) echo -ne '\e[5 q';; # beam
@ -50,9 +50,14 @@ zle -N zle-line-init
zle -N edit-command-line
# Lazygit
function lg () {
function lg() {
[ ! -d "$(pwd)/.git" ] && [[ $(read -erk "?Not in a git repository. Create a new git repository? (y/n): ") =~ ^[Yy]$ ]] && git init
[ -d "$(pwd)/.git" ] && lazygit -p "$(pwd)"
zle reset-prompt
}
zle -N lg
function refresh_xrdb_st() {
killall -USR1 st
}
zle -N refresh_xrdb_st