commit 8a75d03bdeecb79304ff71272ba4b98b37d93bb2
parent c1abcee1e7974a9ccf10f3560b50608133bde5c6
Author: awy <awy@awy.one>
Date: Tue, 13 May 2025 15:58:33 +0300
doas
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.local/bin/compiler b/.local/bin/compiler
@@ -23,7 +23,7 @@ case "${ext}" in
cpp) g++ "${file}" -o "${base}" && "./${base}" ;;
cs) mcs "${file}" && mono "${base}.exe" ;;
go) go run "${file}" ;;
- h) sudo make install ;;
+ h) doas make install ;;
java) javac -d classes "${file}" && java -cp classes "${base}" ;;
m) octave "${file}" ;;
md) [ -x "$(command -v lowdown)" ] && \
diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup
@@ -4,7 +4,7 @@
notify-send "📦 Repository Sync" "Checking for package updates..."
-sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
+doas pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
Check your internet connection, if pacman is already running, or run update manually to see errors."
pkill -RTMIN+8 "${STATUSBAR:-i3blocks}"
diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs
@@ -11,8 +11,8 @@ share=$(smbclient -L "$srvname" -N | grep Disk | awk '{print $1}' | wmenu -i -p
share2mnt=//"$srvname".local/"$share"
sharemount() {
- mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && sudo mkdir /mnt/"$share")
- [ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="",noperm /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0
+ mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && doas mkdir /mnt/"$share")
+ [ -z "$mounted" ] && doas mount -t cifs "$share2mnt" -o user=nobody,password="",noperm /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0
notify-send "Netshare $share already mounted"; exit 1
}