first commit on 31 july 2021
This commit is contained in:
commit
1ad5331eb6
|
@ -0,0 +1,66 @@
|
|||
! special
|
||||
URxvt.foreground: #c5c8c6
|
||||
URxvt.background: #1d1f21
|
||||
URxvt.cursorColor: #c5c8c6
|
||||
|
||||
! black
|
||||
URxvt.color0: #282a2e
|
||||
URxvt.color8: #373b41
|
||||
|
||||
! red
|
||||
URxvt.color1: #a54242
|
||||
URxvt.color9: #cc6666
|
||||
|
||||
! green
|
||||
URxvt.color2: #8c9440
|
||||
URxvt.color10: #b5bd68
|
||||
|
||||
! yellow
|
||||
URxvt.color3: #de935f
|
||||
URxvt.color11: #f0c674
|
||||
|
||||
! blue
|
||||
URxvt.color4: #5f819d
|
||||
URxvt.color12: #81a2be
|
||||
|
||||
! magenta
|
||||
URxvt.color5: #85678f
|
||||
URxvt.color13: #b294bb
|
||||
|
||||
! cyan
|
||||
URxvt.color6: #5e8d87
|
||||
URxvt.color14: #8abeb7
|
||||
|
||||
! white
|
||||
URxvt.color7: #707880
|
||||
URxvt.color15: #c5c8c6
|
||||
|
||||
!*.font xft:NotoSans-Bold.ttf
|
||||
URxvt.font: xft:DejaVu Sans Mono:size=12
|
||||
st.font: DejaVu Sans Mono:size=13
|
||||
!URxvt.font: xft:Sauce Code Pro Nerd Font Complete Mono:size=12
|
||||
|
||||
URxvt.transparent: true
|
||||
URxvt.shading: 15
|
||||
|
||||
st.transparent: true
|
||||
st.alpha: 0.9
|
||||
|
||||
Xft.dpi: 96
|
||||
Xft.antialias: true
|
||||
Xft.rgba: rgb
|
||||
Xft.hinting: true
|
||||
Xft.hintstyle: hintslight
|
||||
|
||||
!URxvt.font: Noto Sans Bold
|
||||
|
||||
!urxvt navigation keybindings
|
||||
!https://addy-dclxvi.github.io/post/configuring-urxvt/
|
||||
!URxvt.keysym.Shift-Up: command:\033]720;1\007
|
||||
!URxvt.keysym.Shift-Down: command:\033]721;1\007
|
||||
URxvt.keysym.Control-Up: \033[1;5A
|
||||
URxvt.keysym.Control-Down: \033[1;5B
|
||||
URxvt.keysym.Control-Right: \033[1;5C
|
||||
URxvt.keysym.Control-Left: \033[1;5D
|
||||
|
||||
URxvt.letterSpace: -1
|
|
@ -0,0 +1,12 @@
|
|||
alias ls='ls --color=auto'
|
||||
alias ll='ls -la'
|
||||
alias cl='clear'
|
||||
alias tsurf='~/src/suckless/surf/surf-open.sh'
|
||||
alias free='free -h'
|
||||
alias lagrange='~/Downloads/dwnloads/appimg/./Lagrange-1.5.2-x86_64.AppImage &'
|
||||
alias ':q'='exit'
|
||||
alias tt="cat /home/rick/twtxt.txt"
|
||||
alias ttl="twtxt timeline | less"
|
||||
alias twt="twtxt tweet"
|
||||
alias jrnl="7jrnl tweet"
|
||||
alias tt7="7jrnl view"
|
|
@ -0,0 +1,2 @@
|
|||
export EDITOR=nvim
|
||||
export PATH=$PATH:/home/rick/.local/bin/
|
|
@ -0,0 +1,59 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
xrdb -merge $sysresources
|
||||
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
xrdb -merge "$userresources"
|
||||
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
|
||||
do
|
||||
sleep 1
|
||||
done &
|
||||
|
||||
# set a random wallpaper from the wallpaper folder
|
||||
feh --bg-center /home/rick/wallpapers/set/$(shuf -n 1 -e $(ls /home/rick/wallpapers/set/))
|
||||
picom &
|
||||
exec dwm
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/X -nolisten tcp -nolisten local "$@" vt$XDG_VTNR
|
|
@ -0,0 +1,102 @@
|
|||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' completer _complete _ignored
|
||||
zstyle ':completion:*' list-colors ''
|
||||
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*' matcher-list '' '+m:{[:lower:]}={[:upper:]}' '+m:{[:lower:][:upper:]}={[:upper:][:lower:]}'
|
||||
zstyle :compinstall filename '/home/r1k/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.zsh_history
|
||||
HISTSIZE=200
|
||||
SAVEHIST=1000
|
||||
setopt notify
|
||||
unsetopt beep
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
#
|
||||
# Do not write a duplicate event to the history file.
|
||||
setopt HIST_SAVE_NO_DUPS
|
||||
|
||||
# Find and set branch name var if in git repository.
|
||||
function git_branch_name()
|
||||
{
|
||||
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
|
||||
if [[ $branch == "" ]];
|
||||
then
|
||||
:
|
||||
else
|
||||
echo '- ('$branch')'
|
||||
fi
|
||||
}
|
||||
|
||||
# Enable substitution in the prompt.
|
||||
setopt prompt_subst
|
||||
|
||||
# Config for prompt. PS1 synonym.
|
||||
prompt='%d/ $(git_branch_name) > '
|
||||
|
||||
source ~/.bash_aliases
|
||||
export EDITOR=nvim
|
||||
export PATH=/home/rick/.ghcup/bin/:$PATH:/home/rick/.emacs.d/bin/:/home/rick/jrnl/ecpd/7tools/:$HOME/.config/nvim/plugged/vim-superman/bin
|
||||
|
||||
# keybinds
|
||||
bindkey ";5C" forward-word
|
||||
bindkey ";5D" backward-word
|
||||
|
||||
# zsh syntax highlighting
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# zsh autocompletions
|
||||
#source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
# zsh history substring search
|
||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# open editor
|
||||
autoload -z edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey -M vicmd v edit-command-line
|
||||
|
||||
# from https://dev.to/phantas0s/understanding-and-configuring-zsh-3jnd
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
###
|
||||
# change cursor in vim mode
|
||||
cursor_mode() {
|
||||
# See https://ttssh2.osdn.jp/manual/4/en/usage/tips/vim.html for cursor shapes
|
||||
cursor_block='\e[2 q'
|
||||
cursor_beam='\e[6 q'
|
||||
|
||||
function zle-keymap-select {
|
||||
if [[ ${KEYMAP} == vicmd ]] ||
|
||||
[[ $1 = 'block' ]]; then
|
||||
echo -ne $cursor_block
|
||||
elif [[ ${KEYMAP} == main ]] ||
|
||||
[[ ${KEYMAP} == viins ]] ||
|
||||
[[ ${KEYMAP} = '' ]] ||
|
||||
[[ $1 = 'beam' ]]; then
|
||||
echo -ne $cursor_beam
|
||||
fi
|
||||
}
|
||||
|
||||
zle-line-init() {
|
||||
echo -ne $cursor_beam
|
||||
}
|
||||
|
||||
zle -N zle-keymap-select
|
||||
zle -N zle-line-init
|
||||
}
|
||||
|
||||
cursor_mode
|
||||
|
||||
###
|
||||
# open man and info from neovim
|
||||
compdef vman="man"
|
Loading…
Reference in New Issue