summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-07 00:53:25 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-07 00:53:25 -0600
commit63505f644d8f2bf8c9d4ca493048081f83532cf8 (patch)
tree632732935bf144f253352a5716e5710855885212 /misc
parent705b49a0d66cfaaa3b41bbba651e6c614cdfbced (diff)
downloadscripts-63505f644d8f2bf8c9d4ca493048081f83532cf8.tar.xz
scripts-63505f644d8f2bf8c9d4ca493048081f83532cf8.zip
add themes and icons to /usr/src
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/setup54
1 files changed, 28 insertions, 26 deletions
diff --git a/misc/setup b/misc/setup
index cd0ed87..af83177 100755
--- a/misc/setup
+++ b/misc/setup
@@ -1,19 +1,19 @@
#!/bin/sh
-interactiveopt() {
- # Usage: interactiveopt "options" "prompt"
- echo "$1" | nl -s': ' 1>&2
- # Parse user input
- read -p "$2" choices 1>&2 \
- && choices="$(echo $choices | cut -d' ' -f1-)"
- for choice in $choices; do
- case "$choice" in
- [0-9]*) opt="$opt $(echo "$1" | head -"$(echo $choice | tr -cd '[:digit:]')" | tail -1)";;
- *) echo "Invalid option \"$opt\"" 1>&2 ;;
- esac
- done
- echo "$opt"
-}
+#interactiveopt() {
+# # Usage: interactiveopt "options" "prompt"
+# echo "$1" | nl -s': ' 1>&2
+# # Parse user input
+# read -p "$2" choices 1>&2 \
+# && choices="$(echo $choices | cut -d' ' -f1-)"
+# for choice in $choices; do
+# case "$choice" in
+# [0-9]*) opt="$opt $(echo "$1" | head -"$(echo $choice | tr -cd '[:digit:]')" | tail -1)";;
+# *) echo "Invalid option \"$opt\"" 1>&2 ;;
+# esac
+# done
+# echo "$opt"
+#}
# Open as root in pcmanfm
pcmanfmconf() {
@@ -36,11 +36,12 @@ minticons() {
gitdir="/tmp/mint-y-icons"
iconsdir="$gitdir/usr/share/icons"
git clone https://github.com/linuxmint/mint-y-icons.git "$gitdir"
- iconsets="$(interactiveopt "$(ls "$iconsdir")" "Choose icon sets (if using dark theme, COPY THE NON-DARK THEME TOO): ")"
- iconsets="$iconset Mint-Y"
- for iconset in $iconsets; do
- mv "$iconsdir/$iconset" $iconsdestdir
- done
+ #iconsets="$(interactiveopt "$(ls "$iconsdir")" "Choose icon sets (if using dark theme, COPY THE NON-DARK THEME TOO): ")"
+ #iconsets="$iconset Mint-Y"
+ #for iconset in $iconsets; do
+ # mv "$iconsdir/$iconset" $iconsdestdir
+ #done
+ mv $iconsdir/* $iconsdestdir
gtk-update-icon-cache
}
@@ -52,21 +53,22 @@ mintthemes() {
curdir="$(pwd)"
cd $gitdir
make
- themes="$(interactiveopt "$(ls "$themesdir")" "Choose themes: ")"
- #iconset="$iconset Mint-Y"
- for theme in $themes; do
- mv "$themesdir/$theme" $themesdestdir
- done
+ #themes="$(interactiveopt "$(ls "$themesdir")" "Choose themes: ")"
+ ##iconset="$iconset Mint-Y"
+ #for theme in $themes; do
+ # mv "$themesdir/$theme" $themesdestdir
+ #done
#iconsets="$(interactiveopt "$(ls "$iconsdir")" "Choose icon set (if using dark theme, COPY THE NON-DARK THEME TOO): ")"
#iconset="$iconset Mint-Y"
#for iconset in $iconsets; do
# mv "$iconsdir/$iconset" $iconsdestdir
#done
#gtk-update-icon-cache
+ mv $themesdir/* $themesdestdir
}
-iconsdestdir=~/.local/share/icons
-themesdestdir=~/.local/share/themes
+iconsdestdir=/usr/share/icons
+themesdestdir=/usr/share/themes
mkdir -p $iconsdestdir $themesdestdir
pcmanfmconf