mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
update setup to not delete directory
also update rofi style to better match my colorscheme
This commit is contained in:
parent
7b956e1f38
commit
c69695fb75
32
setup.sh
32
setup.sh
@ -21,25 +21,25 @@ fi
|
|||||||
|
|
||||||
printf "%s\n" "INSTALL DIR: $DIR"
|
printf "%s\n" "INSTALL DIR: $DIR"
|
||||||
|
|
||||||
if [[ "$DIR" == "$HOME/.config" ]]; then
|
# log "Deleting old directory..."
|
||||||
# change so it prompts before deleting
|
# rm -rf "$DIR"
|
||||||
printf "%s\n" "Maybe don't wanna delete that directory: $DIR"
|
# log "Directory deleted..."
|
||||||
exit 1
|
|
||||||
|
if [[ ! -d "$DIR" ]]; then
|
||||||
|
log "Creating directory $DIR"
|
||||||
|
mkdir -p "$DIR"
|
||||||
|
log "Directory created"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "Deleting old directory..."
|
if [[ ! -f "$DIR"/"$DB" ]]; then
|
||||||
rm -rf "$DIR"
|
# Create the DB if not exists
|
||||||
log "Directory deleted..."
|
log "Creating history database..."
|
||||||
|
sqlite3 "$DIR"/"$DB" <sql/watch_history_tbl.sql
|
||||||
log "Creating directory $DIR"
|
sqlite3 "$DIR"/"$DB" <sql/search_history_tbl.sql
|
||||||
mkdir -p "$DIR"
|
log "History database created..."
|
||||||
log "Directory created"
|
fi
|
||||||
|
|
||||||
log "Creating history database..."
|
|
||||||
sqlite3 "$DIR"/"$DB" <sql/watch_history_tbl.sql
|
|
||||||
sqlite3 "$DIR"/"$DB" <sql/search_history_tbl.sql
|
|
||||||
log "History database created..."
|
|
||||||
|
|
||||||
|
# Move theme files and skip-intro script to correct locations
|
||||||
log "Moving theme files..."
|
log "Moving theme files..."
|
||||||
cp themes/meh.rasi "$DIR"/
|
cp themes/meh.rasi "$DIR"/
|
||||||
cp themes/arc_dark_transparent_colors.rasi "$DIR"/
|
cp themes/arc_dark_transparent_colors.rasi "$DIR"/
|
||||||
|
@ -44,8 +44,9 @@ listview {
|
|||||||
padding: 2px 0px 0px ;
|
padding: 2px 0px 0px ;
|
||||||
}
|
}
|
||||||
element {
|
element {
|
||||||
border: 0;
|
border: 2px;
|
||||||
padding: 8px ;
|
border-color: #d19a66;
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
element-text {
|
element-text {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
@ -61,7 +62,8 @@ element.normal.urgent {
|
|||||||
}
|
}
|
||||||
element.normal.active {
|
element.normal.active {
|
||||||
background-color: @active-background;
|
background-color: @active-background;
|
||||||
text-color: @active-foreground;
|
text-color: #51afef;
|
||||||
|
border-color: #51afef;
|
||||||
}
|
}
|
||||||
element.selected.normal {
|
element.selected.normal {
|
||||||
background-color: @selected-normal-background;
|
background-color: @selected-normal-background;
|
||||||
@ -73,7 +75,8 @@ element.selected.urgent {
|
|||||||
}
|
}
|
||||||
element.selected.active {
|
element.selected.active {
|
||||||
background-color: @selected-active-background;
|
background-color: @selected-active-background;
|
||||||
text-color: @active-foreground;
|
border-color: #1E90FF;
|
||||||
|
text-color: #1E90FF;
|
||||||
}
|
}
|
||||||
element.alternate.normal {
|
element.alternate.normal {
|
||||||
background-color: @alternate-normal-background;
|
background-color: @alternate-normal-background;
|
||||||
@ -121,7 +124,7 @@ entry {
|
|||||||
}
|
}
|
||||||
prompt {
|
prompt {
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: dodgerblue;
|
text-color: #51afef;
|
||||||
}
|
}
|
||||||
inputbar {
|
inputbar {
|
||||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
@ -130,5 +133,5 @@ textbox-prompt-colon {
|
|||||||
expand: false;
|
expand: false;
|
||||||
str: ":";
|
str: ":";
|
||||||
margin: 0px 0.3em 0em 0em ;
|
margin: 0px 0.3em 0em 0em ;
|
||||||
text-color: @normal-foreground;
|
text-color: #51afef;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user