From 941cc6e399a6bb6c1b4c2ed6e1e4beb8847b9299 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 26 Feb 2026 07:48:33 +0100 Subject: [PATCH] scripts: update --- dot-local/bin/hyprconfig | 4 +++- dot-local/bin/noctalia_pywalfox.fix | 5 +++++ dot-local/bin/upgrayyedd | 30 ++++++++++++++++------------- 3 files changed, 25 insertions(+), 14 deletions(-) create mode 100755 dot-local/bin/noctalia_pywalfox.fix diff --git a/dot-local/bin/hyprconfig b/dot-local/bin/hyprconfig index fd86e992..ba977b29 100755 --- a/dot-local/bin/hyprconfig +++ b/dot-local/bin/hyprconfig @@ -1,5 +1,7 @@ #!/bin/bash +EDITOR=kak + CONFS=(hyprland hypridle hyprlauncher hyprlock hyprpaper hyprqt6engine noctalia/noctalia-colors) mapfile -d '' FRAGMENTS < <( find "$HOME/.config/hypr/fragments" -maxdepth 1 -type f -print0 ) @@ -18,7 +20,7 @@ done # ALLFILES+=("${script}") # done -kak "${ALLFILES[@]}" +"$EDITOR" "${ALLFILES[@]}" # echo "BASH_VERSION=$BASH_VERSION" # declare -p ALLFILES diff --git a/dot-local/bin/noctalia_pywalfox.fix b/dot-local/bin/noctalia_pywalfox.fix new file mode 100755 index 00000000..d56421db --- /dev/null +++ b/dot-local/bin/noctalia_pywalfox.fix @@ -0,0 +1,5 @@ +#!/bin/bash + +[[ ! -d "/run/user/1000/cache/wal" ]] && mkdir -p /run/user/1000/cache/wal +ln -sfT ~/.cache/wal/colors.json /run/user/1000/cache/wal/colors.json + diff --git a/dot-local/bin/upgrayyedd b/dot-local/bin/upgrayyedd index 8cfd963c..f893693b 100755 --- a/dot-local/bin/upgrayyedd +++ b/dot-local/bin/upgrayyedd @@ -24,9 +24,9 @@ do_build(){ schedtool -D -e make oldconfig schedtool -D -e make modules_prepare schedtool -D -e make -j"$cores" || exit 2 - emerge @module-rebuild schedtool -D -e make modules_install schedtool -D -e make install + emerge @module-rebuild END_OF_SUDO sudo -k } @@ -46,19 +46,14 @@ case "$1" in check) emerge -puDNg @world ;; - sync) + sync|ref|refresh) $precmd emaint sync -A ;; - world) + world|dup) $precmd /usr/bin/emerge -avuDNg @world "${@:2}" exit 0 ;; - refresh) - $precmd emaint sync -A - $precmd /usr/bin/emerge -avuDNg @world "${@:2}" - exit 0 - ;; - --) + install|in) $precmd /usr/bin/emerge -avg "${@:2}" exit 0 ;; @@ -74,13 +69,20 @@ case "$1" in $precmd /usr/bin/emerge -avuDeg --with-bdeps=y --usepkg=n --keep-going=y @world --exclude="acct-group/* acct-user/* virtual/* app-eselect/* sys-kernel/* sys-firmware/* dev-python/* dev-java/* dev-ruby/* dev-perl/* dev-lua/* dev-php/* dev-tex/* dev-texlive/* x11-themes/* */*-bin" exit 0 ;; - clean) + search|se) + $precmd /usr/bin/emerge --search "${@:2}" + exit 0 + ;; + clean|rm) $precmd /usr/bin/emerge -a --depclean "${@:2}" exit 0 ;; - livebuilds) + live) $precmd /usr/bin/emerge -av @live-rebuild ;; + flatpaks) + flatpak update + ;; kernel-live) cd "/usr/src/linux" || exit 2 test -f "./.config" || exit 2 @@ -161,10 +163,12 @@ case "$1" in printf '%s\t%s\n' \ 'sync ' 'synchronize repos' \ 'check ' 'check for updates' \ + 'search | se ' 'search packages' \ + 'refresh | ref ' 'sync and update world' \ ' ' ' ' \ 'livebuilds ' 'update all live packages' \ - 'world ' 'update world' \ - 'refresh ' 'sync and update world' \ + 'flatpaks ' 'update flatpaks' \ + 'world | dup ' 'update world' \ ' ' ' ' \ 'wholeworld ' 'rebuild everything from scratch' \ ' ' ' ' \ -- 2.52.0