From 76ba431457eedd1b9342c891786654749189f10c Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sat, 6 Nov 2021 15:28:13 -0700 Subject: [PATCH] updates --- doom/config.el | 11 ++++++----- scripts/rofi/rofi-picom.sh | 18 ------------------ scripts/rofi/rofi-rdp.sh | 20 -------------------- scripts/rofi/rofi-search.sh | 5 ----- scripts/rofi/rofi-ssh.sh | 30 ------------------------------ scripts/rofi/rofi-stream.sh | 23 ----------------------- 6 files changed, 6 insertions(+), 101 deletions(-) delete mode 100755 scripts/rofi/rofi-picom.sh delete mode 100755 scripts/rofi/rofi-rdp.sh delete mode 100755 scripts/rofi/rofi-search.sh delete mode 100755 scripts/rofi/rofi-ssh.sh delete mode 100755 scripts/rofi/rofi-stream.sh diff --git a/doom/config.el b/doom/config.el index 78a1241..d1e4932 100644 --- a/doom/config.el +++ b/doom/config.el @@ -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) diff --git a/scripts/rofi/rofi-picom.sh b/scripts/rofi/rofi-picom.sh deleted file mode 100755 index de893ca..0000000 --- a/scripts/rofi/rofi-picom.sh +++ /dev/null @@ -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 diff --git a/scripts/rofi/rofi-rdp.sh b/scripts/rofi/rofi-rdp.sh deleted file mode 100755 index 291007c..0000000 --- a/scripts/rofi/rofi-rdp.sh +++ /dev/null @@ -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 diff --git a/scripts/rofi/rofi-search.sh b/scripts/rofi/rofi-search.sh deleted file mode 100755 index 9d259fc..0000000 --- a/scripts/rofi/rofi-search.sh +++ /dev/null @@ -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 & diff --git a/scripts/rofi/rofi-ssh.sh b/scripts/rofi/rofi-ssh.sh deleted file mode 100755 index 502cc52..0000000 --- a/scripts/rofi/rofi-ssh.sh +++ /dev/null @@ -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 diff --git a/scripts/rofi/rofi-stream.sh b/scripts/rofi/rofi-stream.sh deleted file mode 100755 index dae486b..0000000 --- a/scripts/rofi/rofi-stream.sh +++ /dev/null @@ -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