dotfiles

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

commit 49e10a6c0b24d2b3c0c2bb36e82df64f628ceb31
parent 1a873d97325f78f099aae438289178a4c3225e44
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 25 Aug 2022 21:52:46 -0400

Update after another OpenBSD install

Diffstat:
M.config/shrc | 3+++
M.config/spectrwm/spectrwm.conf | 6+++---
M.local/bin/bar-action | 10++++++----
Apkglist | 20++++++++++++++++++++
Msetup.sh | 14++++++++++++--
Mxenodm.Xresources | 12++++++------
6 files changed, 50 insertions(+), 15 deletions(-)

diff --git a/.config/shrc b/.config/shrc @@ -16,6 +16,8 @@ watch() { while true; do clear; "$@"; sleep "$interval"; done; } +umask u=rwx,go= + # Aliases alias ls='ls -lF' alias rm='rm -iv' @@ -25,3 +27,4 @@ alias vi='nvim' alias copy='xclip -sel c' alias back="cd $OLDPWD" alias open="xdg-open" +alias pubip="curl -s https://ifconfig.me; printf \"\n\"" diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf @@ -1,8 +1,8 @@ # Bar -bar_enabled = 0 bar_border_width = 0 -bar_font = IBMPlexMono:size=10 -bar_format = +@fn=1; +I:+D +S +C +|R+@fn=1;%A, %d-%b-%Y, %H:%M +bar_font = -*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*,IBMPlexMono:size=10 +bar_format = +@fn=1; +I:+D +S +C +|C+@fn=1;+A +|R+@fn=1;%A, %d-%b-%Y, %H:%M +bar_action = bar-action # Look & Feel border_width = 0 diff --git a/.local/bin/bar-action b/.local/bin/bar-action @@ -2,9 +2,11 @@ while :; do vmstats=$(vmstat -c2 | tail -1) - cpu=$(echo $vmstats | awk {'print 100-$18'}) - mem=$(echo $vmstats | awk {'print $3'}) - bat=$(apm -l) - echo "cpu: $cpu% | mem: $mem | bat: $bat " + cpu=$(echo $vmstats | awk '{print 100-$18}') + mem=$(echo $vmstats | awk '{print $3}') + dsk=$(df -h /home | tail -1 | awk '{print $5}') + # bat=$(apm -l) + echo "cpu: $cpu% | mem: $mem | dsk: $dsk" + # echo "cpu: $cpu% | mem: $mem | dsk: $dsk | bat: $bat%" sleep 1 done diff --git a/pkglist b/pkglist @@ -0,0 +1,20 @@ +arc-theme-solid-- +dino-- +flameshot-- +git-- +ibm-plex-- +iridium-- +irssi-- +keepassxc-- +lxappearance-- +mate-calc-- +mutt-- +neovim-- +netsurf-- +paper-icon-theme-- +picom-- +quirks-- +spectrwm-- +usmb-- +xbanish-- +xclip-- diff --git a/setup.sh b/setup.sh @@ -17,10 +17,20 @@ mkdir -p \ ~/.ssh # Clone dotfiles and apply them to the system -git clone https://git.sr.ht/~jbauer/dotfiles ~/Documents/projects/dotfiles -cd ~/Documents/projects/dotfiles +if [ -d ~/Documents/projects/dotfiles ]; then + cd ~/Documents/projects/dotfiles + git pull --ff-only +else + git clone https://git.sr.ht/~jbauer/dotfiles ~/Documents/projects/dotfiles + cd ~/Documents/projects/dotfiles +fi + for file in .????*; do cp -r "$file" ~ done +echo "Installing packages, you might want to grab a cup of tea..." +doas pkg_add -l ~/Documents/projects/dotfiles/pkglist +echo "Done!" + echo "Don't forget to run 'rcctl enable apmd; rcctl set apmd flags -A -Z 10; rcctl start apmd' if on a laptop." diff --git a/xenodm.Xresources b/xenodm.Xresources @@ -1,12 +1,12 @@ xlogin.Login.echoPasswd: true xlogin.Login.fail: ACCESS\040DENIED -xlogin.Login.greeting: Login +xlogin.Login.greeting: xlogin.Login.namePrompt: \040login:\040 xlogin.Login.passwdPrompt: passwd:\040 -xlogin.Login.height: 500 +xlogin.Login.height: 300 xlogin.Login.width: 800 -xlogin.Login.y: 600 +xlogin.Login.y: 200 xlogin.Login.frameWidth: 0 xlogin.Login.innerFramesWidth: 0 @@ -16,6 +16,6 @@ xlogin.Login.failColor: red xlogin.Login.inpColor: black xlogin.Login.promptColor: #eeeeee -xlogin.Login.face: IBMPlexMono-18 -xlogin.Login.failFace: IBMPlexMono-18 -xlogin.Login.promptFace: IBMPlexMono-18 +xlogin.Login.face: IBMPlexMono-14 +xlogin.Login.failFace: IBMPlexMono-14 +xlogin.Login.promptFace: IBMPlexMono-14