From 7855d1961762edaf7a826f13ebf7558c222906c9 Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Mon, 20 Nov 2023 12:57:48 -0300 Subject: [PATCH] Devboot update: 23-11-20-12-57-48 --- dot-conf/.tmux.conf | 4 +++- dot-conf/.tmuxifier/layouts/scrcpy.session.sh | 8 ++++++++ dot-conf/.zshrc | 20 ++++++++++--------- scripts/shell/scrcpy-wifi.sh | 3 +++ scripts/shell/scrcpy.sh | 3 ++- 5 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 dot-conf/.tmuxifier/layouts/scrcpy.session.sh create mode 100755 scripts/shell/scrcpy-wifi.sh diff --git a/dot-conf/.tmux.conf b/dot-conf/.tmux.conf index 4f4b7cf..a009ced 100644 --- a/dot-conf/.tmux.conf +++ b/dot-conf/.tmux.conf @@ -37,7 +37,9 @@ set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'b0o/tmux-autoreload' -set -g @plugin 'dracula/tmux' +# set -g @plugin 'dracula/tmux' +set -g @plugin 'catppuccin/tmux' +set -g @catppuccin_flavour 'macchiato' set -g @dracula-plugins "cpu-usage tmux-ram-usage network-bandwidth continuum" set -g @dracula-show-empty-plugins false set -g @dracula-show-powerline true diff --git a/dot-conf/.tmuxifier/layouts/scrcpy.session.sh b/dot-conf/.tmuxifier/layouts/scrcpy.session.sh new file mode 100644 index 0000000..b39dc92 --- /dev/null +++ b/dot-conf/.tmuxifier/layouts/scrcpy.session.sh @@ -0,0 +1,8 @@ +session_root "~/repos/personal-devboot/scripts/shell" + +if initialize_session "telebot"; then + new_window "scrcpy" + run_cmd "./scrcpy.sh" +fi + +finalize_and_go_to_session diff --git a/dot-conf/.zshrc b/dot-conf/.zshrc index 53ba46b..a29ddd1 100644 --- a/dot-conf/.zshrc +++ b/dot-conf/.zshrc @@ -54,9 +54,9 @@ alias gck="git checkout" alias gc="git commit" alias zj="zellij" -# command aliases -alias zjtelebot="zj --layout telebot.kdl -s telebot" -alias zjgallerydl="zj --layout gallery-dl.kdl -s gallery-dl" +ZELLIJ_HOME="~/.config/zellij" +alias zjtelebot="zj --layout ${ZELLIJ_HOME}/telebot.kdl -s telebot" +alias zjgallerydl="zj --layout ${ZELLIJ_HOME}/gallery-dl.kdl -s gallery-dl" # paths export PATH=${PATH}:${HOME}/.local/bin @@ -87,9 +87,11 @@ k8sStart eval "$(tmuxifier init -)" eval "$(zoxide init zsh)" -if [ $(ps ax | grep "[s]sh-agent" | wc -l) -eq 0 ] ; then - eval $(ssh-agent -s) > /dev/null - if [ "$(ssh-add -l)" = "The agent has no identities." ] ; then - ssh-add ~/.ssh/id_ed25519_cloud@CloudPC > /dev/null 2>&1 - fi -fi +# if [ $(ps ax | grep "[s]sh-agent" | wc -l) -eq 0 ] ; then +# eval $(ssh-agent -s) > /dev/null +# if [ "$(ssh-add -l)" = "The agent has no identities." ] ; then +# ssh-add ~/.ssh/id_ed25519_cloud@CloudPC > /dev/null 2>&1 +# fi +# fi + +# eval "$(starship init zsh)" diff --git a/scripts/shell/scrcpy-wifi.sh b/scripts/shell/scrcpy-wifi.sh new file mode 100755 index 0000000..2f5061d --- /dev/null +++ b/scripts/shell/scrcpy-wifi.sh @@ -0,0 +1,3 @@ +# ADB_PATH="/mnt/c/Users/cloud/AppData/Roaming/NexusTools/adb.exe" +# ADB=$ADB_PATH scrcpy --turn-screen-off --stay-awake --power-off-on-close +scrcpy --turn-screen-off --stay-awake --power-off-on-close diff --git a/scripts/shell/scrcpy.sh b/scripts/shell/scrcpy.sh index 4709e82..35ddce4 100755 --- a/scripts/shell/scrcpy.sh +++ b/scripts/shell/scrcpy.sh @@ -1 +1,2 @@ -scrcpy --turn-screen-off --stay-awake --power-off-on-close +ADB_PATH="/mnt/e/Programs/scrcpy-win64-v2.2" +$ADB_PATH/scrcpy.exe --turn-screen-off --stay-awake --power-off-on-close