#desktop #unix #listing #interact #launcher #cli #exec

bin+lib dsktp

A utility for listing and interacting with .desktop files on unix systems

1 unstable release

0.1.0 May 12, 2022

#22 in #listing

23 downloads per month

Custom license

1MB
263 lines

Contains (ELF exe/lib, 2.5MB) result/bin/dsktp

dsktp

A CLI tool to interact with files adhering to the freedesktop desktop entry specification.

Examples

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

lib.rs:

High level functionality of cli tool

Dependencies

~6.5MB
~119K SLoC