A metatable can be defined like
local t = setmetatable({}, {
__tostring = function() return 'custom tostring behavior!' end
})
Here are the metamethods that you can define, and their behavior
🌞 Morning 185 commits ██████▏░░░░░░░░░░░░░░ 29.4% | |
🌆 Daytime 237 commits ███████▉░░░░░░░░░░░░░ 37.7% | |
🌃 Evening 190 commits ██████▎░░░░░░░░░░░░░░ 30.2% | |
🌙 Night 17 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.7% |
©️ Copyright Sign | |
®️ Registered Sign | |
‼️ Double Exclamation Mark | |
⁉️ Exclamation Question Mark | |
™️ Trade Mark Sign | |
ℹ️ Information Source | |
↔️ Left Right Arrow | |
↕️ Up Down Arrow | |
↖️ North West Arrow | |
↗️ North East Arrow |
Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.
Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill
) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.
As 2024 is winding down:
[Desktop Action new-private-window] | |
Exec=/home/a/Downloads/firefox/firefox --private-window %u | |
Name[en_US]=New Private Window | |
Name=New Private Window | |
Name[ach]=Dirica manyen me mung | |
Name[af]=Nuwe privaatvenster | |
Name[an]=Nueva finestra privada | |
Name[ar]=نافذة خاصة جديدة | |
Name[as]=নতুন ব্যক্তিগত উইন্ডো | |
Name[ast]=Ventana privada nueva |
You should refer the original page. The all copyrights of these documents belong to them.
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
#!/bin/bash | |
# Note: This script requires that you have $GITHUB_TOKEN set. | |
# Get one here: https://github.com/settings/tokens | |
ORG=yourOrg | |
HAS_NEXT=true | |
i=1 | |
while $HAS_NEXT |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = gnome-shell | |
[Action] | |
Description = Replace GDM theme with Materia-compact | |
When = PostTransaction | |
Exec = /usr/bin/sh -c "cd /usr/share/themes/Materia-compact/gnome-shell && glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml" | |
Depends = materia-gtk-theme |