From e53ab0e7e1f4b04e2339b5452e13df7081f0d189 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 12 May 2024 03:27:14 -0400 Subject: POSIX profile --- .config/lf/lfrc | 2 ++ .config/wget/wgetrc | 1 + .config/x11/xinitrc | 17 +++++++++++++++++ .config/zsh/.zshrc | 18 ++++++------------ 4 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .config/wget/wgetrc create mode 100644 .config/x11/xinitrc (limited to '.config') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index bc2c0e0..b6c80a8 100755 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -16,6 +16,7 @@ # called directly instead of normal lf. # Basic vars +set sixel true set shellopts '-eu' set ifs "\n" set scrolloff 10 @@ -26,6 +27,7 @@ set cleaner '~/.config/lf/cleaner' set previewer '~/.config/lf/scope' set autoquit true + # cmds/functions cmd open ${{ case $(file --mime-type "$(readlink -f $f)" -b) in diff --git a/.config/wget/wgetrc b/.config/wget/wgetrc new file mode 100644 index 0000000..4fd7999 --- /dev/null +++ b/.config/wget/wgetrc @@ -0,0 +1 @@ +hsts-file=~/.cache/wget-hsts diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc new file mode 100644 index 0000000..5e0df62 --- /dev/null +++ b/.config/x11/xinitrc @@ -0,0 +1,17 @@ +$XDG_CONFIG_HOME/startup/$(hostname) & +sxhkd & +dunst & +unclutter & +picom -b & +echo us >"$HOME/.cache/layout" +xrdb -load "$HOME/.Xresources" +flashfocus -n 30 -t 150 -l never -o 0.75 -v ERROR & +dwmblocks & +remaps & +while true; do + # Start dwm (loop restarts it if it crashes) + # dwm >/dev/null + # Trying to launch dwm with dbus-launch + dbus-launch --exit-with-session dwm +done +# vim:filetype=sh diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d0cd6a7..53b582a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -57,9 +57,6 @@ preexec() { echo -ne '\e[4 q' ;} # Lines configured by zsh-newuser-install -HISTFILE=~/.cache/zsh-history -HISTSIZE=1000 -SAVEHIST=10000 setopt appendhistory autocd extendedglob nomatch unsetopt beep notify bindkey -v @@ -83,12 +80,7 @@ mkcd() { cd -P -- "$1" } -# Loading shortcuts made by aliasgen and shortcutgen -source $HOME/.cache/zsh-aliases -source $HOME/.cache/zsh-shortcuts -source $HOME/.cache/shell-vars - -lfcd () { +f() { tmp="$(mktemp -uq)" trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT lf -single -last-dir-path="$tmp" "$@" @@ -97,11 +89,13 @@ lfcd () { [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" fi } -alias f='lfcd' + +# Commonly used shortcuts +[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" +[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" # Git Root alias gr='cd $(git rev-parse --show-cdup)' # Load zsh-syntax-highlighting; should be last. -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null - +source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2>/dev/null -- cgit v1.2.3