Using nwg-wrapper for a HUD of help for sway modes

This page summarizes the projects mentioned and recommended in the original post on /r/swaywm

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • dotfiles

  • As a geriatric user of sway, I don't always remember the keystrokes in the more esoteric corners of my configuration. I find that my script sway-menu helps with the bulk of the uncommon key bindings. But when I drop into a 'mode' (eg "move" mode) I don't always remember all the clever things I programed into it.

  • nwg-wrapper

    Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors

  • Usage: sway-mode [-c,--config config-file] [-C,--css css-file] mode Puts sway into mode 'mode' and displays some help by extracting a section from the config file. Options: -c,--config config_file location of your config file (/home/bhepple/.config/sway/config) -C,--css css_file location of your css file (/home/bhepple/.config/nwg-wrapper/mode-help.css) Requires nwg-wrapper https://github.com/nwg-piotr/nwg-wrapper Assumes modes are defined in the config file like this: mode "foobar" { ... } To use this, reassign the bindkey command for the mode like this: bindsym $mod+s exec sway-mode "swap" and in the mode definition, change the mode ending keys to # back to default mode bindsym q exec pkill nwg-wrapper; mode "default" bindsym Return exec pkill nwg-wrapper; mode "default" bindsym Escape exec pkill nwg-wrapper; mode "default" Here's a sample CSS file: window { font-family: "Monospace"; color: rgba (255, 255, 255, 1.0); background-color: rgba (255, 255, 255, 0.1); } #box-inner { background-color: rgba (23, 53, 63, 0.7); border-radius: 5px; border-style: dotted; border-width: 1px; border-color: rgba (156, 142, 122, 0.7); padding: 10px; }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • wlr-which-key

    Keymap manager for wlroots-based compositors

  • Here is what i found: https://github.com/MaxVerevkin/wlr-which-key

  • sway

    i3-compatible Wayland compositor

  • I've added it to https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts