Comments (4)
You can set a title with the escape code used by xterm/rxvt. There are some examples here.
I use this with zsh and it works with termite:
case "$TERM" in
vte*|xterm*|rxvt*)
precmd() { print -Pn '\e];%n (%~) - Terminal\a' } ;;
esac
from termite.
I have this in my .bashrc
to set the window title (tested with i3 and Sway):
# After each command finishes, we set the terminal window title to the
# current working directory. If, for example, Vim sets the window title
# to the file's name and we exit Vim, the window title becomes the
# current directory again.
# There has to be a space between $(pwd) and \007 so the sequence is ended properly,
# otherwise the window title would only be changed sometimes.
# These escape sequences are documented in man 4 console_codes.
# \033 is octal for ESC in ASCII, \007 is BEL
PROMPT_COMMAND="$PROMPT_COMMAND;echo -ne \"\033]0;\$(pwd) \007\""
from termite.
I'm opening a separate bug for the upstream issue with weechat/vim mouse/title behaviour. Just so I don't forget about it :)
from termite.
A relevant section in Arch wiki, for future lurkers: https://wiki.archlinux.org/index.php/Zsh#xterm_title
from termite.
Related Issues (20)
- The -d option doesn't work. HOT 2
- Add unsafe paste warning HOT 4
- Is termite dead ? HOT 4
- Non-latin keyboard layout not working for ctrl+shift+c and ctrl+shift+v HOT 1
- How to copy without trailing spaces? HOT 2
- Cursor Shape not changing HOT 2
- Non English Chars Not Displayed Properly HOT 2
- terminfo: termite vs xterm-termite HOT 1
- Setting terminal to termite in pcmanfm doesn't work when opening files with vim. HOT 3
- How to make dependencies between colors HOT 1
- ncurses/curses not redrawing HOT 1
- Is this project still active? I have not seen any updates :(( HOT 3
- Bug: Crashes when scroll with mouse wheel in selection mode HOT 1
- Revisit sixel support? HOT 2
- -e should terminate argv parsing and use the remainder of argv as command to run HOT 6
- size HOT 1
- make: *** [Makefile:43: install] Erro 1 HOT 1
- Error "unknown shell: '/bin/bash'" when starting termite HOT 1
- Font sometimes gets messed up HOT 1
- obsoleted and thankyou HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termite.