Skip to content

Instantly share code, notes, and snippets.

View xPMo's full-sized avatar

Gamma xPMo

View GitHub Profile
@xPMo
xPMo / sway-launcher-desktop.sh
Last active October 15, 2019 07:37 — forked from Biont/sway-launcher-desktop.sh
sway-launcher-desktop
#!/usr/bin/env bash
# terminal application launcher for sway, using fzf
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher
shopt -s nullglob
if [[ "$1" = 'describe' ]]; then
shift
if [[ $2 == 'command' ]]; then
title=$1
readarray arr < <(whatis -l "$1" 2>/dev/null)