-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# Based on i3-sensible-terminal | ||
|
||
# | ||
# This code is released in public domain by Han Boetes <[email protected]> | ||
# | ||
# This script tries to exec a terminal emulator by trying some known terminal | ||
# emulators. | ||
# | ||
# We welcome patches that add distribution-specific mechanisms to find the | ||
# preferred terminal emulator. On Debian, there is the x-terminal-emulator | ||
# symlink for example. | ||
# | ||
# Invariants: | ||
# 1. $TERMINAL must come first | ||
# 2. Distribution-specific mechanisms come next, e.g. x-terminal-emulator | ||
# 3. The terminal emulator with best accessibility comes first. | ||
# 4. No order is guaranteed/desired for the remaining terminal emulators. | ||
for terminal in "$TERMINAL" termite hyper wezterm alacritty kitty x-terminal-emulator mate-terminal gnome-terminal terminator xfce4-terminal urxvt rxvt termit Eterm aterm uxterm xterm roxterm lxterminal terminology st qterminal lilyterm tilix terminix konsole guake tilda; do | ||
if command -v "$terminal" > /dev/null 2>&1; then | ||
exec "$terminal" "$@" | ||
fi | ||
done | ||
|
||
awesome-client 'local naughty = require("naughty"); naughty.notification { message = "awesome-sensible-terminal could not find a terminal emulator. Please install one." }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters