Skip to main content
24 votes

How to identify window by clicking in Wayland

Good news, there IS something like this built into Gnome Shell, and unlike xprop works with Xorg and Wayland. Ultimately this may fall into the realm of other tooling if you're using KDE, i3, or ...
Brian Redbeard's user avatar
21 votes

Opening a programme in a floating window in i3

This is how I did it for my Galculator application: In my i3 config file (~/.config/i3/config) I added the next line: for_window [class="Galculator" instance="galculator"] floating ...
HubbleT's user avatar
  • 319
12 votes

Keyboard shortcut to move window to a side in Gnome

tested in the current gnome 3.28 on ubuntu 18.04 SUPER+← moves the window to the left SUPER+→ moves the window to the right
user8162's user avatar
  • 221
10 votes
Accepted

Can I change the Cinnamon taskbar to show each open program window separately?

You can accomplish this by right clicking on the Panel, going to "Add applets to the panel", then adding the "Window list" applet. To remove the part of the panel that groups by icon and requires you ...
Matt's user avatar
  • 116
9 votes

How to move a window up to the level of its parent window in i3wm?

I'd like to expand on the author's answer. Shift+$mod+Up (move up for w1-a) is very dependent what your current layout is. Let's say the initial state of the container tree is: . ├── w1 │ ├── w1-a ...
Syphdias's user avatar
8 votes

How can I set the position that terminal opens at?

As an update, the top answer didn't work for me in Ubuntu 18.04 as of Aug. 2018. What got the job done is Hardware -> Keyboard -> Add new command (By hitting plus sign). Fill in the "Command" field ...
Xiaohong Deng's user avatar
7 votes

How to customize window tiling zones/grid?

Cinnamon provided an extension called gtile for enhanced tiling, which might be what you are looking for. To install the gtile extension: open the Menu -> Settings -> Extensions.
Mailerdeamon's user avatar
7 votes

Opening a programme in a floating window in i3

The proper way to make the currently focused window float in i3 is to run i3-msg floating enable This is what your config line does. The problem now is that i3-msg runs before the window is in focus ...
Raphael's user avatar
  • 2,095
6 votes
Accepted

Is it possible to have `i3-msg focus <direction>` to not wrap around when there is no window in the given direction

Yes, I implemented this option last year. Add to your configuration file: focus_wrapping no It is available since version 4.15.
Vladimir Panteleev's user avatar
6 votes

Opening a programme in a floating window in i3

I would like to sum up HubbleTs post with some other dirty workarounds added information: TLDR: Append && i3-msg "[id=$(xdotool getactivewindow)] floating enable" to your shortcut definition (...
Suuuehgi's user avatar
  • 1,813
6 votes

Is there an equivalent of Hammerspoon (macOS) for Linux?

Hammerspoon is kind of a grab-bag of different capabilities, at least based on what its inbuilt APIs provide. On Mac OS it's a useful tool to work around the lack of open-source core functionality in ...
Andrew Ferrier's user avatar
5 votes
Accepted

How to minimize an application window from command line

You can use xdotool like that: xdotool search "Mozilla Firefox" windowminimize
Arkadiusz Drabczyk's user avatar
4 votes

How to identify window by clicking in Wayland

I realised this was something that sway in particular was lacking, so I created a gist to do it. Behold: wlprop Type wlprop into a terminal and click a window, it will give you the sway tree output ...
Ben's user avatar
  • 151
4 votes

How do I open a file with ansible-vault edit from inside vim?

I've been doing this from inside vim when editing an encrypted vault file: :!ansible-vault --vault-password-file=~/.vault_pass decrypt % Make a change and then re-encrypt the file: :!ansible-vault -...
dex's user avatar
  • 41
3 votes

How to put a window on more than one desktop, but not all, in kde

You need to use Wayland, and not X11, in order for this to work. Then assign windows to desktops by means of your choice, e.g. right-click on the title bar > Move to Desktop > ... will be a list ...
Natalie Clarius's user avatar
3 votes

How to identify window by clicking in Wayland

In Sway, you can grep for your app against swaymsg -t get_tree, which is like xprop, but for all windows at once.
Jason Stewart's user avatar
3 votes

Xterm: working with multiple tabs

The true xterm is a powerful and versatile tool that adheres to the Unix Philosophy of "Do one thing and do it well." xterm is by no means a "basic" or "bootstrap" terminal. In fact, "TERM=xterm" ...
Kajukenbo's user avatar
  • 357
3 votes

How to move a window up to the level of its parent window in i3wm?

My answer to this problem is having an i3helper bash script which can do this independently of layout via focus parent and marks. The one extracted command is: #!/bin/bash case $1 in moveToParent) ...
karel's user avatar
  • 39
3 votes

Launching applications from a terminal with specific window size and location

Run xwinifo and click on the window of the application you want to start. Note down the line at the bottom -geometry WxH+X+Y where W, H are the width and Height, X, Y are the coordinates of the ...
Andrew's user avatar
  • 31
3 votes
Accepted

Mirror a single X application on a dual-monitor setup with Openbox

For this specific requirement with X11 and Openbox, I don't know if it is possible to do such a hackery, but with VNC is quite easy to achieve what you are after. Mirroring a single X application ...
obeliksz's user avatar
  • 300
3 votes

On Gnome, is it possible to tile windows vertically?

On vanilla GNOME 4X this isn't implemented. But good extensions exist for this exact purpose: Tactile is a very interesting approach, and works for me fairly well. gTile is also nice. Tiling ...
Savchenko Dmitriy's user avatar
2 votes

Keyboard shortcut to move window to a side in Gnome

In Ubuntu 20.04, the shortcuts can be changed by opening up Keyboard Shortcuts (e.g. by pressing Super and searching for it) and editing "View split on right" and "View split on left&...
Janus Troelsen's user avatar
2 votes

How to forbid windows from stealing focus in XFce4?

If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"
likeanowl's user avatar
2 votes

xdotool: How to search for window by title and class with different patterns (similar to AutoHotkey)

Short and elegant answer (which uses wmctrl): result=$(wmctrl -l | grep 'TODO - gvim' | grep -Eo '0x[0-9a-f]+') The resulting window ID is in hex, so you need to convert it to decimal (used by ...
Yan King Yin's user avatar
2 votes

How do I open a file with ansible-vault edit from inside vim?

I managed to do that using %! ansible-vault decrypt --output - To encrypt the buffer, use %! ansible-vault encrypt --output - It would be great to be able to automate this. I achieved some degree of ...
user48678's user avatar
  • 209
2 votes

How to identify window by clicking in Wayland

There is a draft of xdg-foreign protocol extension, which allows obtaining handles of wl_surface's, created by other Wayland clients. Having the handle, you can obtain from it anything you can obtain ...
bodqhrohro's user avatar
2 votes

Opening a programme in a floating window in i3

Was searching for a way to have a application always start in tiling but at the same time have a way to open it in floating (without changing all the other instances of this app beeing send to ...
termnml's user avatar
  • 121
2 votes
Accepted

How to crop windows (not images) under Linux?

An option would be using Xephyr to run a separate X server in a window. You can then run applications in that server (by setting the DISPLAY environment variable), move them to be partially off-screen,...
remram's user avatar
  • 210
2 votes

Minimize button loses window Linux Mint 19.1 Mate

Linux Mint 19.1 Mate GUI Issue: Minimized applications keep running but disappear/don't show up in panel. Suggestion: Right click on the panel. Select "Reset Panel" Panel will reset, disappear and ...
Kaleb's user avatar
  • 21
2 votes
Accepted

How to add a fullscreen button to xfwm4 window buttons?

As of version 4.14.0, xfwm does not offer the functionality to add a 'fullscreen' button to window decoration. Even if it did though, window decorations disappear in fullscreen mode, so it could not ...
user3840170's user avatar
  • 1,889

Only top scored, non community-wiki answers of a minimum length are eligible