|
|
|
|
|
by joseluis
1868 days ago
|
|
I'm in a very similar situation as you are regarding my browser usage and needs. I now have 46 windows open and 2.1K tabs open, but I've had at some point almost 70 windows and more than 7K tabs... The most useful extensions I've found to manage this complexity are https://github.com/tpamula/webextension-window-titler and https://github.com/l10nelw/winger. This is the script I made to bring up the firefox window I desire from the custom name I gave it using window-titler: #!/usr/bin/env bash
#
# switches to the firefox window that starts with the provided word between brackets
NAME=$1
WIN=$(wmctrl -l | grep Firefox | grep "\[${NAME}")
if [[ -z $WIN ]]; then
echo "no window found"
exit
fi
NUM_WINS=$(echo "$WIN" | wc -l)
if [[ $NUM_WINS -ne "1" ]]; then
echo -e "$NUM_WINS windows found, please be more specific:\n"
for w in "$WIN"; do
echo "$w" | cut -d' ' -f4-
done
exit
fi
WIN_NAME=$(echo $WIN | cut -d' ' -f4-)
WIN_ID=$(echo $WIN | cut -d' ' -f1)
echo opening: $WIN_NAME
wmctrl -iR $WIN_ID
And winger allows me to stash not-currently-needed windows in bookmarks, and restore them later...This is a less than perfect system, but it's good enough for me for now. |
|