summaryrefslogtreecommitdiff
path: root/debian/xcwd.1
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@debian.org>2018-03-06 19:34:51 -0500
committerGravatar Benjamin Barenblat <bbaren@debian.org>2018-03-06 19:34:51 -0500
commit0e1f6d65bec111228b67bab7eddbb173aab2a319 (patch)
tree36a9cb8093ce6e03d19699507669ecbdc31708ab /debian/xcwd.1
parent3f0728b932904985b703b33bd5c936ea96cf15a0 (diff)
Package xcwd
Diffstat (limited to 'debian/xcwd.1')
-rw-r--r--debian/xcwd.171
1 files changed, 71 insertions, 0 deletions
diff --git a/debian/xcwd.1 b/debian/xcwd.1
new file mode 100644
index 0000000..ff7c970
--- /dev/null
+++ b/debian/xcwd.1
@@ -0,0 +1,71 @@
+.\" © 2013, 2015-2018 Benjamin Barenblat
+.\"
+.\" Licensed under the Apache License, Version 2.0 (the "License"); you may not
+.\" use this file except in compliance with the License. You may obtain a copy
+.\" of the License at
+.\"
+.\" http://www.apache.org/licenses/LICENSE-2.0
+.\"
+.\" Unless required by applicable law or agreed to in writing, software
+.\" distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+.\" WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+.\" License for the specific language governing permissions and limitations
+.\" under the License.
+.TH XCWD 1 2018-03-06
+.SH NAME
+xcwd \- X current working directory
+.SH SYNOPSIS
+.B xcwd
+.SH DESCRIPTION
+.B xcwd
+is a simple tool which prints the current working directory of the focused
+window.
+It's useful for launching applications directly into the same directory as the
+focused application\(emfor instance, you might want to launch a new terminal in
+the same directory as your editor.
+You can make this happen by binding something like
+.sp
+.RS
+.EX
+urxvt \-cd "$(xcwd)"
+.EE
+.RE
+.sp
+to a keyboard shortcut within your window manager and then invoking that
+shortcut during editor usage.
+.SH EXIT STATUS
+.B xcwd
+exits with a nonzero status if it can't figure out the working directory
+associated with the currently focused window and $HOME is unset.
+Otherwise,
+.B xcwd
+returns zero.
+.SH ENVIRONMENT
+If
+.B xcwd
+can't figure out the working directory associated with the currently focused
+window, it falls back on $HOME.
+.SH BUGS
+.BR xcwd 's
+algorithm fails when applied to most single-instance applications, applications
+with tabs, or terminal multiplexers.
+.BR lilyterm (1),
+.BR screen (1),
+.BR tmux (1),
+and
+.BR urxvtc (1)
+are all known to fail.
+.SH SEE ALSO
+.BR gnome-terminal (1),
+.BR terminology (1),
+.BR urxvt (1),
+.BR xterm (1)
+.SH COPYRIGHT
+.B xcwd
+is copyright 2013
+.MT adrien+dev@schischi.me
+Adrien Schildknecht
+.ME .
+.PP
+This manual page is copyright 2013, 2015\(en2018 Benjamin Barenblat and
+licensed under the Apache License, Version 2.0.