Comment by geocar

7 months ago

> I can't help but feel that's somewhat excessive for a desktop.

I got it on ebay for €2k. You can't not expect me to use it as a desktop.

> Have you considered closing a few browser tabs?

No? I mean actually no: I made a brotab+wofi script that allows me to search tabs, and I find it a lot more convenient than bookmarks.

Here's the relevant bits:

    brotab_filter='{
     split($1,A,".");
     t=$2;
     gsub(/&/,  "\\&amp;",t); gsub(/</,  "\\&lt;",t); gsub(/>/,  "\\&gt;",t);
     print "<span size=\"xx-small\">"A[1]"."A[2]"</span><span size=\"xx-small\">."A[3]"</span> <span weight=\"bold\">Firefox</span> <span>"t"</span>"
    }';

    ( # more stuff is in here
    brotab list | awk -F" " "$brotab_filter" ) | \
    wofi -m --insensitive --show dmenu --prompt='Focus a window' | sed -e 's/<[^>]*>//g' | {
     read -r id name || exit 1
     case "$id" in
     exec) exec "$name" ;;
     [0-9]*)   swaymsg "[con_id=$id]" focus ;;
     [a-z]\.*)
      brotab activate "$id"; sleep 0.2;
      swaymsg "[title=\"${name#Firefox }\"]" focus
      ;;
     esac
    }

Works fine on 19,294 tabs at the moment...