136 karma · joined August 22, 2020
For modern sites and if your terminal toolchain does not support sixel, https://github.com/fathyb/carbonyl is a neat hack that gives you a text-rendered blink engine, i.e. supporting all the same sites as those pesky GUI browsers. With sixel/kitty graphics, there was another option which slipped my mind.. [edit: maybe chawan as in sibling comment, but that also is "not supported" by google with the default user agent.]
Though what I really would love to have is an LLM-powered browser extension that can simply do fluid DOM/CSS manipulation to get an upper hand on all these messed up websites.. fiddling with devtools inspector and overriding element styles one by one really takes too much time.
bind-key j command-prompt -p "vim:" "new-window -c '#{pane_current_path}' 'stty -ixon -ixoff && vim %1'; select-pane -T '%1'"
This binds `j` to prompt for files to open (* or just hitting enter works) and launches vim in a new window in tmux (turning off flow control and setting filename as title). Probably one of my most-used shortcuts.Aside these complementary tools, the amount of systemd traps (OOM adjustment score defaults & restrictions, tmux user sessions killed by default etc etc) associated to OOM has really been taking a toll on my nerves over the years.. And kernel progress on this also has been underwhelming.
Also, why has firefox switched off automatic tab unloading when memory is low ONLY FOR LINUX? Much better ux since I turned on browser.tabs.unloadOnLowMemory ...
// Enable automatic tab unloading (true by default on windows & mac os)
user_pref("browser.tabs.unloadOnLowMemory", true);
// tab unloading enabled when free memory drops below either
user_pref("browser.low_commit_space_threshold_mb", 8192);
user_pref("browser.low_commit_space_threshold_percent", 30);
// time in milliseconds (so 15min) to wait before kicking tabs out
user_pref("browser.tabs.min_inactive_duration_before_unload", 900000);
// visibility
user_pref("browser.tabs.fadeOutUnloadedTabs", true);
user_pref("browser.tabs.fadeOutExplicitlyUnloadedTabs", true);
And here's a one-liner (courtesy of deepseek-v3) to conveniently show current free memory ratio in percent to make an informed choice about what value to put in: awk '/MemTotal:/{total=$2} /MemAvailable:/{available=$2} END{printf "%.1f%%\n", (available / total) * 100}' /proc/meminfoSomeone should try porting the open source TG clients to the matrix protocol by the way..