diff --git a/.config/X11/xresources b/.config/X11/xresources index 9934e969..44fea1e7 100644 --- a/.config/X11/xresources +++ b/.config/X11/xresources @@ -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 diff --git a/.config/zsh/configs/bindings b/.config/zsh/configs/bindings index 0f21a257..de6ce599 100644 --- a/.config/zsh/configs/bindings +++ b/.config/zsh/configs/bindings @@ -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 diff --git a/.config/zsh/configs/widgets b/.config/zsh/configs/widgets index 3a1a8216..a521f994 100644 --- a/.config/zsh/configs/widgets +++ b/.config/zsh/configs/widgets @@ -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