mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-05 08:53:38 -08:00
updates
This commit is contained in:
20
scripts/rofi/rofi-rdp.sh
Executable file
20
scripts/rofi/rofi-rdp.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ARGS=(
|
||||
"workpc - wfs-h1lbc42.hankeyinvestments.com"
|
||||
"jumpbox - wfsmsvpjumpbox1"
|
||||
"rptbox2 - wfsmsvsrptbox2.westlakefinancial.com"
|
||||
"Quit"
|
||||
)
|
||||
|
||||
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/rofidmenu.rasi -dmenu -l 4 -i -p "RDP Helper")
|
||||
|
||||
if [[ "$CHOICE" == "Quit" ]]; then
|
||||
echo "BYE" && exit 0
|
||||
fi
|
||||
|
||||
if [ "$CHOICE" ]; then
|
||||
TARGET=$(printf "%s\n" "${CHOICE}" | awk '{print $1}')
|
||||
printf "%s\n" "TARGET: $TARGET"
|
||||
~/Work/scripts/remote "$TARGET" || exit 1
|
||||
fi
|
||||
5
scripts/rofi/rofi-search.sh
Executable file
5
scripts/rofi/rofi-search.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export GOOGLE_ARGS='["--count", 7]'
|
||||
export ROFI_SEARCH='googler'
|
||||
rofi -modi blocks -blocks-wrap /usr/bin/rofi-search -show blocks -lines 7 -eh 4 -kb-custom-1 'Control+y' -theme ~/SudacodeRice/rofi/rofidmenu.rasi &
|
||||
Reference in New Issue
Block a user