[rofi] Change rofi theme

This commit is contained in:
2020-10-14 14:39:02 -04:00
parent 043767e960
commit 679279a02e
2 changed files with 63 additions and 7 deletions

View File

@ -1,12 +1,10 @@
configuration {
modi: "window,run,ssh,combi";
width: 50;
lines: 5;
font: "Go Mono 9";
location: 2;
padding: 15;
yoffset: 85;
lines: 7;
terminal-emulator: "kitty";
font: "JetBrains Mono 10";
show-icons: true;
combi-modi: "window,drun,ssh";
theme: "android_notification";
combi-modi: "window,ssh,drun";
theme: "Monokai";
}

58
rofi/.config/rofi/pass.sh Normal file
View File

@ -0,0 +1,58 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Info:
# author: Colin Powell
# file: pass.sh
# created: 14.10.2020
# revision: ---
# version: 1.0
# -----------------------------------------------------------------------------
# Requirements:
# rofi
# Description:
# Use rofi to grab password-store passwords
# Usage:
# pass.sh
# -----------------------------------------------------------------------------
# Script:
declare -A OPTIONS
OPTIONS=(
["set status"]="slack status edit "
["clear status"]="slack status edit "
["set away"]="slack presence away"
["set available"]="slack presence active"
)
# List for rofi
gen_list() {
for i in "${!OPTIONS[@]}"
do
echo "$i"
done
}
main() {
# Pass the list to rofi
platform=$( (gen_list) | rofi -dmenu -matching fuzzy -no-custom -location 0 -p "Command -> " )
if [[ -n "$platform" ]]; then
query=$( (echo ) | rofi -dmenu -matching fuzzy -location 0 -p "Input -> " )
if [[ -n "$query" ]]; then
option=${OPTIONS[$platform]}$query
eval "$option"
else
exit
fi
else
exit
fi
}
main
exit 0