Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zangloo/xicon
Start x11 program with custom icon
https://github.com/zangloo/xicon
icon x11
Last synced: 2 months ago
JSON representation
Start x11 program with custom icon
- Host: GitHub
- URL: https://github.com/zangloo/xicon
- Owner: zangloo
- Created: 2023-09-02T11:36:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-14T03:52:49.000Z (over 1 year ago)
- Last Synced: 2023-09-14T17:43:06.098Z (over 1 year ago)
- Topics: icon, x11
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xicon(Start x11 program with custom icon)
## About
`xicon` is a tiny program to start a x11 program with custom icon and/or size.
With referenced at:
https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html## Build
cargo build --release
## Usage
```
xicon [OPTIONS] --command [ARGS]...Arguments:
[ARGS]...Options:
-p, --property window match property, =
-i, --icon icon file
-s, --size [possible values: max, min, fullscreen]
-a, --above always on top
-d, --no-decoration no decoration
-t, --type [possible values: desktop, dock, toolbar, menu, utility, splash, dialog, normal]
-g, --geometry format: [{xX}][{+-}{+-}]
-k, --no-taskbar-icon hide window in taskbar
-w, --wait max seconds to wait for program to complete startup [default: 10]
-c, --command x11 program to run
-h, --help Print help
-V, --version Print version
```## Examples
start xclock at right top without decoration and above all other windows
```
LC_ALL=zh_CN.UTF-8 xicon -d -k -a -g 150x30-250+0 -p name=xclock -c xclock -- -d -update 1 -strftime '%H:%M:%S %m/%d (%a)' -bg black -fg white
```start rxvt max and no decoration
```
/usr/local/bin/xicon -d --size max -c /usr/bin/urxvt256c -- -name dt -T tile -e ssh -o requestTTY=yes ssh-host LANG=en_US.UTF-8 tmux a -t tmux-name
```## License
GPLv2