update setup to not delete directory

also update rofi style to better match my colorscheme
This commit is contained in:
ksyasuda 2021-11-01 11:57:22 -07:00
parent 7b956e1f38
commit c69695fb75
2 changed files with 26 additions and 23 deletions

View File

@ -21,25 +21,25 @@ fi
printf "%s\n" "INSTALL DIR: $DIR"
if [[ "$DIR" == "$HOME/.config" ]]; then
# change so it prompts before deleting
printf "%s\n" "Maybe don't wanna delete that directory: $DIR"
exit 1
fi
log "Deleting old directory..."
rm -rf "$DIR"
log "Directory deleted..."
# log "Deleting old directory..."
# rm -rf "$DIR"
# log "Directory deleted..."
if [[ ! -d "$DIR" ]]; then
log "Creating directory $DIR"
mkdir -p "$DIR"
log "Directory created"
fi
if [[ ! -f "$DIR"/"$DB" ]]; then
# Create the DB if not exists
log "Creating history database..."
sqlite3 "$DIR"/"$DB" <sql/watch_history_tbl.sql
sqlite3 "$DIR"/"$DB" <sql/search_history_tbl.sql
log "History database created..."
fi
# Move theme files and skip-intro script to correct locations
log "Moving theme files..."
cp themes/meh.rasi "$DIR"/
cp themes/arc_dark_transparent_colors.rasi "$DIR"/

View File

@ -44,7 +44,8 @@ listview {
padding: 2px 0px 0px ;
}
element {
border: 0;
border: 2px;
border-color: #d19a66;
padding: 8px;
}
element-text {
@ -61,7 +62,8 @@ element.normal.urgent {
}
element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
text-color: #51afef;
border-color: #51afef;
}
element.selected.normal {
background-color: @selected-normal-background;
@ -73,7 +75,8 @@ element.selected.urgent {
}
element.selected.active {
background-color: @selected-active-background;
text-color: @active-foreground;
border-color: #1E90FF;
text-color: #1E90FF;
}
element.alternate.normal {
background-color: @alternate-normal-background;
@ -121,7 +124,7 @@ entry {
}
prompt {
spacing: 0;
text-color: dodgerblue;
text-color: #51afef;
}
inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
@ -130,5 +133,5 @@ textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
text-color: #51afef;
}