openbsd-dotfiles

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

commit 5a27ad05075d3f802a92bec51423b7df95e4f0eb
parent 08ca69011e198cb00db29e8b5f651b62d6b58647
Author: Kaustubh Banerjee <mail@kausban.com>
Date:   Mon,  4 Dec 2023 21:32:09 +0100

dmenu-recent buggy: disabled; changes username .zshenv; disable ccid driver for yubikey

Diffstat:
M.bin/dmenu-recent | 66+-----------------------------------------------------------------
A.gnupg/scdaemon.conf | 2++
M.zshenv | 12++++++------
3 files changed, 9 insertions(+), 71 deletions(-)

diff --git a/.bin/dmenu-recent b/.bin/dmenu-recent @@ -1,65 +1 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Originally based on code by Dieter Plaetinck. -# Pretty much re-written by Mina Nagy (mnzaki) - -dmenu_cmd="dmenu -i -p > -fn monospace:size=12 -nb #222222 -nf #bbbbbb -sb #005577 -sf #eeeeee" -terminal="st -e" -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 " - -config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/dmenu-recent" -mkdir -p "$cache_dir" -mkdir -p "$config_dir" -touch "$recent_cache" - -IFS=: -if stest -dqr -n "$rest_cache" $PATH 2>/dev/null; then - stest -flx $PATH | sort -u | grep -vf "$recent_cache" > "$rest_cache" -fi - -IFS=" " -cmd=$(cat "$recent_cache" "$rest_cache" | $dmenu_cmd) || exit - -if ! grep -qx "$cmd" "$recent_cache" &> /dev/null; then - grep -vx "$cmd" "$rest_cache" > "$rest_cache.$$" - mv "$rest_cache.$$" "$rest_cache" -fi - -echo "$cmd" > "$recent_cache.$$" -grep -vx "$cmd" "$recent_cache" | head -n "$max_recent" >> "$recent_cache.$$" -mv "$recent_cache.$$" "$recent_cache" - -# Figure out how to run the command based on the command name, disregarding -# arguments, if any. -word0=${cmd%% *} -match="^$word0$" - -get_type () { - while type=$(echo $known_types | xargs -n1 | $dmenu_cmd -p Type:); do - [[ $known_types =~ " $type " ]] || continue - echo "$word0" >> "$config_dir/$type" - break - done - echo $type -} - -if ! type=$(grep -lx "$match" -R "$config_dir"); then - type=$(get_type) -else - type=${type##*/} - if ! [[ $known_types =~ " $type " ]]; then - rm "$config_dir/$type" - type=$(get_type) - fi -fi - -[[ "$type" = "background" ]] && exec $cmd -[[ "$type" = "terminal" ]] && exec $terminal "$cmd" -[[ "$type" = "terminal_hold" ]] && - exec $terminal sh -c "$cmd && echo Press Enter to kill me... && read line" +dmenu_run diff --git a/.gnupg/scdaemon.conf b/.gnupg/scdaemon.conf @@ -0,0 +1,2 @@ +# force disable ccid. gnupg-2.4.3 broke something +disable-ccid diff --git a/.zshenv b/.zshenv @@ -6,10 +6,10 @@ export HISTFILE="$ZDOTDIR"/.zsh_history ## path typeset -U PATH path -export PATH="/home/lamdacore/.bin:$PATH" -export PATH="/home/lamdacore/.emacs.d/bin:$PATH" -export PATH="/home/lamdacore/.local/share/cargo/bin:$PATH" -export SUDO_ASKPASS="/home/lamdacore/.bin/dmenupass" +export PATH="/home/kb/.bin:$PATH" +export PATH="/home/kb/.emacs.d/bin:$PATH" +export PATH="/home/kb/.local/share/cargo/bin:$PATH" +export SUDO_ASKPASS="/home/kb/.bin/dmenupass" export TERMINAL="st" export BROWSER="firefox" export READER="evince" @@ -19,8 +19,8 @@ export EDITOR=mg export PASSWORD_STORE_DIR="$HOME"/.password-store ## clean $HOME -export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android -export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android +# export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android +# export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android export CARGO_HOME="$XDG_DATA_HOME"/cargo export ELECTRUMDIR="$XDG_DATA_HOME/electrum" export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter