aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2020-12-23 20:35:44 +0100
committerGitHub <noreply@github.com>2020-12-23 20:35:44 +0100
commitc741cb2dcd60b84e3f3ca8eeb7a9a64ad14b26d1 (patch)
tree4ce9b74e4c17eb582d550054671efbeb4c54dcb2 /README.md
parent9859390621dbddcdd6447df55e17a8a0f6e5d5c5 (diff)
parent8f4cb34b9046cded085a84badea3ef84c491c759 (diff)
downloadsway-launcher-desktop-c741cb2dcd60b84e3f3ca8eeb7a9a64ad14b26d1.tar.gz
sway-launcher-desktop-c741cb2dcd60b84e3f3ca8eeb7a9a64ad14b26d1.zip
Merge pull request #30 from itspngu/pngu
Allow overriding default glyphs, "cleaner" UI, make configuration not URxvt-specific
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 936f6ea..e69d22f 100644
--- a/README.md
+++ b/README.md
@@ -25,12 +25,15 @@ Arch Linux users can also grab it from the AUR (thanks @turtlewit)
Configure it in Sway like this:
```
-for_window [class="URxvt" instance="launcher"] floating enable, border pixel 10, sticky enable
-set $menu exec urxvt -geometry 55x18 -name launcher -e env TERMINAL_COMMAND="urxvt -e" /path/to/repo/sway-launcher-desktop.sh
+for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10
+set $menu exec $term --class=launcher -e /path/to/repo/sway-launcher-desktop.sh
bindsym $mod+d exec $menu
```
-
+You can override the default icons/glyphs by setting the appropriate GLYPH_ variable in your $menu command, e.g.:
+```
+set $menu exec $term --class=launcher -e env GLYPH_COMMAND="" GLYPH_DESKTOP="" GLYPH_PROMPT="? " sway-launcher
+```
### Setup a Terminal command
Some of your desktop entries will probably be TUI programs that expect to be launched in a new terminal window. Those entries have the `Terminal=true` flag set and you need to tell the launcher which terminal emulator to use. Pass the `TERMINAL_COMMAND` environment variable with your terminal startup command to the script to use your preferred terminal emulator. The script will default to `$TERM -e`