Tag Info

Hot answers tagged

10

I believe the related man page is, XKillClient. You can use xdotool to simulate the close button being clicked from a terminal like so. Example Assuming I have a gnome-terminal open and it's name is "saml@grinchy:/home". Get the window ID $ xdotool search --name "saml@grinchy:/home" 96488188 Send it a Alt+F4 $ xdotool windowactivate --sync 96488188 ...


10

Most terminals can be launched using the geometry switch allowing you to specify terminal's size and position (COLUMNSxROWS+X+Y) e.g.: gnome-terminal --geometry 73x31+100+300 or xterm -geometry 93x31+100+350 If you want to make the above permanent, copy the terminal launcher (terminal's .desktop file) from /usr/share/applications/ to ...


9

From man awesome there doesn't seem to be a default key binding to close all windows of an application. It might be possible to manually add such a binding. There is, however, a default key binding to close the one focused window*: Mod4-Shift-c. This will leave other windows (if any) of the application intact. It does not work for sub-windows ("logical" ...


9

You can do this using wmctrl. Example Get your window's ID. $ wmctrl -l 0x02a00004 0 grinchy saml@grinchy:~ 0x0620004f 0 grinchy [gnome] Bash command for Maximizing and Unmaximizing windows in gnome? - Google Chrome Then toggle window ID 0x0620004f, like so. $ wmctrl -i -r 0x0620004f -b toggle,maximized_vert,maximized_horz


6

You did not do anything to the Firefox process. It was already in state S before. “Interruptible sleep” effectively means idle. The process is waiting, and will wake up when it receives an input. That's the normal state of a process unless you catch it while it's busy. You have made the window disappear. Maybe you sent it to a different desktop. How to ...


6

@msw did a good job explaining your 2nd Q, and some of your 1st: B) Suggest any relatively-easy ways to regain any form of control, to (at the very least) save the tabs I had annoyingly opened in Private Browsing mode? So I'll try and address your 1st Q a bit more: A) Elaborate as to what the state is, in more detail? The state values Sl (That's ...


6

The panel appears on the primary monitor. You have not said how you are setting your system up so I can't give you a very detailed answer. You will need to use xrandr to find out you current setup. In my case this is: $ xrandr | grep -w connected VGA-0 connected 1440x900+1600+0 (normal left inverted right x axis y axis) 408mm x 255mm DP-3 connected ...


6

You can set up an X server inside an X server using Xephyr. You can create a window on your screen which displays the contents of a new X display: Xephyr :1 To start with, that will be empty. You can launch an application or applications pointed at that new display: DISPLAY=:1 some-application All windows that arise from that application will be ...


5

To move it to a different monitor, right click on an empty area, select "Properties" and then uncheck the 'Expand' box. Now left click on the end one of the ends and drag it to a different monitor. Right click again on the end (making sure not to hit any other widget in the panel) and click on Expand again.


5

With wmctrl: wmctrl -a 'title substring' With xdotool: xdotool search 'title substring' windowactivate With xdotool, you can refine the search by window class (i.e. by application), e.g. xdotool search --all --class XTerm --name 'title substring' windowactivate


5

Add to ~/.config/gtk-3.0/gtk.css: .window-frame { box-shadow: none; margin: 0; } (via https://bbs.archlinux.org/viewtopic.php?pid=1416334#p1416334) I had to restart X for it to take effect - SIGHUP awesome was not sufficient.


4

You can use xdotool to achieve what you want. The main project page is over on github. You could do something like this for example: xdotool behave_screen_edge bottom-left search --class gnome-terminal windowactivate This will give you a hot corner in the lower left which will activate all the windows that are a member of the class gnome-terminal. This is ...


4

you do not need any external tools, just read man fluxbox-apps, edit .fluxbox/apps and put there something like [app] (name=xyz) [workspace] (n) [end]


4

Use gdevilspie to match this application and set the workspace.


4

The commands are echo -ne '\e[9;1t' to maximize and echo -ne '\e[9;0t' to restore the original size. It's described in the xterm control sequences documentation.


4

Settings manager >> window manager >> focus tab. Uncheck automatically give focus


4

You should have a better estimate with: wmctrl -l | wc -l (which gives 40 windows, compared to 312 for xwininfo)


3

The simplest way is to do gnome-terminal --maximize For some more powerful options, try DevilsPie.


3

The supplied answer from Uwe did not work for me, but this did: echo -ne "\e[10;2;t" From this page.


3

Yes...there is a way in Linux to do so ( and to your surprise, it will also work in Windows too ) Just press Alt+Spacebar then hit the key m and then move wherever you want by usin the arrow keys. Once you done, hit the Enter key. And, oh yeah, It will work if and only if the window in question is not fully maximized


3

You can use xdotool with windowminimize. Assuming that it is the active window: xdotool windowminimize "$(xdotool getactivewindow)" If it isn't the active window, you can use xdotool search Spotify to get the window. If this doesn't work, you can use xprop to find the WM_CLASS of the Spotify window, and use that instead.


3

You can use a small BASH script to do that: This opens a new workspace (taken from here) and runs a command: #!/bin/bash i3-msg workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1)) sublime-text Create this script under /usr/bin, name it eg. sublime-new, give it exec permissions and you can now ...


3

There are several extensions on the GNOME extensions site which can give you various modes of "snapping" your windows. One that works particularly well is gTile.     References Keyboard Shortcuts GNOME 3


2

You seems to hit a bug of sawfish: https://bugs.launchpad.net/ubuntu/+source/sawfish/+bug/1083260 PS: And it is a bad idea to test sawfish with ubuntu repo, can't even login link.


2

pgrep -x chromium wouldn't match process names like chromium-foo, and > /dev/null could be replaced with -q: pgrep -xq chromium; echo $(($? == 0)) pgrep is not defined by POSIX, and for example it wasn't included with OS X until recently. But you could also use ps: ps -eo comm= | grep -xq chromium; echo $(($? == 0)) # GNU ps -eco comm= | grep -xq ...


2

xwininfo -root -children | grep -q '"Firefox")' echo "$(($? == 0))" Would output 1 if there's a window of class Firefox connected to your X server (by any user from any machine). To limit to Firefox processes local to the machine where you're running that command: xwininfo -root -children | awk '/"Firefox"\)/{print $1}' | xargs -I% xprop -id % ...


2

If you don't want to specify the geometry/position during startup, but permanently, simple use Kwin's rule system: Launch the desired application Right-click on the title-bar or use Alt+F3 More Actions Special Window Settings Tab: Window matching Check, whether the values were detected correctly, otherwise use the Detect Windows Properties button to ...


2

There's no predefined shortcut, but you can make your own. Install the xdotool utility. The following commands move a window to the top and bottom respectively: xdotool windowmove $(xdotool getwindowfocus) x 0 xdotool windowmove $(xdotool getwindowfocus) x 9999 (Some installations have the unfortunate bug that using x or y, which is supposed to leave that ...


2

I'm a little rusty w/ FVWM, and what you are asking for here amounts to a chapter in a book, so I'll just provide a few pointers. In the future, try to ask one short specific question and refer to what you've tried/know. Note that the fvwm man pages are very extensive and in-depth. If you can't get along with them, I'd give up now, because that is the ...



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