From b3711f19114f343add0c6604a84e1c10e5a6fef6 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 6 Dec 2024 14:43:04 +0800 Subject: Update --- X11/openbox/rc.xml | 4 +--- alias | 9 +++++++-- mutt/mutt.desktop | 12 ++++++------ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index c4d1ddf..e106e89 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml @@ -651,9 +651,7 @@ xdotool search --name "@Mutt" windowactivate || \ alacritty --title @Mutt \ --working-directory=/home/pham/Downloads \ - -o "window.dimensions.lines=30" \ - -o "window.dimensions.columns=110" \ - -e mutt + -e ssh -t vps -- mutt ' diff --git a/alias b/alias index 9765714..e7c6de3 100644 --- a/alias +++ b/alias @@ -5,7 +5,9 @@ alias al="$EDITOR $SETTING_DIR/alias && source $SETTING_DIR/alias" # SHELL {{{ alias eof='IGNOREEOF=10' -path() { echo $PATH | tr : '\n' } # Should not use alias, because $PATH is not initialized +path() { + echo $PATH | tr : '\n' +} eval "${shell}rc(){ local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc vim \$RCFILE && source \$RCFILE @@ -321,6 +323,9 @@ alias cdV='cd ~/Videos' alias cdM='cd ~/Music' alias x='xdg-open' alias ob.rc='vim ~/.config/openbox/rc.xml' +desktop() { + $EDITOR ~/.local/share/applications/${1}.desktop +} # }}} # EDITOR: VIM {{{ alias editor='select-editor' @@ -342,7 +347,7 @@ vll() { vim -c 'Telescope oldfiles'; } alias vS="vim -S /tmp/vim.session" alias cdv='cd ~/.config/nvim' vs() { which $1 && vim $(which $1); } -[ "$shell" = zsh ] && compdef vs=which +[ ${0##*/} = 'zsh' ] && compdef vs=which alias vim.dos2unix="vim '+set ff=unix' '+x'" vvv() { while true; do diff --git a/mutt/mutt.desktop b/mutt/mutt.desktop index 7eb47d2..c6f7556 100755 --- a/mutt/mutt.desktop +++ b/mutt/mutt.desktop @@ -1,8 +1,8 @@ [Desktop Entry] -Name=Mutt -Comment=My beloved mail client -Exec=alacritty -e mutt %u -MimeType=x-scheme-handler/mailto -Terminal=true Type=Application -Categories=Email;Office;Network; +Name=Mutt Email Client +Exec=alacritty --title Mutt -e mutt %u +Terminal=false +MimeType=message/rfc822;application/mbox;application/pgp-encrypted;application/pkcs7-mime;application/x-pkcs7-mime;application/vnd.ms-outlook;application/pdf;image/*;text/html;text/plain;application/octet-stream; +Icon=mutt # Replace with the actual icon path if you have one +Categories=Network;Email; -- cgit v1.2.3-70-g09d2