No more screen -ls and copying PIDs: run screens, pick a session with the arrow keys and you're attached. Detach (Ctrl+A, D) and you're right back in the menu.
- Lists all running screen sessions, sorted by PID
- Arrow-key navigation via
dialog - Returns to the menu after detaching
- Waits gracefully when no sessions are running
- Optional custom
dialogrccolor theme
sudo apt install screen dialog
sudo cp bin/screens /usr/local/bin/screens
sudo chmod +x /usr/local/bin/screens
# optional theme
sudo cp etc/dialogrc /etc/dialogrcscreensPress Ctrl+C to quit.
ℹ️ The script reads sessions from
/var/run/screen/S-root/, so it's meant to run as root. Change the path inbin/screensfor other users.
Released under the MIT License.