mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Restore nymph hardware and power management config
Re-add NVIDIA/Intel GPU packages, tlp/power-profiles-daemon, and emptty error logging to host_vars/nymph.yml — these were dropped when the Arch path was removed but are independent of Arch and needed for nymph laptop hardware. Drop two orphaned Wayland/Sway residues: kanshi config and the historical Sway cleanup script. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,3 +6,19 @@ desktop_sessions_enabled:
|
||||
|
||||
desktop_default_session: i3
|
||||
desktop_default_session_env: xorg
|
||||
desktop_emptty_session_error_logging: rotate
|
||||
|
||||
host_packages:
|
||||
- nvidia
|
||||
- linux-mainline-headers
|
||||
- mesa-dri
|
||||
- vulkan-loader
|
||||
- mesa-vulkan-intel
|
||||
- intel-video-accel
|
||||
- power-profiles-daemon
|
||||
- tlp
|
||||
- tlp-rdw
|
||||
- upower
|
||||
|
||||
host_enabled_services:
|
||||
- tlp
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
profile solo {
|
||||
output DP-1 disable
|
||||
output DP-2 disable
|
||||
output HDMI-A-1 disable
|
||||
output HDMI-A-2 disable
|
||||
output eDP-1 enable mode 1920x1080 position 0,0
|
||||
exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output eDP-1; workspace 3, move workspace to output eDP-1; workspace 4, move workspace to output eDP-1; workspace 5, move workspace to output eDP-1; workspace 6, move workspace to output eDP-1; workspace 7, move workspace to output eDP-1; workspace 8, move workspace to output eDP-1; workspace 9, move workspace to output eDP-1; workspace 10, move workspace to output eDP-1"
|
||||
}
|
||||
|
||||
profile dual {
|
||||
output DP-2 disable
|
||||
output HDMI-A-1 disable
|
||||
output HDMI-A-2 disable
|
||||
output eDP-1 enable mode 1920x1080 position 0,0
|
||||
output DP-1 enable mode 3440x1440@100Hz position 1920,0
|
||||
exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output DP-1; workspace 3, move workspace to output DP-1; workspace 4, move workspace to output DP-1; workspace 5, move workspace to output DP-1; workspace 6, move workspace to output DP-1; workspace 7, move workspace to output DP-1; workspace 8, move workspace to output DP-1; workspace 9, move workspace to output DP-1; workspace 10, move workspace to output DP-1"
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eu
|
||||
|
||||
PACKAGES="
|
||||
swayfx
|
||||
kanshi
|
||||
grim
|
||||
grimshot
|
||||
slurp
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-wlr
|
||||
cliphist
|
||||
noctalia-shell
|
||||
"
|
||||
|
||||
USER_PATHS="
|
||||
$HOME/.config/sway
|
||||
$HOME/.config/kanshi
|
||||
$HOME/.config/noctalia
|
||||
$HOME/.local/share/noctalia-plugins
|
||||
$HOME/.local/bin/start-sway-session
|
||||
"
|
||||
|
||||
SYSTEM_FILES="
|
||||
/etc/emptty/wayland-sessions/Sway.desktop
|
||||
/etc/xbps.d/noctalia.conf
|
||||
"
|
||||
|
||||
check_host() {
|
||||
if [ "$(hostname)" != "nymph" ]; then
|
||||
printf 'Error: questo script è destinato solo a nymph (hostname attuale: %s)\n' "$(hostname)" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
remove_packages() {
|
||||
printf 'Rimozione pacchetti swayfx+noctalia...\n'
|
||||
# shellcheck disable=SC2086
|
||||
sudo xbps-remove -Ry $PACKAGES
|
||||
printf 'Rimozione dipendenze orfane...\n'
|
||||
sudo xbps-remove -o
|
||||
}
|
||||
|
||||
remove_user_configs() {
|
||||
printf 'Rimozione configurazioni utente...\n'
|
||||
for path in $USER_PATHS; do
|
||||
if [ -e "$path" ]; then
|
||||
rm -rf "$path"
|
||||
printf ' rimosso: %s\n' "$path"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
remove_system_files() {
|
||||
printf 'Rimozione file di sistema...\n'
|
||||
for file in $SYSTEM_FILES; do
|
||||
if [ -e "$file" ]; then
|
||||
sudo rm -f "$file"
|
||||
printf ' rimosso: %s\n' "$file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
main() {
|
||||
check_host
|
||||
remove_packages
|
||||
remove_user_configs
|
||||
remove_system_files
|
||||
printf 'Cleanup completato.\n'
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user