Tag Info

Hot answers tagged

7

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 ...


5

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


5

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 ...


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 ...


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

@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 ...


3

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.


3

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 ...


3

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 ...


3

CtrlAltu Source: http://linux.die.net/man/1/qemu-kvm In the future, you can also try to use man (in a terminal). This gives you the user manual. You can seek a word by pressing "/" (without the quotes) and then cycle through the references using "n": man qemu /restore <enter> n n To quit, type "q".


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

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.


2

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.


2

You could see if the window is hiding somewhere by using the wmctrl command to list the windows known to your instance of X11. Example $ wmctrl -l 0x02600007 -1 greeneggs.bubba.net Desktop 0x01a0005d 0 greeneggs.bubba.net linux - How to pop up "hidden" X application - Unix & Linux Stack Exchange - Google Chrome 0x02a00006 -1 greeneggs.bubba.net ...


1

Well, here is something, but hardly ideal: I just found https://github.com/ponty/PyVirtualDisplay; and as I had both Xephyr and awesome-wm installed, I could put up a Python script which starts up the following relatively easily: Obviously, my usual desktop environment style (as in the OP pic) is missing - and you cannot scale the window (change window ...


1

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 ...


1

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


1

I think you can use the trap command to do this. You can see more about it here in the docs titled: Bash Guide for Beginners - 12.2. Traps. Example Here's an example that catches Ctrl + C. #!/bin/bash # traptest.sh trap "echo Booh!" SIGINT SIGTERM echo "pid is $$" while : # This is the same as "while true". do sleep 60 # This script ...


1

It is possible for X clients to lose their connection and somehow not be notified of it. The process will often wait on the socket across which nothing will ever come, leaving it in an interruptable sleep. For Firefox only (and some other programs like gvim or chrome which make special provisions for storing state in failure) a simple: $ kill -TERM pid ...


1

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 ...


1

The f.warpring function is close, but you have to define a list of windows that are part of the ring, and there doesn't seem to be a way to say "all of them". This, for example, sets up Alt+Tab and Shift+Alt+Tab to cycle among xterms: WindowRing { "XTerm" } "Tab" = m : all : f.warpring "next" "Tab" = m | s : all : f.warpring "prev" Have you tried the ...


1

This is limitation on what you can do with WMII via EWMH. This does implement only a subset of the EWMH specification. You would have to switch to a more compliant window manager for that. (You seem to be calling wmctrl the right way, BTW)


1

There are a couple of ways to check if a process having a particular name is currently running. One is to use pgrep and another is to use ps: pgrep "chromium" >/dev/null 2>&1 && echo 1 || echo 0 ps aux | grep "[c]hromium" >/dev/null 2>&1 && echo 1 || echo 0 grep "[c]hromium" <(ps aux) >/dev/null 2>&1 ...


1

This can be Configured via Compiz http://www.maketecheasier.com/terminal-as-transparent-wallpaper-in-ubuntu/2008/05/21 Requires CompizFusion that is come preinstalled if you are running Ubuntu Gutsy or Hardy. If your computer does not supports Compiz, you can follow the method here


1

As suggested by @ramnovski, put the windows on a seperate desktop. You can switch there as part of your compile/run with wmctrl -s NUM. If you don't want separate desktops, you can also raise a window with wmctrl -a <WIN>, where <WIN> is one of the several ways of selecting a window that wmctrl supports (matching against window title or window ...


1

If it's only the sublime plugin that's bothering you, you just have to edit the plugin preferences and add the geometry parameters: Preferences > Package settings > Terminal > Settings - Default { "terminal": "", "parameters": ["--geometry", "80x24+200+200"] } Another way, if you also want Alt-F2 to open a terminal at that location: ...


1

Perhaps change your gnome-terminal.desktop file (not sure about the file name), And set the Exec= line to gnome-terminal --working-directory=/path/to/folder --geometry=80x24+200+200 instead, that way when you open a new instance, it would be in the desired folder already.


1

In this particular case, if there is such an option, obviously, use it. For other cases, I have found that the below code works. The loop is there because if it weren't, the fullscreen command would fire off to soon, before there were such a window to put in fullscreen! wmctrl -l is to list windows; wc -l is to count lines; wmctrl -r is to specify what ...



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