File bashtop-themes.patch of Package bashtop
Index: bashtop-0.9.25/bashtop
===================================================================
--- bashtop-0.9.25.orig/bashtop
+++ bashtop-0.9.25/bashtop
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
# indent type=tab
# tab size=4
# shellcheck disable=SC2034 #Unused variables
@@ -122,7 +122,7 @@ read tty_height tty_width < <(${stty} si
#? Any changes made here will be ignored if config file exists
aaa_config() { : ; } #! Do not remove this line!
-#* Color theme, looks for a .theme file in "$HOME/.config/bashtop/themes" and "$HOME/.config/bashtop/user_themes"
+#* Color theme, looks for a .theme file in "/usr/share/bashtop/themes" and "$HOME/.config/bashtop/user_themes"
#* Should be prefixed with either "themes/" or "user_themes/" depending on location, "Default" for builtin default theme
color_theme="Default"
@@ -3824,7 +3824,7 @@ options_() { #? Shows the options overla
desc_color_theme=( "Set bashtop color theme."
" "
"Choose between theme files located in"
- "\"\$HOME/.config/bashtop/themes\" &"
+ "\"/usr/share/bashtop/themes\" &"
"\"\$HOME/.config/bashtop/user_themes"
" "
"User themes are prefixed with \"*\"."
@@ -4730,6 +4730,8 @@ main_loop() { #? main loop...
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/bashtop"
if [[ -d "${config_dir}" && -w "${config_dir}" ]] || mkdir -p "${config_dir}"; then
if [[ ! -d "${config_dir}/themes" ]]; then mkdir -p "${config_dir}/themes"; fi
+ data_dir="/usr/share/bashtop/"
+ if [[ ! -d "${data_dir}/themes" ]]; then mkdir -p "${data_dir}/themes"; fi
if [[ ! -d "${config_dir}/user_themes" ]]; then mkdir -p "${config_dir}/user_themes"; fi
config_file="${config_dir}/bashtop.cfg"
# shellcheck source=/dev/null