[rofi] Change rofi theme
This commit is contained in:
@ -1,12 +1,10 @@
|
|||||||
configuration {
|
configuration {
|
||||||
modi: "window,run,ssh,combi";
|
modi: "window,run,ssh,combi";
|
||||||
width: 50;
|
width: 50;
|
||||||
lines: 5;
|
lines: 7;
|
||||||
font: "Go Mono 9";
|
terminal-emulator: "kitty";
|
||||||
location: 2;
|
font: "JetBrains Mono 10";
|
||||||
padding: 15;
|
|
||||||
yoffset: 85;
|
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
combi-modi: "window,drun,ssh";
|
combi-modi: "window,ssh,drun";
|
||||||
theme: "android_notification";
|
theme: "Monokai";
|
||||||
}
|
}
|
||||||
|
|||||||
58
rofi/.config/rofi/pass.sh
Normal file
58
rofi/.config/rofi/pass.sh
Normal 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
|
||||||
Reference in New Issue
Block a user