Add more gentoo utility commands to script

This commit is contained in:
Sravan Balaji
2025-07-30 10:01:07 -04:00
parent fd713d24a7
commit 0035af788e
2 changed files with 40 additions and 0 deletions

View File

@@ -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

View File

@@ -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