config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 773e181f0cf91af9e797649940fa4a33e5c6b850
parent 35c69cee2dbada277927c4a570717f1d16068a82
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sat,  2 Jan 2021 20:56:02 -0800

Use bgs(1) to set wallpaper

Since bgs uses imlib2 farbfeld images are supported, it's also
smaller in size than xwallpaper. Unfortunately it's `-z` option
doesn't preserve the aspect ratio like xwallpaper, and I don't care
to fork it.

Diffstat:
Mmodules/sxiv/.config/sxiv/exec/key-handler | 2+-
Mmodules/xorg/.xinitrc | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/sxiv/.config/sxiv/exec/key-handler b/modules/sxiv/.config/sxiv/exec/key-handler @@ -11,7 +11,7 @@ fn yes { test `{ printf 'n\ny\n' | dmenu } '=' 'y' } fn cw { f = $XDG_CONFIG_HOME^/wallpaper cp -f $1 $f - bgs -z $f + bgs $f } buf = `{ cat - } diff --git a/modules/xorg/.xinitrc b/modules/xorg/.xinitrc @@ -11,5 +11,5 @@ parellel xbanish parellel xmodmap "$XDG_CONFIG_HOME/xmodmaprc" parellel xrdb -load "$HOME/.Xresources" parellel xset dpms 320 r rate 250 30 s off -parellel xwallpaper --zoom "$XDG_CONFIG_HOME/wallpaper" +parellel bgs "$XDG_CONFIG_HOME/wallpaper" dwm 1>&2 2>$HOME/.local/var/log/dwm