Skip to content

step-/yad-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yad-lib

Enhance yad dialogs in your shell scripts.

To use yad-lib in your project you only need the yad-lib.sh file (download), and a copy of the LICENSE file. Copy yad-lib.sh to a directory in your $PATH, and set execute permissions. Your scripts need to source yad-lib.sh. Refer to the manual.

The other files in this repository are some test scripts for developers.

Introduction

This shell library simplifies and enhances yad dialog management by providing functions to:

  • Check yad version and capabilities to ensure compatibility.

  • Restart yad dialogs in the same screen position and size as before.

  • Start yad sub-dialogs over or at the four edges of the current dialog, for intuitive and visually consistent popups.

Compatibility

The library is tested against my yad fork for GTK-2 and GTK-3. The library should also work with the original yad because it does not rely on yad, other than to run it once to determine its version number.

Projects using yad-lib.sh

Several Fatdog64 Linux system utilities use yad-lib.sh.

Documentation

Refer to the released manual. Up-to-date Markdown documentation is embedded in the library source file. To extract it run the following command:

( . /path/to/yad-lib.sh && yad_lib_doc /path/to/yad-lib.sh ) > yad-lib-doc.md

Conversely, to strip off markdown text and produce a smaller library file:

( . /path/to/yad-lib.sh && yad_lib_doc --strip /path/to/yad-lib.sh ) > yad-lib-new.sh

License

This work is dual-licensed under MIT and GNU GPL 3.0 (or any later version).

SPDX-License-Identifier: MIT OR GPL-3.0-or-later

Links

About

Enhance yad dialogs in your shell scripts.

Resources

Stars

Watchers

Forks

Contributors