Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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