diff --git a/skel/.config/autostart/key-sign.sh.desktop b/skel/.config/autostart/key-sign.sh.desktop new file mode 100755 index 0000000..50fa50b --- /dev/null +++ b/skel/.config/autostart/key-sign.sh.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Exec=/usr/bin/bash ~/.local/bin/key-sign.sh +Icon= +Name=key-sign.sh +Path= +Terminal=False +Type=Application diff --git a/skel/.local/bin/key-sign.sh b/skel/.local/bin/key-sign.sh new file mode 100755 index 0000000..580104a --- /dev/null +++ b/skel/.local/bin/key-sign.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +ping -c 1 1.1.1.1 > /dev/null +have_internet="$?" + +# sleep 1 + +cd "/root" + +rm /var/lib/pacman/sync/* +rm -rf /etc/pacman.d/gnupg/* + +mkdir -p /root/.gnupg 2>/dev/null +chmod 700 /root/.gnupg + +haveged -w 1024 +pacman-key --init +pkill haveged + +pacman-key --add /usr/share/pacman/keyrings/melawy-linux.gpg +pacman-key --lsign-key BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 +pacman-key --lsign-key B175815513971572FE7B1557CEC07AC8FF64DA4B + +if [ "$have_internet" -eq 0 ]; then + pacman-key --keyserver hkps://keys.openpgp.org --recv-keys BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 + pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 + pacman-key --lsign-key BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 + + pacman-key --keyserver hkps://keys.openpgp.org --recv-keys B175815513971572FE7B1557CEC07AC8FF64DA4B + pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys B175815513971572FE7B1557CEC07AC8FF64DA4B + pacman-key --lsign-key B175815513971572FE7B1557CEC07AC8FF64DA4B +fi + +pacman-key --lsign-key melawy-linux + +pacman-key --add /usr/share/pacman/keyrings/manjaro.gpg +pacman-key --lsign-key manjaro +pacman-key --add /usr/share/pacman/keyrings/cachyos.gpg +pacman-key --lsign-key cachyos +pacman-key --add /usr/share/pacman/keyrings/arcolinux.gpg +pacman-key --lsign-key arcolinux +pacman-key --add /usr/share/pacman/keyrings/chaotic.gpg +pacman-key --lsign-key chaotic +pacman-key --add /usr/share/pacman/keyrings/endeavouros.gpg +pacman-key --lsign-key endeavouros + +pacman-key --populate + +echo " +keyserver hkp://keyserver.ubuntu.com:80" | sudo tee --append /etc/pacman.d/gnupg/gpg.conf + +pacman-key --updatedb + +if [ "$have_internet" -eq 0 ]; then + pacman -Sy +fi + +title="Successed!" +msg="$(date '+%Y.%m.%d %H:%M:%S')" + +users=$(/usr/bin/users | sed 's| |\n|g' | sort | uniq) +for user in $users +do + userid=$(/usr/bin/id -u "$user") + + cmd=( + DISPLAY=:0 + DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/"$userid"/bus + /usr/bin/notify-send + --icon=info + --urgency=low + -t 5000 + -a "'Keys sign'" + "'$title'" + "'$msg'" + ) + + /usr/bin/su "$user" -c "${cmd[*]}" + + if [ "$user" != "liveuser" ]; then + rm /home/"$user"/.config/autostart/key-sign.sh.desktop +# rm /home/"$user"/.local/bin/key-sign.sh + fi +done diff --git a/skel/.local/share/kxmlgui5/dolphin/dolphinui.rc b/skel/.local/share/kxmlgui5/dolphin/dolphinui.rc index 32137b5..3fc3a87 100644 --- a/skel/.local/share/kxmlgui5/dolphin/dolphinui.rc +++ b/skel/.local/share/kxmlgui5/dolphin/dolphinui.rc @@ -1,8 +1,10 @@ - - - - - + + + + + &File + + @@ -19,8 +21,23 @@ + + + + - + + &Edit + + + + + + + + + + @@ -37,7 +54,13 @@ - + + &View + + + + + @@ -57,19 +80,27 @@ - - Location Bar + + Location Bar - + + &Go + + + + + - + + + &Tools @@ -77,10 +108,37 @@ + + &Settings + + + + + + + + + + + + + &Help + + + + + + + + + + + + Main Toolbar @@ -155,5 +213,6 @@ +