The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

scratchpad with custom geometry

asked 2012-09-22 21:52:55 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

Hi! Is there any way to define scratchpad window position in the config? I want it to appear in the right bottom corner. relevant strings from my config are following:

bindsym $mod+x scratchpad show

for_window [instance="scratchpad"] border 1pixel, floating enable; move scratchpad

exec urxvtc -name scratchpad -geometry 80x20-2-50

why doesn't it work? thanks

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2012-09-22 21:57:20 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

Scratchpad currently (v4.3) resizes the window to be 75% of your output’s height and 50% of your output’s width. I agree that this should probably not be done for floating windows, patches welcome.

edit flag offensive delete link more
0

answered 2013-01-26 05:10:38 +0000

I found adding a criterion to scratchpad show kept the geometry. So you can try this:

bindsym $mod+x [instance="scratchpad"] scratchpad show
edit flag offensive delete link more

Comments

There is no difference between criterion or non-criterion scratchpad show commands (at least none is intended). Note that the current git version (“next” branch) does keep the geometry of floating windows when moving them to scratchpad.

Michael gravatar imageMichael ( 2013-01-26 08:19:55 +0000 )edit

I read and tested a bit. Without criterion, urxvt's parent is shown with state SCRATCHPAD\_FRESH hence the resizing. With the criterion, urxvt itself is shown with state SCRATCHPAD\_NONE. No resizing. i3 version 4.4 (2012-12-12, branch "tags/4.4"). Unintended feature indeed.

Lingzhu Xiang gravatar imageLingzhu Xiang ( 2013-01-26 12:52:38 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2012-09-22 21:52:55 +0000

Seen: 1,013 times

Last updated: Jan 26 '13