From 9c98d158d9416a0a65b767708501ff370d6bc9ff Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Wed, 29 May 2024 10:20:36 -0600 Subject: [PATCH] doas and change slogout --- scripts/menu/menu-power | 2 +- shell/bashrc | 2 ++ shell/mkshrc | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/menu/menu-power b/scripts/menu/menu-power index 4649efb..c73cc91 100755 --- a/scripts/menu/menu-power +++ b/scripts/menu/menu-power @@ -11,7 +11,7 @@ slogout() { case "$option" in "Shutdown") systemctl poweroff ;; "Restart") systemctl reboot ;; - "Log out") slogout;; + "Log out") pkill xinit;; *) exit 1 ;; esac diff --git a/shell/bashrc b/shell/bashrc index c27bb49..1dec6bd 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -51,6 +51,8 @@ PS1='\ alias \ wget="wget --hsts-file=$XDG_DATA_HOME/wget/wget-hsts" +! command -v sudo >/dev/null 2>&1 && alias sudo="doas" + alias \ src="cd $HOME/.local/src/ && ls" \ cfg="cd $HOME/.config/ && ls" \ diff --git a/shell/mkshrc b/shell/mkshrc index cfd4323..459e5ff 100644 --- a/shell/mkshrc +++ b/shell/mkshrc @@ -37,6 +37,8 @@ $(tput dim)$(if (( USER_ID )); then print \$; else print \#; fi)$(tput sgr0) \ alias \ wget="wget --hsts-file=$XDG_DATA_HOME/wget/wget-hsts" +! command -v sudo >/dev/null 2>&1 && alias sudo="doas" + alias \ src="cd $HOME/.local/src/ && ls" \ cfg="cd $HOME/.config/ && ls" \