stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Using run-or-raise to manage pre-configured windows in a tmu


From: David Bjergaard
Subject: Re: [STUMP] Using run-or-raise to manage pre-configured windows in a tmux session
Date: Wed, 09 Apr 2014 10:38:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi,

I don't use run-or-raise a lot (maybe I should start?) but my suggestion
would be something like (pseudocode):
(defun send-to-tmux (command-str)
  (run-or-raise "tmux" (:class "tmux"))
  (window-send-string command-str))

And then you could wrap this in a defcommand or something similar.  

In short, the command/function you want is "window-send-string".


    Dave

Alexander Stein <address@hidden> writes:

> Hello,
>
> I am a recent convert to StumpWM and I have to say I am really loving
> the power and minimalism.  This is a great project, and I am falling
> in love with it and Common Lisp again.
>
> Now, I have a question that I have tried to answer by browsing many
> configurations in dotfiles and dedicated StumpWM tutorial pages (there
> a few, but they are very informative).  I am hoping, that a novice,
> someone can point me in the right direction.
>
> Like others, I make frequent use of tmux in my day-to-day Linux usage.
> I have set up all my GUI applications with (run-or-raise), and most
> importantly, my terminal emulator of choice (mlterm, since I use pesky
> non-ASCII RTL languages).  I have my bashrc file configured to
> automatically load a preconfigured main tmux session with the bells
> and whistles.  I spend most of my time in mutt, an emacsclient running
> an org-mode file for work, an emacsclient running an org-mode file for
> personal stuff, and a few other random windows in this tmux session.
> The first few are currently instantiated manually, but in the past I
> had them open within tmux automatically.
>
> Is it possible to set (run-or-raise), that when a keybinding calls a
> function that excutes it, will go to my configured mlterm, and then
> run the command like "tmux select-window mutt" after raising the
> current mlterm session?  StumpWM is pretty fast as it is, but this
> would make StumpWM the best experience I ever had on Linux.
>
> I am sure this is going to be a macro of some kind and is most
> certainly not default behavior.  Any pointers would be very welcome.
> If anyone has done this, or knows someone who has, I would love a link
> to any .stumpwmrc file.
>
> Thanks again and keep hacking!
>
> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]