사용자 도구

사이트 도구


linux:zenity

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
linux:zenity [2021/03/10 23:26]
kwon37xi 만듦
linux:zenity [2021/04/05 22:34] (현재)
kwon37xi
줄 1: 줄 1:
 ====== zenity ====== ====== zenity ======
-  * https://help.gnome.org/users/zenity/stable/+  * [[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://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]]   * [[https://linux.die.net/man/1/zenity|zenity(1): GTK+ dialogs - Linux man page]]
   * [[linux:gnome|Gnome]] GUI로 간단한 다이얼로그를 출력시켜준다.   * [[linux:gnome|Gnome]] GUI로 간단한 다이얼로그를 출력시켜준다.
 +  * 파일 선택, 텍스트 입력, 달력에서 날짜 선택 등 다양한 인터페이스를 생성하고 그 결과를 pipe 로 전달할 수 있다.
   * shell script 와 연계해서 사용가능하다.   * shell script 와 연계해서 사용가능하다.
 +  * [[linux:yad|yad - yet another dialog]]
 +  * [[linux:gxmessage|gxmessage]] 유사. ''zenity''가 더 낫다.
 +
 +===== Icons =====
 +  * [[https://developer.gnome.org/icon-naming-spec/#names|Icon Naming Specification]]
 +
 +===== 텍스트 입력하고 그 결과를 클립보드로 복사하기 =====
 +  * 아래 내용을 실행 셸 스크립트로 만들고 단축키로 지정한다.
 +<code sh>
 +#!/bin/sh
 +zenity --entry \
 +  --title "텍스트 복사기" \
 +  ---text "클립보드로 복사할 텍스트 입력: " | xclip -i -sel clip
 +</code>
 +
 +
 +===== 참조 =====
 +  * [[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]]
  
linux/zenity.1615386378.txt.gz · 마지막으로 수정됨: 2021/03/10 23:26 저자 kwon37xi