openbsd-dotfiles

Base configurations for my Openbsd desktop
git clone https://git.kausban.com/openbsd-dotfiles/raw/.git
Log | Files | Refs

commit 638ba3515f4aa06980c621fea3f77ea431f55506
parent 5c5ea2d04748f4062a72dfdb1972f3b662e45a92
Author: KB <mail@kausban.com>
Date:   Wed, 20 Dec 2023 08:55:38 +0100

Update 2023-12-20 08:55 OpenBSD/amd64

Diffstat:
M.bin/dmenu-recent | 24+++++++++++-------------
M.xsession | 3++-
2 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/.bin/dmenu-recent b/.bin/dmenu-recent @@ -8,7 +8,7 @@ MAX_RECENT=199 # Number of recent commands to track CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/dmenu-recent" RECENT_CACHE="$CACHE_DIR/recent" REST_CACHE="$CACHE_DIR/all" -KNOWN_TYPES=" background terminal terminal_hold " +KNOWN_TYPES=" background terminal terminal_hold " # end spaces needed for case match in get_types CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/dmenu-recent" mkdir -p "$CACHE_DIR" @@ -49,19 +49,17 @@ WORD0=${CMD%% *} MATCH="^$WORD0$" -get_type() { - TYPE="" - while : ; do - echo "$KNOWN_TYPES" | xargs -n1 | $DMENU_CMD -p 'Type:' && - read -r TYPE_LINE || break - TYPE=$(echo "$TYPE_LINE") - case $KNOWN_TYPES in - *" $TYPE "*) - echo "$WORD0" >> "$CONFIG_DIR/$TYPE" - return - ;; - esac +get_type () { + TYPE="" + while TYPE=$(echo "$KNOWN_TYPES" | xargs -n1 | $DMENU_CMD -p 'Type:'); do + case " $KNOWN_TYPES " in + *" $TYPE "*) ;; + *) continue ;; + esac + echo "$WORD0" >> "$CONFIG_DIR/$TYPE" + break done + echo $TYPE } TYPE=$(grep -lx "$MATCH" -R "$CONFIG_DIR" 2>/dev/null || true) diff --git a/.xsession b/.xsession @@ -17,7 +17,8 @@ xrandr --dpi 96 xsetroot -solid dimgray # ulimit for nextcloud -ulimit -n 32768 +#ulimit -n 32768 +ulimit -n 52768 # xidle will lock your display after a period of inactivity xidle -delay 5 -sw -program "/usr/local/bin/slock" -timeout 180 &