commit e2aa6ee3b6e6e49992bf59ffdaa0ec3531ad961e parent 06e2ed5a805b8261aca73550425a51d63c939bab Author: Milutin Popovic <milutin@popovic.xyz> Date: Sat, 10 Jan 2026 07:28:17 +0000 fix bg script Diffstat:
| M | .config/nvim/lua/config/set.lua | | | 3 | +++ |
| M | .local/bin/scripts/background | | | 6 | ++++-- |
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/.config/nvim/lua/config/set.lua b/.config/nvim/lua/config/set.lua @@ -10,6 +10,9 @@ vim.opt.termguicolors = true vim.opt.clipboard = "unnamedplus" +vim.opt.textwidth = 80 +vim.opt.wrap = true + vim.opt.ignorecase = true vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 diff --git a/.local/bin/scripts/background b/.local/bin/scripts/background @@ -1,4 +1,6 @@ #!/bin/sh -WALLPAPER=$(find "${XDG_DATA_HOME}/wallpaper" -type f,l | sort -R | tail -1) -feh --no-fehbg --bg-scale "${WALLPAPER}" +WALLDIR="${XDG_DATA_HOME}/wallpaper" +WALLPAPER=$(ls -1 $WALLDIR | sort -R | tail -1) + +feh --no-fehbg --bg-scale "$WALLDIR/${WALLPAPER}"