Crates.io | dsktp |
lib.rs | dsktp |
version | 0.1.0 |
source | src |
created_at | 2022-05-12 03:36:03.302118 |
updated_at | 2022-05-12 03:36:03.302118 |
description | A utility for listing and interacting with .desktop files on unix systems |
homepage | https://sr.ht/~parasrah/dsktp/ |
repository | https://git.sr.ht/~parasrah/dsktp/ |
max_upload_size | |
id | 584992 |
size | 2,733,930 |
A CLI tool to interact with files adhering to the freedesktop desktop entry specification.
Together with fzf
, this tool
can be used as an application launcher:
#!/usr/bin/env sh
dsktp app ls | fzf --multi --prompt='(x)' |
while read app; do
dsktp app exec "$app"
done
Or for an environment like sway:
#!/usr/bin/env sh
swaymsg "[tiling]" -t command opacity 0.7
dsktp app ls | fzf --multi --prompt='(x)' |
while read app; do
swaymsg -t command exec "$(dsktp app how "$app")"
done
swaymsg "[tiling]" -t command opacity 1