… | |
… | |
103 | |
103 | |
104 | This tries to create a new terminal, and if fails with exit status 2, |
104 | This tries to create a new terminal, and if fails with exit status 2, |
105 | meaning it couldn't connect to the daemon, it will start the daemon and |
105 | meaning it couldn't connect to the daemon, it will start the daemon and |
106 | re-run the command. Subsequent invocations of the script will re-use the |
106 | re-run the command. Subsequent invocations of the script will re-use the |
107 | existing daemon. |
107 | existing daemon. |
|
|
108 | |
|
|
109 | Another option is to use systemd socket-based activation (see |
|
|
110 | systemd.socket(5)). Here is an example of a service unit file and of a |
|
|
111 | socket unit file for the default socket path: |
|
|
112 | |
|
|
113 | =over 4 |
|
|
114 | |
|
|
115 | =item urxvtd.service |
|
|
116 | |
|
|
117 | [Unit] |
|
|
118 | Description=urxvt terminal daemon |
|
|
119 | Requires=urxvtd.socket |
|
|
120 | |
|
|
121 | [Service] |
|
|
122 | ExecStart=/usr/bin/urxvtd -o |
|
|
123 | |
|
|
124 | =item urxvtd.socket |
|
|
125 | |
|
|
126 | [Unit] |
|
|
127 | Description=urxvt terminal daemon socket |
|
|
128 | |
|
|
129 | [Socket] |
|
|
130 | ListenStream=%h/.urxvt/urxvtd-%H |
|
|
131 | |
|
|
132 | [Install] |
|
|
133 | WantedBy=sockets.target |
|
|
134 | |
|
|
135 | =back |
108 | |
136 | |
109 | =head3 How do I distinguish whether I'm running rxvt-unicode or a regular |
137 | =head3 How do I distinguish whether I'm running rxvt-unicode or a regular |
110 | xterm? I need this to decide about setting colours etc. |
138 | xterm? I need this to decide about setting colours etc. |
111 | |
139 | |
112 | The original rxvt and rxvt-unicode always export the variable "COLORTERM", |
140 | The original rxvt and rxvt-unicode always export the variable "COLORTERM", |
… | |
… | |
2517 | skip builtin block graphics (-sbg) |
2545 | skip builtin block graphics (-sbg) |
2518 | separate highlight colour (-highlightColor, -highlightTextColor) |
2546 | separate highlight colour (-highlightColor, -highlightTextColor) |
2519 | focus reporting mode (1004). |
2547 | focus reporting mode (1004). |
2520 | extended mouse reporting modes (1005, 1006 and 1015). |
2548 | extended mouse reporting modes (1005, 1006 and 1015). |
2521 | visual selection via -visual and -depth. |
2549 | visual selection via -visual and -depth. |
|
|
2550 | systemd socket activation |
2522 | |
2551 | |
2523 | It also enables some non-essential features otherwise disabled, such as: |
2552 | It also enables some non-essential features otherwise disabled, such as: |
2524 | |
2553 | |
2525 | some round-trip time optimisations |
2554 | some round-trip time optimisations |
2526 | nearest colour allocation on pseudocolor screens |
2555 | nearest colour allocation on pseudocolor screens |