summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-05-12 03:27:14 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-05-12 03:27:14 -0400
commite53ab0e7e1f4b04e2339b5452e13df7081f0d189 (patch)
tree0b68d696a0fb98ed86b38e6e6ec664794052ae00 /.config
parentf9e97c28c63f0a47922defb4b99765ea381fb35c (diff)
POSIX profile
Diffstat (limited to '.config')
-rwxr-xr-x.config/lf/lfrc2
-rw-r--r--.config/wget/wgetrc1
-rw-r--r--.config/x11/xinitrc17
-rw-r--r--.config/zsh/.zshrc18
4 files changed, 26 insertions, 12 deletions
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