From 27cba7cff0cd50a623f340083506e18f7d14c4b6 Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Fri, 13 Aug 2021 02:15:34 +0100 Subject: Updated dots and manual inclusion --- scripts/.local/bin/colorset | 6 +++--- scripts/.local/bin/manuals | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/.local/bin/colorset b/scripts/.local/bin/colorset index 0368897..1fbaffe 100755 --- a/scripts/.local/bin/colorset +++ b/scripts/.local/bin/colorset @@ -16,11 +16,11 @@ fi convert "$1" "$SUCK"/colors/wallpaper.png # Setting the new colorscheme based on the wallpaper and making some color tweaks -cp ~/.cache/wal/colors-wal-dmenu.h "$SUCK"/colors/dmenu/colors.h -cp ~/.cache/wal/colors-wal-st.h "$SUCK"/colors/st/colors.h +cp -rf ~/.cache/wal/colors-wal-dmenu.h "$SUCK"/colors/dmenu/colors.h +cp -rf ~/.cache/wal/colors-wal-st.h "$SUCK"/colors/st/colors.h head -7 ~/.cache/wal/colors-wal-dwm.h > "$SUCK"/colors/dwm/colors.h sed -i s/"$(grep norm_border "$SUCK"/colors/dwm/colors.h | cut -d# -f 2 | cut -d\" -f 1)"/"$(grep black "$SUCK"/colors/st/colors.h | head -1 | cut -d# -f 2 | cut -d\" -f 1)"/g "$SUCK"/colors/dwm/colors.h -cp ~/.cache/wal/colors-wal-tabbed.h "$SUCK"/colors/tabbed/colors.h +cp -rf ~/.cache/wal/colors-wal-tabbed.h "$SUCK"/colors/tabbed/colors.h # Recompiling Suckless Programs with new colorscheme cp -rf "$SUCK"/colors/* "$SUCK" diff --git a/scripts/.local/bin/manuals b/scripts/.local/bin/manuals index b59e3ca..44279f5 100755 --- a/scripts/.local/bin/manuals +++ b/scripts/.local/bin/manuals @@ -3,4 +3,4 @@ # without the requiring a cronjob to run mandb MANPATH=/usr/share/man -find "$MANPATH" -type f -name "*.bz2" -printf '%f\n' | sed s:'.bz2'::g | sort | uniq | dmenu -i -p "Manual: "| xargs -I {} "$TERMINAL" -e man {} +find "$MANPATH" -type f -printf '%f\n' | sed 's:.bz2::g;s:.gz::g' | sort | uniq | dmenu -i -p "Manual: "| xargs -I {} "$TERMINAL" -e man {} -- cgit v1.2.3