diff --git a/README.org b/README.org index c95991d..96ec483 100644 --- a/README.org +++ b/README.org @@ -10537,6 +10537,10 @@ help_menu() { rofi_menu() { declare -a options=( "󰚰 Sync and Update Packages - sync-update" + " Remove Obsolete Packages - depclean" + " Update Package Configuration Files - conf-update" + " Remove Old Kernels - clean-kernel" + "󱋆 Update Grub Configuration - grub-update" " Spice Up Spotify - spicetify" "󰌍 Back - back" "󰗼 Quit - quit" @@ -10569,6 +10573,22 @@ main() { notify-send "Gentoo" "Updating Versioned Packages" & uwsm app -- foot -H sudo emerge --update --deep --newuse --with-bdeps=y --verbose-conflicts @world ;; + --depclean) + notify-send "Gentoo" "Removing Obsolete Packages" & + uwsm app -- foot -H sudo emerge --depclean + ;; + --conf-update) + notify-send "Gentoo" "Updating Configuration Files" & + uwsm app -- foot -H sudo dispatch-conf + ;; + --clean-kernel) + notify-send "Gentoo" "Removing Old Kernels" & + uwsm app -- foot -H sudo eclean-kernel -b grub2 -n 2 + ;; + --grub-update) + notify-send "Gentoo" "Updating Grub Configuration" & + uwsm app -- foot -H sudo grub-mkconfig -o /boot/grub/grub.cfg + ;; --spicetify) notify-send "Gentoo" "Spicing Up Spotify" & uwsm app -- foot -H sudo emerge media-sound/spotify app-misc/spicetify-cli-bin::sravan-overlay && sudo chmod a+wr -R /opt/spotify && spicetify backup apply diff --git a/gentoo/.scripts/gentoo.sh b/gentoo/.scripts/gentoo.sh index 439a583..e8ea8b3 100755 --- a/gentoo/.scripts/gentoo.sh +++ b/gentoo/.scripts/gentoo.sh @@ -12,6 +12,10 @@ help_menu() { rofi_menu() { declare -a options=( "󰚰 Sync and Update Packages - sync-update" + " Remove Obsolete Packages - depclean" + " Update Package Configuration Files - conf-update" + " Remove Old Kernels - clean-kernel" + "󱋆 Update Grub Configuration - grub-update" " Spice Up Spotify - spicetify" "󰌍 Back - back" "󰗼 Quit - quit" @@ -44,6 +48,22 @@ main() { notify-send "Gentoo" "Updating Versioned Packages" & uwsm app -- foot -H sudo emerge --update --deep --newuse --with-bdeps=y --verbose-conflicts @world ;; + --depclean) + notify-send "Gentoo" "Removing Obsolete Packages" & + uwsm app -- foot -H sudo emerge --depclean + ;; + --conf-update) + notify-send "Gentoo" "Updating Configuration Files" & + uwsm app -- foot -H sudo dispatch-conf + ;; + --clean-kernel) + notify-send "Gentoo" "Removing Old Kernels" & + uwsm app -- foot -H sudo eclean-kernel -b grub2 -n 2 + ;; + --grub-update) + notify-send "Gentoo" "Updating Grub Configuration" & + uwsm app -- foot -H sudo grub-mkconfig -o /boot/grub/grub.cfg + ;; --spicetify) notify-send "Gentoo" "Spicing Up Spotify" & uwsm app -- foot -H sudo emerge media-sound/spotify app-misc/spicetify-cli-bin::sravan-overlay && sudo chmod a+wr -R /opt/spotify && spicetify backup apply