====== zenity ====== * [[https://help.gnome.org/users/zenity/stable/|zenity]] 옵션 설명과 예시를 볼 수 있음. * [[https://github.com/GNOME/zenity|GitHub - GNOME/zenity: Read-only mirror of https://gitlab.gnome.org/GNOME/zenity]] * [[https://linux.die.net/man/1/zenity|zenity(1): GTK+ dialogs - Linux man page]] * [[linux:gnome|Gnome]] GUI로 간단한 다이얼로그를 출력시켜준다. * 파일 선택, 텍스트 입력, 달력에서 날짜 선택 등 다양한 인터페이스를 생성하고 그 결과를 pipe 로 전달할 수 있다. * shell script 와 연계해서 사용가능하다. * [[linux:yad|yad - yet another dialog]] * [[linux:gxmessage|gxmessage]] 유사. ''zenity''가 더 낫다. ===== Icons ===== * [[https://developer.gnome.org/icon-naming-spec/#names|Icon Naming Specification]] ===== 텍스트 입력하고 그 결과를 클립보드로 복사하기 ===== * 아래 내용을 실행 셸 스크립트로 만들고 단축키로 지정한다. #!/bin/sh zenity --entry \ --title "텍스트 복사기" \ ---text "클립보드로 복사할 텍스트 입력: " | xclip -i -sel clip ===== 참조 ===== * [[https://linuxconfig.org/how-to-use-graphical-widgets-in-bash-scripts-with-zenity|How to use graphical widgets in bash scripts with zenity - LinuxConfig.org]]