GithubHelp home page GithubHelp logo

Comments (8)

baskerville avatar baskerville commented on September 22, 2024

The aforementioned commit was reverted in d396210, and the fit_monitor function was reworked in later commits.

Things should be working fine as of 44ab9fc.

At least it works fine for me with sxiv -g ....

from bspwm.

Stebalien avatar Stebalien commented on September 22, 2024

Unfortunately, ftjerm still doesn't work. If I move the window a little, hide it, and then re-show it, it reappears in the correct location. However, the second I click on another window and then hide/show (or even restart) ftjerm it starts showing up in the center of the screen again. However, this may be a weird bug in ftjerm where it assumes that the window manager will map it to it's last location (sxiv works). If my explanation doesn't make sense, tell me. I'm on no sleep right now.

from bspwm.

supplantr avatar supplantr commented on September 22, 2024

This appears to affect st as well. A new st window is always centered regardless of the specified geometry; however, if said window is moved with the pointer, unmapped, and remapped, it appears in the previous position as expected.

from bspwm.

baskerville avatar baskerville commented on September 22, 2024

I would like to underline the fact that there's no requests involved here, i.e. we're not talking about configure requests but about the initial size/position.

@Stebalien: ftjerm always resets its size and position when it maps itself. On a side note: why would you want to use this instead of writing scripts/rules for your regular terminal?

@supplantr: both assumptions are false in the general case and I will fix the associated bugs ASAP.

from bspwm.

Stebalien avatar Stebalien commented on September 22, 2024

Good point:

#!/bin/bash
WID=$(xdo id -n "dropterm" | head -1)
if [[ -n "$WID" ]]; then
    if bspc query -W -w $WID > /dev/null; then
        xdo hide $WID
    else
        xdo show $WID
    fi
else
    termite --geometry="550x350-5-5" --name="dropterm" --exec tmux &
fi

from bspwm.

baskerville avatar baskerville commented on September 22, 2024

Do you intend to make the dropterm window appear at the bottom right corner of the focused monitor?

from bspwm.

Stebalien avatar Stebalien commented on September 22, 2024

Initially, I was trying to get it to appear at the absolute position specified (I was going to modify the script to make it choose the correct monitor). However, as most programs don't seem to take multiple monitors into account, it's probably better to just put windows on the focused monitor by default (i.e. #81).

However, as this bug appears to be fixed, I'll close the report. Thanks.

from bspwm.

Stebalien avatar Stebalien commented on September 22, 2024

Also, in case anyone ever wonders, here is my final working version (it's kind of complicated because termite creates a hidden window):

#!/bin/bash
WIDS=$(xdo id -n "dropterm")
for wid in ${WIDS[@]}; do
    if [[ "$(xprop -id $wid '=$0' _NET_WM_WINDOW_TYPE)" == '_NET_WM_WINDOW_TYPE(ATOM)=_NET_WM_WINDOW_TYPE_NORMAL' ]]; then
        WID=$wid
    fi
done
if [[ -n "$WID" ]]; then
    if bspc query -W -w $WID 2>/dev/null; then
        xdo hide $WID
    else
        xdo show $WID
    fi
else
    termite --geometry="550x350-4-4" --name="dropterm" --exec tmux &
fi

from bspwm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.