aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--X11/openbox/rc.xml4
-rw-r--r--alias9
-rwxr-xr-xmutt/mutt.desktop12
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 @@
651 xdotool search --name "@Mutt" windowactivate || \ 651 xdotool search --name "@Mutt" windowactivate || \
652 alacritty --title @Mutt \ 652 alacritty --title @Mutt \
653 --working-directory=/home/pham/Downloads \ 653 --working-directory=/home/pham/Downloads \
654 -o "window.dimensions.lines=30" \ 654 -e ssh -t vps -- mutt
655 -o "window.dimensions.columns=110" \
656 -e mutt
657 ' 655 '
658 </command> 656 </command>
659 </action> 657 </action>
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"
5# SHELL {{{ 5# SHELL {{{
6 6
7alias eof='IGNOREEOF=10' 7alias eof='IGNOREEOF=10'
8path() { echo $PATH | tr : '\n' } # Should not use alias, because $PATH is not initialized 8path() {
9 echo $PATH | tr : '\n'
10}
9eval "${shell}rc(){ 11eval "${shell}rc(){
10 local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc 12 local RCFILE=$XDG_CONFIG_HOME/${shell}/.${shell}rc
11 vim \$RCFILE && source \$RCFILE 13 vim \$RCFILE && source \$RCFILE
@@ -321,6 +323,9 @@ alias cdV='cd ~/Videos'
321alias cdM='cd ~/Music' 323alias cdM='cd ~/Music'
322alias x='xdg-open' 324alias x='xdg-open'
323alias ob.rc='vim ~/.config/openbox/rc.xml' 325alias ob.rc='vim ~/.config/openbox/rc.xml'
326desktop() {
327 $EDITOR ~/.local/share/applications/${1}.desktop
328}
324# }}} 329# }}}
325# EDITOR: VIM {{{ 330# EDITOR: VIM {{{
326alias editor='select-editor' 331alias editor='select-editor'
@@ -342,7 +347,7 @@ vll() { vim -c 'Telescope oldfiles'; }
342alias vS="vim -S /tmp/vim.session" 347alias vS="vim -S /tmp/vim.session"
343alias cdv='cd ~/.config/nvim' 348alias cdv='cd ~/.config/nvim'
344vs() { which $1 && vim $(which $1); } 349vs() { which $1 && vim $(which $1); }
345[ "$shell" = zsh ] && compdef vs=which 350[ ${0##*/} = 'zsh' ] && compdef vs=which
346alias vim.dos2unix="vim '+set ff=unix' '+x'" 351alias vim.dos2unix="vim '+set ff=unix' '+x'"
347vvv() { 352vvv() {
348 while true; do 353 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 @@
1[Desktop Entry] 1[Desktop Entry]
2Name=Mutt
3Comment=My beloved mail client
4Exec=alacritty -e mutt %u
5MimeType=x-scheme-handler/mailto
6Terminal=true
7Type=Application 2Type=Application
8Categories=Email;Office;Network; 3Name=Mutt Email Client
4Exec=alacritty --title Mutt -e mutt %u
5Terminal=false
6MimeType=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;
7Icon=mutt # Replace with the actual icon path if you have one
8Categories=Network;Email;