lemmyvore

@lemmyvore@feddit.nl

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lemmyvore,

I think it was done on purpose.

Anyway… I figured out a workaround in my script. By focusing one of the windows on the current workspace before I open a new tab it seems to make it the preferred window. It’s not foolproof, sometimes it still selects one of the other windows, but it’s close enough.

Here’s the script in case anybody needs it, should work with any editor that has some sort of -tab and -window options if you grep for the correct window name:


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">WORKSPACE=$(
</span><span style="color:#323232;">	wmctrl -d |
</span><span style="color:#323232;">	grep '*' |
</span><span style="color:#323232;">	awk '{print $1}'
</span><span style="color:#323232;">)
</span><span style="color:#323232;">
</span><span style="color:#323232;">WINID=$(
</span><span style="color:#323232;">	wmctrl -l |
</span><span style="color:#323232;">	grep ' - Mousepad' |
</span><span style="color:#323232;">	grep -E "s${WORKSPACE}s"|
</span><span style="color:#323232;">	tail -1|
</span><span style="color:#323232;">	awk '{print $1}'
</span><span style="color:#323232;">)
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [ -z "$WINID" ]; then
</span><span style="color:#323232;">	exec /usr/bin/mousepad -o window "$@"
</span><span style="color:#323232;">else
</span><span style="color:#323232;">	wmctrl -i -a "$WINID" &amp;&amp; 
</span><span style="color:#323232;">	sleep 0.5 &amp;&amp; 
</span><span style="color:#323232;">	exec /usr/bin/mousepad -o tab "$@"
</span><span style="color:#323232;">fi
</span>

deleted_by_author

  • Loading...
  • lemmyvore,

    I think you bit a big mouthful if you’re just starting out on the NAS game. I would suggest breaking things down into smaller pieces:

    1. Prepare a standalone container only with the VPN.
    2. Try to set up a torrent client container on its own.
    3. Learn how to set up docker networks for the 1st and 2nd container so that the torrent client will always use the VPN.
    4. Try to set up a Jellyfin container on its own.
    5. Move on to the *arr stack.

    nixOS also has a bit of a learning curve and it would’ve probably been easier if you started with something else. Up to you if you want to stick to it. IMO it’s mostly overkill for an OS that will simply serve as the base for a docker setup.

    lemmyvore,

    I think (and hope) tha the logical conclusion of the DNT lawsuit v LinkedIn will be that DNT will be deemed necessary and sufficient, and that this setting will replace all the cookie banners. But even if that comes to pass it will be years before all the banners will be gone.

    How is the piracy experience on an iPad ?

    So I am planning on buying an ipad, never owned one before. I have always been an android guy and from what I have heard Ipad os or ios is pretty restrictive in nature so I was wondering how much does it hamper the piracy experience. For example on android I can torrent files of any nature or size without any restrictions and...

    lemmyvore,

    Torrent clients are banned from the Apple Store and you can’t sideload apps. It’s a very restrictive device in many respects.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #