From efe4d0d80c83b04485b3465c337e550ac190af45 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Sat, 16 Jul 2022 21:28:15 -0700 Subject: [PATCH] bug fixes --- .config/polybar/music.sh | 1 + .config/sxhkd/sxhkdrc | 4 ++-- .gitconfig | 2 ++ suckless/st/patch/scrollback.c | 6 ++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.config/polybar/music.sh b/.config/polybar/music.sh index c271ad3..13b9bc6 100755 --- a/.config/polybar/music.sh +++ b/.config/polybar/music.sh @@ -36,6 +36,7 @@ if [ $EXIT_CODE -eq 0 ]; then STATUS=$PLAYERCTL_STATUS else STATUS="No player is running" + exit fi if [ "$1" == "--status" ]; then diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 798110d..2d9c63a 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -26,9 +26,9 @@ super + p super + shift + q slock -# Chrome +# Firefox super + b - google-chrome-unstable + firefox-nightly # Discord super + d diff --git a/.gitconfig b/.gitconfig index a42fa03..7dfd721 100644 --- a/.gitconfig +++ b/.gitconfig @@ -26,3 +26,5 @@ side-by-side = true [diff] colorMoved = default +[tag] + forceSignAnnotated = true diff --git a/suckless/st/patch/scrollback.c b/suckless/st/patch/scrollback.c index 2c08fec..9f36224 100644 --- a/suckless/st/patch/scrollback.c +++ b/suckless/st/patch/scrollback.c @@ -25,6 +25,12 @@ kscrollup(const Arg* a) if (n < 0) n = term.row + n; + if (term.scr + n > term.histi) + n = term.histi - term.scr; + + if (!n) + return; + if (term.scr <= HISTSIZE-n) { term.scr += n; selscroll(0, n);