dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 4c7d66890844e88c8f636dbf2893f3b7a77f13b6
parent 9111d17c741932945e1a131b8ca32ba22d972b8a
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 20 May 2021 18:48:50 -0400

Update configs for OpenBSD

Diffstat:
M.config/cmus/autosave | 21++++++---------------
M.config/mpv/mpv.conf | 3---
M.config/newsboat/config | 2+-
M.config/shrc | 17++---------------
M.profile | 14+++++++++-----
M.xinitrc | 22+++++++++++-----------
6 files changed, 29 insertions(+), 50 deletions(-)

diff --git a/.config/cmus/autosave b/.config/cmus/autosave @@ -47,12 +47,9 @@ set color_win_title_bg=236 set color_win_title_fg=white set confirm_run=true set continue=true +set continue_album=true set device=/dev/cdrom set display_artist_sort_name=false -set dsp.alsa.device= -set dsp.jack.resampling_quality=2 -set dsp.jack.server_name= -set dsp.oss.device= set follow=true set format_current= %a - %l -%3n. %t%= %y set format_playlist= %-21%a %3n. %t%= %y %d %{?X!=0?%3X ? } @@ -66,28 +63,19 @@ set format_treewin= %l set format_treewin_artist=%a set icecast_default_charset=ISO-8859-1 set id3_default_charset=ISO-8859-1 -set input.aac.priority=50 -set input.cdio.cddb_url=freedb.freedb.org:8880 set input.cdio.priority=50 set input.cue.priority=50 -set input.ffmpeg.priority=30 set input.flac.priority=50 set input.mad.priority=55 -set input.modplug.priority=50 -set input.mpc.priority=50 +set input.opus.priority=50 set input.vorbis.priority=50 set input.wav.priority=50 set input.wavpack.priority=50 set lib_add_filter= set lib_sort=albumartist date album discnumber tracknumber title filename play_count -set mixer.alsa.channel= -set mixer.alsa.device= -set mixer.oss.channel=PCM -set mixer.oss.device= -set mixer.pulse.restore_volume=1 set mouse=false set mpris=false -set output_plugin=pulse +set output_plugin=sndio set passwd= set pl_sort= set play_library=true @@ -113,7 +101,10 @@ set softvol=false set softvol_state=0 0 set start_view=tree set status_display_program= +set stop_after_queue=false set time_show_leading_zero=true +set tree_width_max=0 +set tree_width_percent=33 set wrap_search=true bind browser backspace browser-up bind browser i toggle show_hidden diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf @@ -1,4 +1 @@ -hwdec=auto -vo=gpu -video-sync=display-resample ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best diff --git a/.config/newsboat/config b/.config/newsboat/config @@ -10,7 +10,7 @@ save-path ~/docs/news reload-time 60 reload-threads 12 datetime-format "%Y %b %d" -articlelist-format "%4i %f %D – %?T?|%-17T| ?%t" +articlelist-format "%4i %f %D - %?T?|%-17T| ?%t" bind-key j next bind-key k prev diff --git a/.config/shrc b/.config/shrc @@ -1,26 +1,14 @@ #!/bin/sh # shrc - Shell configuration -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - # Set history length HISTSIZE=65535 -# Disable CTRL-S and CTRL-Q -stty -ixon - -# Fix ^L not clearing the screen -bind '^L=clear-screen' - # Shell prompt if [ $(whoami) = 'root' ]; then - PS1='(ROOT) [`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` # ' + PS1='(ROOT) [`date +%H:%M:%S`] `hostname -s` `pwd | sed "s,^$HOME,~,"` # ' else - PS1='[`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` $ ' + PS1='[`date +%H:%M:%S`] `hostname -s` `pwd | sed "s,^$HOME,~,"` $ ' fi # So gpg pinentry-curses works properly @@ -35,7 +23,6 @@ alias cp='cp -iv' alias tmux='tmux -f "$XDG_CONFIG_HOME"/tmux.conf' alias copy='xclip -sel c' alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc' -alias lpr='lpr -o fit-to-page -o two-sided-long-edge' alias config='git --git-dir="$HOME"/docs/proj/dotfiles --work-tree="$HOME"' alias spawn='st > /dev/null 2>&1 &' alias compose='setxkbmap -option compose:caps' diff --git a/.profile b/.profile @@ -1,4 +1,6 @@ -# Set PATH to include my local binaries/scripts +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games + +# Add local binaries/scripts to PATH if [ -d "$HOME/.local/bin/" ]; then PATH="$PATH:$HOME/.local/bin" fi @@ -7,8 +9,10 @@ fi PATH="$PATH:/usr/lib/go/bin/" export GOPATH="$HOME/docs/proj/go" -# Colored GCC warnings and errors -export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +# sndiod audio device preferences +export AUDIODEVICE=snd/1 +export AUDIORECDEVICE=snd/2 +export AUDIOPLAYDEVICE=snd/1 # For proper theming in qt5 applications export QT_QPA_PLATFORMTHEME="gtk2" @@ -29,8 +33,6 @@ export HISTFILE="$XDG_CACHE_HOME/shell_history" export LEDGER_FILE="$HOME/docs/finances/hledger.journal" # Standard (?) environment variables -export EDITOR="nvim" -export VISUAL="$EDITOR" export BROWSER="qutebrowser" export READER="zathura" export PAGER="less" @@ -50,3 +52,5 @@ export GROFF_NO_SGR=1 if [ -f "$XDG_CONFIG_HOME/shrc" ]; then export ENV="$XDG_CONFIG_HOME/shrc" fi + +export PATH HOME TERM diff --git a/.xinitrc b/.xinitrc @@ -6,13 +6,16 @@ # --output DVI-D-1 --mode 1920x1080 --scale 2 --pos 1920x0 # Load Xresources -xrdb -load ~/.Xresources +xrdb -merge ~/.Xresources & + +# Ensure mouse acceleration is off +xset m 0 0 & # Start SSH Agent (with environment variables) -eval "$(ssh-agent -s)" +eval "$(ssh-agent)" # Set caps lock to be compose key -setxkbmap -option "compose:caps" +setxkbmap -option "compose:caps" & # Set default cursor shape to "regular" mouse cursor xsetroot -cursor_name left_ptr & @@ -21,21 +24,18 @@ xsetroot -cursor_name left_ptr & xset -b & # Hide mouse cursor after n seconds of inactivity -pkill unclutter -unclutter -idle 3 -root & +pkill unclutter; unclutter -idle 3 -root & # Start status bar -pkill slstatus -slstatus & +pkill status; status & # Set background image feh --bg-fill --no-fehbg ~/media/pics/wallpapers/iceberg-lines-4k.png & -### Launch programs ### +# Start compositor pkill picom; picom & + +# Start notification daemon pkill dunst; dunst & -pkill pipewire; pipewire & -pkill pipewire-pulse; pipewire-pulse & -pkill pipewire-media-session; pipewire-media-session & exec dwm