Xfce4-terminal, zsh, and tmux

I'm trying to get tmux to start automatically when I open xfce4-terminal in awesome. I tried
terminal = "xfce4-terminal -e \'zsh -l -c \"tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -n$USER -s$USER@$HOSTNAME\"\'"
in my rc.lua but I can't open more than 1 xfce4-terminal at a time. if i press mod4+enter, it opens a terminal, but then if i do it again it the window thats already open just flashes. if i switch to a different tag and do mod4+enter, the xfce4-terminal that was open on the other tag switches to the tag i'm on, but a new terminal doesn't open.

Your code is correct in that it launches a terminal session w/ Tmux. As far as awesome I am not familiar. If you dumped into your .xinitrc less the terminal = and adding & at the end you should be set.

Similar Messages

  • Slow xfce4-terminal (and all vte-based terminals)

    Hi everyone!
    So this is the problem, i have slow output in all vte-based terminals.
    I tried this command:
    time seq -f 'teeeeeeeeeeeeeeeeeeeeeeeeeeeeeest %g' 100000
    to measure the performance, and in xfce4-terminal i get about 7.6 secs but in urxvt, for example, i get about 0.9 secs.
    Any suggestions? Thanks!
    PS: Sorry for my bad English.

    crew4ok wrote:
    goran'agar wrote:My suggestion is to uninstall xfce4-terminal and move to urxvt. Oh, well, that's what I did.
    If i don't get an answer, i'll do this way.
    My suggestion was serious. All vte terminals are slow and there's nothing you can do to speed them up. urxvt is way faster.

  • XFCE4 terminal and colors

    I'm not really sure why I'm trying so hard to make the xfce4 terminal operate like urxvt, but whatever.
    XFCE4 terminal doesn't seem to pick up my color settings from .Xdefaults (probably because they are for urxvt ) but what is interesting is that the colors are different once again while in screen. If I open up vim or whatever while in the bare terminal, I get one set of colors (that aren't too bad, honestly) and when I open it up while in a screen I get another set of colors (which are awful.)
    Any ideas on how to make things more consistent?
    Last edited by cry0x (2008-02-07 07:17:24)

    venox wrote:
    You have to setup your color settings on the terminal preferences (Edit > Preferences).
    The screen thing might be something with your .screenrc... I'm really not sure on what you have to change, but you can try appending this to it:
    term screen
    Looks like I've got to manually set the colors individually. Should be fun. Thanks.

  • Fluxbox and xfce4-terminal do not integrate well together

    My issue is very much related to what was brought up here: https://bbs.archlinux.org/viewtopic.php?id=132631
    When I first boot and execute Fluxbox, xfce4-terminal does not have window borders and it is always on top:
    https://imageshack.com/i/5h6zjyp
    After restarting Fluxbox via the menu, the problem disappears:
    https://imageshack.com/i/eujw16p
    I've played around with the settings in ~/.fluxbox, but I'm not sure what to do at this point.
    I don't think this should be in Newbie Corner, rather it should probably be in Applications and Desktop Environments. But the original unsolved issue was in Newbie Corner, so I'm continuing it here.

    Well I can always move it to the Applications and Desktop Enviroments. If you feel a thread is not correctly placed you can use the Report link to let a moderator know

  • [SOLVED] problem with zsh and urxvt and keybinding

    I hope this is the right forum to post this problem, else please move it to the right forum.
    I have zsh and urxvt installed and I am quite pleased with it, except for one problem,
    When I push the delete button in urxvt I get a ~ instead of deleting the next character. In aterm and xterm I don't have this problem.
    I'm sure that there is a way to make the right keybinding for this, but I can't find the solution. Is there someone who can point me in the right direction?
    Last edited by NeoXP (2009-02-24 21:00:02)

    These are my most current bindkeys...
    case $TERM in (rxvt*) #urxvt
    bindkey "\e[7~" beginning-of-line
    bindkey "\e[8~" end-of-line
    esac
    bindkey "^A" beginning-of-line
    bindkey "^E" end-of-line
    bindkey '^?' backward-delete-char
    bindkey "\e[3~" delete-char
    Open a terminal, hit ctrl-V, and press delete.  It should print the key generated.  The first ^[ is escaped as \e.
    So, on my terminal I see ^[[3~
    I put bindkey "\e[3~" delete-char in my ~/.zshrc, and there you go.

  • Terminal transparency and proper refreshing

    Hi. I am having some problems with finding a decent terminal program.
    I am using Fluxbox, and so I don't want any DE specific terminal programs.
    I have xterm by default, and have been playing with urxvt, aterm and mrxvt as well.
    I originally wanted a terminal program with tabs and transparency, however tabs don't matter to me anymore and fluxbox has native support anyway. Now, just proper transparency is important to me. I understand Fluxbox can induce real transparency with xcompmgr, but this has the effect of making the entire window transparent. I am looking for a terminal that supports real transparency naively so the window bar and border will not be transparent, while the "terminal part" will be.
    I'm not 100% sure, but out of these I think only urxvt fits the bill, with aterm and mrxvt only supporting pseudo transparency. Is this correct?
    Second to this, and my more urgent problem, is that none of the terminals except xterm seem to fresh properly. in xterm I can do everything I can do in a real tty, I can edit with vi, use curses programs etc...no problems. However each of urxvt, mrxvt and aterm behave the same way, and do not refresh properly. If I try to edit a file in vi in any of these, I can only see maybe one or two lines of the file, and can't scroll through or anything...it's impossible to actually edit.
    I also note in urxvt, mrxvt and aterm the home and end keys don't work, however they work in xterm just as they do on a tty. For example in each of the non xterm terminals pressing home just gives a tilde, which means I have to hold down the left arrow to get to the end of the line, which can be frustrating.
    Obviously the other 3 terminals are are emulating a different terminal type to what xterm does...perhaps. However I have not found a way to test this. For those people using a non xterm terminal, how did you solve this?
    I also had some somewhat related questions that I hope I don't need to make a separate post for(they seem so trivial but really bug me)
    1. How would I press alt + enter inside a terminal? For example running wicd-curses from a terminal(Even an xterm) you need to press alt + enter to save settings, however from a terminal alt + enter has no effect. Is their any way to force this key combination?
    2. I notice when starting a terminal, the shell lacks a prompt. Why do terminals start interactive shells by default, and why do interactive shells not have a prompt? Is their a way to make interactive shells inherrit the same prompt that login shells use? I use both zsh and bash. Is their any practical difference between using a login and interactive shell?
    3. If I am running an X session as a normal user, and su to root in a terminal, is their any way I can start X programs as root and get them to display in the X session of my  normal user? I normally get an error similar to unable to open display
    3a. I just tested...I normally 'su -' out of habbit, and then I get an "unable to open display" error. I just used su, so roots profile was not loaded, and I can start X programs as root. Why does this work?
    4. I was wondering if it was possible to have the titlebar of a terminal show the current command or path? Something more unique than just every window open saying urxvt or whatever.
    Many thanks for any help!
    Last edited by josh000 (2010-04-20 07:27:55)

    josh000 wrote:I'm not 100% sure, but out of these I think only urxvt fits the bill, with aterm and mrxvt only supporting pseudo transparency. Is this correct?
    Urxvt does both real and pseudo transparancy, but this still needs your wm to have composite enabled. Also roxterm or evilvte may be an alternative. For urxvt set transparancy in .Xdefaults like this (I'm not too sure anymore what it all does but you can google it):
    URxvt*depth:32
    URxvt*background: rgba:2500/2500/2500/cccc #for semitransparancy
    # or:
    URxvt*inheritPixmap: true
    URxvt*tintColor: white
    URxvt*shading: 40
    josh000 wrote:I also note in urxvt, mrxvt and aterm the home and end keys don't work, however they work in xterm just as they do on a tty.
    Try stuff like this:
    *VT100.Translations: #override \
    <Key>BackSpace: string(0x7F)\n\
    <Key>Delete: string("\033[3~")\n\
    <Key>Home: string("\033[1~")\n\
    <Key>End: string("\033[4~")
    josh000 wrote:4. I was wondering if it was possible to have the titlebar of a terminal show the current command or path? Something more unique than just every window open saying urxvt or whatever.
    I think this has more to do with shell than terminal. You have zsh and bash examples here
    As for your other issues: I never had them, don't know. Hope this helps a bit.
    Last edited by VCoolio (2010-04-22 09:45:56)

  • [solved] xfce4-terminal spam after update to util-linux 2.25-3

    I use the setterm command inside a file in /etc/profile.d so that I can prevent the screen from blanking when using a console, along with a couple of other things.
    After the latest update to util-linux (2.25-3), whenever I open xfce4-terminal these lines show up:
    setterm: terminal xterm does not support --blength
    setterm: terminal xterm does not support --bfreq
    setterm: terminal xterm does not support --blank
    [gilmoreja@JamesPC ~]$
    Is there a better way to handle making sure setterm runs when a console is used, but not necessarily when a terminal is opened? Or is there some other way to solve this issue? There doesn't seem to be a switch for setterm for any kind of "quiet mode."
    Last edited by gilmoreja (2014-08-06 18:36:28)

    I think that the shell started in a console is a login shell, and it is not the case in a graphical terminal.
    A login shell has a '-' at the start of $0; so you can test that and condition the execution of the setterm commands:
    if [[ $0 == '-bash' ]]; then
    setterm ...
    setterm ...
    fi

  • Cannot use win7 fonts in xfce4-terminal

    Hi, I recently installed the ttf-win7-fonts AUR package successfully. I can use these fonts in LibreOffice, but not in xfce4-terminal. I do not see them in the menu for fonts when I go to Preferences->Appearance->Font.
    The .ttf files are in the /usr/share/fonts/TTF directory. I tried running fc-cache and restarting xfce4-terminal and Awesome. I also tried creating a ~/.fonts directory, copying the .ttf files there, but I still cannot use them.
    What am I missing? Any help is appreciated.

    Im not sure about this but, why would you want those fonts in terminal? : i suggest to take a lot at the infinality repo that has a lot more fonts and tey are open source.

  • Consolas font size (system vs. xfce4-terminal)

    Hi there,
    I use infinality's patched fontconfig and the Consolas font for monospace. The problem I have is that 10pt Consolas is, imo, too small, whereas 11pt is too large.
    The screenshot below shows how they look on my system (in Sublime Text, but its the same in e.g. Eclipse). The thing is that xfce4-terminal somehow displays
    Consolas differently. I really like the style, but I dont know why this is the case and how to get the style in Sublime Text and Eclipse (or systemwide). Screenshots:
    http://imgur.com/aHx5Mpm,nfzOhOL,4tbp1VG
    As you can see, the terminal version is smaller than 11pt but larger than 10pt. It is indeed Consolas, I checked multiple times.

    The first two images are using the Truetype hinter, whereas the third image is using autohinter.  Not sure how some of your programs could be using one, but others using the other one?  I would check your fontconfig settings.  Also, unless your DPI is set to 72, pt heights are different than px heights (points vs. pixels).  So, there may in fact be one size inbetween the two you mentioned if you're using 96 dpi.

  • Fluxbox xfce4-terminal do not cooperate...

    Hello
    I use fluxbox with xfce4-terminal and i've got serious problem...
    http://img97.imageshack.us/img97/597/sc … 401753.png
    my terminal do not cooperate with fluxbox:
    do not have window borders (even when i set in ~./fluxbox/apps decoratino normal to terminal)
    and is always on top... (which is ... bad)
    this do not happend at start, only after a few minits terminal losts window borders etc...
    do you have any suggestions? or something, please....
    P.S: 3.1.5-1 kernel, Fluxbox 1.3.2 and terminal 0.4.8

    Well, as for A. I don't like it either, but sometimes it's not worth spending time on things that can be resolved in a different way.
    And for B.: here you have a comprehensive list of terminal emulators. If you wish to have something with similar layout / functionality / configuration style to XFCE4 terminal, you may pick up Roxterm for example, or Terminator. I for one have been using rxvt-unicode for a very long time, but it's just one of my idiosyncrasies.

  • [Solved] xfce4-terminal --hide-toolbars or --hide-toolbar?

    Anybody notice that the --hide-toolbars option is no longer plural (with s suffix)???  The plural form has been replaced by the singular (no s suffix) form.  The man for xfce4-terminal still shows the plural option.  This change occurred on the last xfce4-terminal update (Version 0.6.1-1).
    Last edited by hangten (2013-01-04 11:21:31)

    hangten wrote:Anybody notice that the --hide-toolbars option is no longer plural (with s suffix)???  The plural form has been replaced by the singular (no s suffix) form.  The man for xfce4-terminal still shows the plural option.  This change occurred on the last xfce4-terminal update (Version 0.6.1-1).
    Will be fixed in the next release:
    http://git.xfce.org/apps/xfce4-terminal … e9b5f5314f
    Wilco wrote:Yes and I also noticed my keybindings are no longer working. I hate it when packages remove the possibility to set custom keybindings (or I am just missing it)
    The way to do that has changed. Have a look at "Editable Menu Accelerators" @ http://docs.xfce.org/faq.

  • [SOLVED] xfce4-terminal opened unfocused when called by exo-open

    xfce4-terminal opened unfocused when called by
    exo-open --launch TerminalEmulator
    Last edited by D101101 (2015-03-22 19:30:49)

    Thank you, this was driving me crazy.  When I went to open a xfce-terminal (not xterm), it would not "focus" on it.. it was driving me nuts.
    Needless to say, I checked, and rechecked, and rechecked my settings for focus.. probably messing something up in the process, all because exo was bugged (!!!??).
    (bump me, but now they got to fix Thunar.  Thunar is not updating files in folders.)
    Please see https://bbs.archlinux.org/viewtopic.php?id=194955
    Last edited by Kilzool (2015-03-23 04:42:48)

  • [SOLVED] xfce4-terminal doesn't tab-autocomplete with sudo commands

    Wondering if this is a limitation of xfce4-terminal or something that can be enabled.
    In xfce4-terminal, if I type pac and press tab key, it autocompletes to pacman. If I type sudo pac and press tab, it won't autocomplete. The same is true when trying to complete anything after starting with sudo as the first word of the command. Paths resolve fine though after sudo, just not program names or commands.
    Fixable?
    Last edited by nLinked (2013-08-03 20:45:00)

    Thank you so much
    I went for the option to add it in my ~/.bashrc file instead of installing the bash-completion package. Rebooted and it works!

  • Remap alt+bksp/del to ctrl+bksp/del in shell / terminal (zsh)?

    I have noticed that most applications use ctrl+bksp/del to delete words. I would like to change this in my terminal from alt to ctrl. I have been looking for ways to do this but I am lost. Not really sure where to start. Just curious if any of you have done this and how you did it. Also, is there any problems drawbacks that may arise from doing so? I have noticed that ctrl+arrow takes me back and forward words. Would this be affected? Another question: Is this a system wide setting or is it terminal specific (I am currently using terminator as my terminal of preference)? If someone could point me in the right direction I would appreciate it. I will post the solution when / if I find one on my own in the meantime. Thanks.
    Last edited by dodo3773 (2011-11-24 23:21:46)

    dodo3773 wrote:
    roygbiv wrote:
    Well, I don't actually use zsh and I should mention that different terminal emulators parses input differently, hence the keycodes for backspace could be different. You can usually check the value of any key combo using Ctrl+V and then your combo.^H for backspace works in urxvt, but it doesn't seem to work in xterm. Hmm.. Have you tried:
    backward-kill-word
    Ctrl+V and then my combo Ctrl+Back gives me  ^?
    But when I try:
    bindkey '^?' backward-delete-word
    backspace deletes a word without holding ctrl.
    I think you need to try
    bindkey '^?' backward-kill-word

  • What funtionality comes from Terminal.app and not bash (or other shells)?

    I am planning to write an alternative terminal program ( --mostly-- for aesthetics sake) and I want to make sure I cover all of the functionality that I want from Terminal.app in my program. What I'd like to know is what functionality is attributable to the Terminal.app program and not the shell it is using.
    Message was edited by: Camden Jared Narzt

    You should find the ANSI Terminal Escape Sequence standard, which evolved out of the Digital Equipment Corporation VT100 line of terminals. Getting the escape sequences implemented correctly is the hard task.
    Roughly speaking, the Terminal handles displaying the characters from the process(s) and sending keyboard characters (again based on ANSI standard) to the process(s)).
    The Terminal also handles text selection, copy and paste.
    The Terminal may also send mouse movement and click information (optional).
    You could start with an existing terminal emulator, such as the open source project iTerm <http://iterm.sf.net>, or just contribute to the iTerm project.
    There are also X11 based terminal emulators such as xterm, rxvt, etc... where the source code is available.
    As with all open source code bases, if you start with that code, you are most likely obligated to make your source code available as well, unless you only use the resulting terminal emulator for your own use.
    I do NOT know where the official ANSI standard can be found, but this is from the DTTERM Common Desktop Environment man page
    <http://www.helsinki.fi/atk/unix/decmanuals/DOC_51/HTML/MAN/MAN5/0200___.HTM>
    and will give you a flavor for the kind of stuff you will need to implement.
    As for what bash implements, start by reading "man bash", then read man sh, man ksh, man tcsh, man zsh, and you will start to get a favor for what a shell does.
    For the most part the terminal displays the text and sends keyboard input. The shell runs programs, and command line editing, command line recall, etc... A lot of the commands that are run by the shell are just separate programs of their own, so they are not part of the shell.
    Message was edited by: BobHarris

Maybe you are looking for

  • Any hope for corrupted database?

    I keep a membership directory for our organization with names, addresses, etc., as well as pictures, in an Appleworks database. One of the records has become corrupt. I have tried deleting that record, saving into Appleworks 5 and re-opening, saving

  • Installing OSX 10.4 from scratch??

    Hi All, Recently I bought a new hard drive, and have copied all my files i want to keep onto DVD's. I would like to start from scratch again with the new hard drive, does anyone have any tips/instructions on how to install OSX 10.4? I have the 2 star

  • Whenever I try to download the Edge Animate tutorials it says currently having issues ant to contact customer support

    Whenever I try to download the Edge Animate tutorials it says currently having issues ant to contact customer support

  • Scrolling a pane in a web page

    I phone safari does not show scroll bars because you can pan the page in both directions. What about panning/scrolling a pane withing a web page? On a PC browser this will show as double scroll bars. The outer one for the entire web page and an inner

  • How to view text of all triggers?

    How to view text of all triggers? I tried, sqlplus "/ as sysdba" SQL> Select Description, Trigger_Body from all_triggers; I see only one trigger but there are more than 500 triggers.