update i3-sensible-* (Thanks Han)
This commit is contained in:
parent
27c442c9c1
commit
ac3541c28c
|
@ -1,14 +1,12 @@
|
||||||
## Description: Document Debian-specific x-terminal-emulator in the manpage.
|
Index: i3-4.1.1/man/i3-sensible-terminal.man
|
||||||
## Origin/Author: Michael Stapelberg
|
|
||||||
Index: i3-4.1/man/i3-sensible-terminal.man
|
|
||||||
===================================================================
|
===================================================================
|
||||||
--- i3-4.1.orig/man/i3-sensible-terminal.man 2011-11-11 22:38:06.508025537 +0000
|
--- i3-4.1.1.orig/man/i3-sensible-terminal.man 2011-12-28 23:56:55.487581000 +0100
|
||||||
+++ i3-4.1/man/i3-sensible-terminal.man 2011-11-11 22:38:04.752994892 +0000
|
+++ i3-4.1.1/man/i3-sensible-terminal.man 2011-12-28 23:57:06.725802633 +0100
|
||||||
@@ -22,6 +22,7 @@
|
@@ -22,6 +22,7 @@
|
||||||
It tries to start one of the following (in that order):
|
It tries to start one of the following (in that order):
|
||||||
|
|
||||||
* $TERMINAL (this is a non-standard variable)
|
* $TERMINAL (this is a non-standard variable)
|
||||||
+* x-terminal-emulator (only on Debian)
|
+* x-terminal-emulator
|
||||||
* xterm
|
|
||||||
* urxvt
|
* urxvt
|
||||||
* rxvt
|
* rxvt
|
||||||
|
* terminator
|
||||||
|
|
|
@ -1,21 +1,17 @@
|
||||||
## Description: Use Debian-specific x-terminal-emulator in i3-sensible-terminal
|
Index: i3-4.1.1/i3-sensible-terminal
|
||||||
## Origin/Author: Michael Stapelberg
|
===================================================================
|
||||||
--- a/i3-sensible-terminal.O 2011-11-11 22:03:52.414218386 +0000
|
--- i3-4.1.1.orig/i3-sensible-terminal 2011-12-28 23:51:52.455610236 +0100
|
||||||
+++ b/i3-sensible-terminal 2011-11-11 22:04:38.372020210 +0000
|
+++ i3-4.1.1/i3-sensible-terminal 2011-12-28 23:52:00.826775027 +0100
|
||||||
@@ -1,13 +1,11 @@
|
@@ -4,11 +4,7 @@
|
||||||
#!/bin/sh
|
#
|
||||||
# This script tries to exec a terminal emulator by trying some known terminal
|
# This script tries to exec a terminal emulator by trying some known terminal
|
||||||
# emulators.
|
# emulators.
|
||||||
-#
|
-#
|
||||||
-# Distributions/packagers should enhance this script with a
|
-# Distributions/packagers should enhance this script with a
|
||||||
-# distribution-specific mechanism to find the preferred terminal emulator. On
|
-# distribution-specific mechanism to find the preferred terminal emulator. On
|
||||||
-# Debian, there is the x-terminal-emulator symlink for example.
|
-# Debian, there is the x-terminal-emulator symlink for example.
|
||||||
-# Please don't touch the first line, though:
|
-for terminal in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm; do
|
||||||
[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
|
+for terminal in $TERMINAL x-terminal-emulator urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm; do
|
||||||
|
if which $terminal > /dev/null 2>&1; then
|
||||||
+# Debian-specific: use x-terminal-emulator
|
exec $terminal "$@"
|
||||||
+which x-terminal-emulator >/dev/null && exec x-terminal-emulator "$@"
|
fi
|
||||||
+
|
|
||||||
# Hopefully one of these is installed:
|
|
||||||
which xterm >/dev/null && exec xterm "$@"
|
|
||||||
which urxvt >/dev/null && exec urxvt "$@"
|
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
|
||||||
|
#
|
||||||
# This script tries to exec an editor by trying some known editors if $EDITOR is
|
# This script tries to exec an editor by trying some known editors if $EDITOR is
|
||||||
# not set.
|
# not set.
|
||||||
#
|
#
|
||||||
# Distributions/packagers can enhance this script with a
|
# Distributions/packagers can enhance this script with a distribution-specific
|
||||||
# distribution-specific mechanism to find the preferred pager.
|
# mechanism to find the preferred editor
|
||||||
[ -n "$VISUAL" ] && which $VISUAL >/dev/null && exec $VISUAL "$@"
|
|
||||||
[ -n "$EDITOR" ] && which $EDITOR >/dev/null && exec $EDITOR "$@"
|
|
||||||
|
|
||||||
# Hopefully one of these is installed (no flamewars about preference please!):
|
# Hopefully one of these is installed (no flamewars about preference please!):
|
||||||
which nano >/dev/null && exec nano "$@"
|
for editor in $VISUAL $EDITOR nano vim vi emacs pico qe mg jed gedit mc-edit; do
|
||||||
which vim >/dev/null && exec vim "$@"
|
if which $editor > /dev/null 2>&1; then
|
||||||
which vi >/dev/null && exec vi "$@"
|
exec $editor "$@"
|
||||||
which emacs >/dev/null && exec emacs "$@"
|
fi
|
||||||
|
done
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
|
||||||
|
|
||||||
# This script tries to exec a pager by trying some known pagers if $PAGER is
|
# This script tries to exec a pager by trying some known pagers if $PAGER is
|
||||||
# not set.
|
# not set.
|
||||||
#
|
#
|
||||||
# Distributions/packagers can enhance this script with a
|
# Distributions/packagers can enhance this script with a
|
||||||
# distribution-specific mechanism to find the preferred pager.
|
# distribution-specific mechanism to find the preferred pager.
|
||||||
[ -n "$PAGER" ] && which $PAGER >/dev/null && exec $PAGER "$@"
|
|
||||||
|
|
||||||
# Hopefully one of these is installed:
|
# Hopefully one of these is installed (no flamewars about preference please!):
|
||||||
which most >/dev/null && exec most "$@"
|
# We don't use 'more' because it will exit if the file is too short.
|
||||||
which less >/dev/null && exec less "$@"
|
# Worst case scenario we'll open the file in your editor.
|
||||||
# we don't use 'more' because it will exit if the file is 'too short'
|
for pager in $PAGER less most w3m i3-sensible-editor; do
|
||||||
|
if which $pager > /dev/null 2>&1; then
|
||||||
# If no pager is installed, try an editor
|
exec $pager "$@"
|
||||||
exec i3-sensible-editor "$@"
|
fi
|
||||||
|
done
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
|
||||||
|
#
|
||||||
# This script tries to exec a terminal emulator by trying some known terminal
|
# This script tries to exec a terminal emulator by trying some known terminal
|
||||||
# emulators.
|
# emulators.
|
||||||
#
|
#
|
||||||
# Distributions/packagers should enhance this script with a
|
# Distributions/packagers should enhance this script with a
|
||||||
# distribution-specific mechanism to find the preferred terminal emulator. On
|
# distribution-specific mechanism to find the preferred terminal emulator. On
|
||||||
# Debian, there is the x-terminal-emulator symlink for example.
|
# Debian, there is the x-terminal-emulator symlink for example.
|
||||||
# Please don't touch the first line, though:
|
for terminal in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm; do
|
||||||
[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
|
if which $terminal > /dev/null 2>&1; then
|
||||||
|
exec $terminal "$@"
|
||||||
# Hopefully one of these is installed:
|
fi
|
||||||
which xterm >/dev/null && exec xterm "$@"
|
done
|
||||||
which urxvt >/dev/null && exec urxvt "$@"
|
|
||||||
which rxvt >/dev/null && exec rxvt "$@"
|
|
||||||
which roxterm >/dev/null && exec roxterm "$@"
|
|
||||||
|
|
|
@ -23,6 +23,12 @@ It tries to start one of the following (in that order):
|
||||||
* vim
|
* vim
|
||||||
* vi
|
* vi
|
||||||
* emacs
|
* emacs
|
||||||
|
* pico
|
||||||
|
* qe
|
||||||
|
* mg
|
||||||
|
* jed
|
||||||
|
* gedit
|
||||||
|
* mc-edit
|
||||||
|
|
||||||
Please don’t complain about the order: If the user has any preference, he will
|
Please don’t complain about the order: If the user has any preference, he will
|
||||||
have $VISUAL or $EDITOR set.
|
have $VISUAL or $EDITOR set.
|
||||||
|
|
|
@ -18,8 +18,9 @@ i3-sensible-pager is used by i3-nagbar(1) when you click on the view button.
|
||||||
It tries to start one of the following (in that order):
|
It tries to start one of the following (in that order):
|
||||||
|
|
||||||
* $PAGER
|
* $PAGER
|
||||||
* most
|
|
||||||
* less
|
* less
|
||||||
|
* most
|
||||||
|
* w3m
|
||||||
* i3-sensible-editor(1)
|
* i3-sensible-editor(1)
|
||||||
|
|
||||||
Please don’t complain about the order: If the user has any preference, he will
|
Please don’t complain about the order: If the user has any preference, he will
|
||||||
|
|
|
@ -22,9 +22,13 @@ is appropriate for the distribution.
|
||||||
It tries to start one of the following (in that order):
|
It tries to start one of the following (in that order):
|
||||||
|
|
||||||
* $TERMINAL (this is a non-standard variable)
|
* $TERMINAL (this is a non-standard variable)
|
||||||
* xterm
|
|
||||||
* urxvt
|
* urxvt
|
||||||
* rxvt
|
* rxvt
|
||||||
|
* terminator
|
||||||
|
* Eterm
|
||||||
|
* aterm
|
||||||
|
* xterm
|
||||||
|
* gnome-terminal
|
||||||
* roxterm
|
* roxterm
|
||||||
|
|
||||||
Please don’t complain about the order: If the user has any preference, he will
|
Please don’t complain about the order: If the user has any preference, he will
|
||||||
|
|
Loading…
Reference in New Issue