mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
updates
This commit is contained in:
parent
cf10a08fc4
commit
76ba431457
@ -159,10 +159,11 @@
|
||||
;;; lsp jedi
|
||||
|
||||
(use-package! lsp-jedi)
|
||||
;; :config
|
||||
;; (with-eval-after-load "lsp-mode"
|
||||
; (add-to-list 'lsp-disabled-clients 'pyls)
|
||||
;; (add-to-list 'lsp-enabled-clients 'jedi)))
|
||||
; :config
|
||||
; (with-eval-after-load "lsp-mode"
|
||||
; ;; (add-to-list 'lsp-disabled-clients 'pyls)
|
||||
; (add-to-list 'lsp-enabled-clients 'jedi)
|
||||
; (add-to-list 'lsp-enabled-clients 'lsp)))
|
||||
|
||||
;; (defun my/python-mode-hook ()
|
||||
;; (add-to-list 'company-backends 'company-jedi))
|
||||
@ -222,7 +223,7 @@
|
||||
|
||||
|
||||
(add-hook 'python-mode 'python-pylint)
|
||||
(add-hook 'sh-mode-hook 'flycheck-mode)
|
||||
; (add-hook 'sh-mode-hook 'flycheck-mode)
|
||||
|
||||
; enable bash language server
|
||||
;(setq lsp-auto-configure nil)
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ARGS=(
|
||||
"Enable Picom"
|
||||
"Disable Picom"
|
||||
)
|
||||
|
||||
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/rofidmenu.rasi -dmenu -l 5 -i -p "Picom Options")
|
||||
|
||||
# printf '%s\n' {$CHOICE} | awk '{print $NF}'
|
||||
|
||||
echo "$CHOICE"
|
||||
|
||||
if [[ "$CHOICE" == "Enable Picom" ]]; then
|
||||
~/SudacodeRice/scripts/picom.sh
|
||||
elif [[ "$CHOICE" == "Disable Picom" ]]; then
|
||||
~/SudacodeRice/scripts/picom.sh -k
|
||||
fi
|
@ -1,20 +0,0 @@
|
||||
#!/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/flat-orange.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
|
@ -1,5 +0,0 @@
|
||||
#!/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 &
|
@ -1,30 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CMD=$(ssh)
|
||||
|
||||
ARGS=(
|
||||
"Depot - root@dc1lxpdepot01.westlakefinancial.com"
|
||||
"Depot02 - kyasuda@dc1lxsdepot02.westlakefinancial.com"
|
||||
"Jobrunner01 - root@dc1vpjobrunner01.westlakefinancial.com"
|
||||
"Jobrunner02 - root@mdr-s-jobrunner02.westlakefinancial.com"
|
||||
"Jobrunner03 - kyasuda@dc1vsjobrunner03.westlakefinancial.com"
|
||||
"Quit"
|
||||
)
|
||||
|
||||
CHOICE=$(
|
||||
printf "%s\n" "${ARGS[@]}" | rofi -config "$1" -dmenu -l 5 -i -p "SSH Helper"
|
||||
)
|
||||
|
||||
if [[ "$CHOICE" == "Quit" ]]; then
|
||||
printf "%s\n" "NICE" && exit 1
|
||||
fi
|
||||
|
||||
if [ "$CHOICE" ]; then
|
||||
TARGET=$(printf "%s\n" "${CHOICE}" | awk '{print $1}')
|
||||
INFO=$(printf "%s\n" "${CHOICE}" | awk '{print $NF}')
|
||||
echo "TARGET $TARGET"
|
||||
python ~/Work/scripts/pass.py "$TARGET"
|
||||
alacritty -e ssh "$INFO"
|
||||
else
|
||||
printf "%s\n" "DONE." && exit 0
|
||||
fi
|
@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PLAYER="mpv"
|
||||
|
||||
ARGS=(
|
||||
"lofi-hip-hop-radio - https://www.youtube.com/watch?v=5qap5aO4i9A"
|
||||
"QUIT"
|
||||
)
|
||||
|
||||
CHOICE=$(
|
||||
printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/flat-orange.rasi -dmenu -l 5 -i -p "Choose Stream"
|
||||
)
|
||||
|
||||
if [[ "$CHOICE" == "Quit" ]]; then
|
||||
printf "%s\n" "Bye." && exit 1 || exit 1
|
||||
elif [[ "$CHOICE" ]]; then
|
||||
TARGET=$(printf "%s\n" "${CHOICE}" | awk '{print $NF}')
|
||||
printf "%s\n" "TARGET: $TARGET"
|
||||
$PLAYER $TARGET
|
||||
# "$PLAYER $TARGET" &>/dev/null &
|
||||
else
|
||||
printf "%s\n" "Should not get here"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user