diff --git a/mango/binds.conf b/mango/binds.conf index 8f6e384..64551f0 100644 --- a/mango/binds.conf +++ b/mango/binds.conf @@ -41,6 +41,7 @@ bind=SUPER+ALT,M,spawn_shell,ghostty -e ~/.config/sdgos/config-overview/menu.sh bind=SUPER,Y,spawn_shell,ghostty -e ~/.config/sdgos/tuis/pkg-install.sh # install packages bind=SUPER+SHIFT,Y,spawn_shell,ghostty -e ~/.config/sdgos/tuis/aur-install.sh # install AUR packages bind=SUPER,W,spawn_shell,ghostty -e ~/.config/sdgos/tuis/layout-switch.sh # switch between layouts on the current workspace +bind=SUPER+ALT,Y,spawn_shell,ghostty -e unipkg launch-tui ##! program launchers bind=SUPER,RETURN,spawn_shell,ghostty diff --git a/sdgos/zshconfig.zsh b/sdgos/zshconfig.zsh index 118766a..02aef43 100644 --- a/sdgos/zshconfig.zsh +++ b/sdgos/zshconfig.zsh @@ -21,7 +21,6 @@ alias update='sudo pacman -Syu' alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' alias apt='man pacman' alias apt-get='man pacman' -alias please='sudo' alias jctl="journalctl -p 3 -xb" alias cmdhist='CMD=$(history -i | fzf | sed "s/.*:..//"); sleep 0.1 && wtype $CMD' alias tipme='shuf -n 1 ~/.config/sdgos/tips/tips.list' @@ -41,7 +40,13 @@ IMAGEPROGRAM='satty --filename' TIPS=$(cat ~/.config/sdgos/tips/tips.list) SHELL=/bin/zsh - +function plz() { + if [ -z "$1" ]; then + sudo $(fc -ln 1 | tail -1) + else + sudo "$@" + fi +} ## filetype aliases, default-opens them with the set program alias -s json=$EDITOR alias -s yaml=$EDITOR diff --git a/sdgos/zshrc b/sdgos/zshrc index 9150069..3f0afa4 100755 --- a/sdgos/zshrc +++ b/sdgos/zshrc @@ -10,7 +10,7 @@ source /usr/share/cachyos-zsh-config/cachyos-config.zsh # Added by LM Studio CLI (lms) export PATH="$PATH:/home/den/.lmstudio/bin" # End of LM Studio CLI section - +export EDITOR=micro # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh