Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 1.21 KB

ALIASES.md

File metadata and controls

27 lines (25 loc) · 1.21 KB

Aliases

Warning: Aliases relies mainly the presence of /etc/os-release, which may or may not be available on all distributions.

If lxinfo (the library used) fails to retrieve any information, then aliases will be disabled.


These aliases are only valid for commands (+ tooltip commands).


  • %username% - Username
  • %hostname% - Hostname
  • %shell% - Active Session Shell
  • %distro% - Distribution name
  • %distro_id% - Distribution ID, for example: arch
  • %distro_build_id% - Distribution Build ID, for example rolling
  • %total_mem% - Total amount of installed memory (in GB)
  • %cached_mem% - Total amount of cached memory (in GB)
  • %available_mem% - Total amount of available memory (in GB)
  • %used_mem% - Total amount of used memory (in GB)
  • %hl_workspace% - Current Hyprland Workspace ID
  • %hl_window% - Current Hyprland Window Title

I can just use whoami, why all of this?

You may use completely dynamic commands like whoami if you want, the benefit with using aliases are:

  1. Lower overhead due to being retrieved via libc, rather than expensive commands
  2. A lot faster to process
  3. Cached at startup, then reused afterwards - To be changed since it's a design flaw