window-management

Move window to screen corners using keyboard shortcuts on Ubuntu 18.04 [closed]

拟墨画扇 提交于 2021-01-03 07:10:37
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I'm looking for a way to move windows to screen corners (top-left, top, top-right, right, bottom-right, bottom, bottom-left, left, maximize) using keyboard shortcuts on Ubuntu 18.04 (Gnome Shell 3.28.3). What I tried that does not work: In settings/keyboard

Move window to screen corners using keyboard shortcuts on Ubuntu 18.04 [closed]

喜夏-厌秋 提交于 2021-01-03 07:07:49
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I'm looking for a way to move windows to screen corners (top-left, top, top-right, right, bottom-right, bottom, bottom-left, left, maximize) using keyboard shortcuts on Ubuntu 18.04 (Gnome Shell 3.28.3). What I tried that does not work: In settings/keyboard

Move window to screen corners using keyboard shortcuts on Ubuntu 18.04 [closed]

╄→гoц情女王★ 提交于 2021-01-03 07:07:39
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I'm looking for a way to move windows to screen corners (top-left, top, top-right, right, bottom-right, bottom, bottom-left, left, maximize) using keyboard shortcuts on Ubuntu 18.04 (Gnome Shell 3.28.3). What I tried that does not work: In settings/keyboard

How can I make window movement commands ignore a certain window?

Deadly 提交于 2020-01-01 05:08:06
问题 So I generally have 3 buffers open in Emacs. One buffer for the actual code I am writing. One buffer for the unit test for said code. A third buffer that displays the results of the unit test. This buffer comes into being below the two other buffers when I run my unit test C-x SPACE . How do I disable this third buffer such that when I press C-x o I am only switching between buffer 1 and buffer 2? Currently, I switch between buffer 1, then buffer 2, then buffer 3, then buffer 1, etc. To be

How can I make window movement commands ignore a certain window?

扶醉桌前 提交于 2020-01-01 05:08:04
问题 So I generally have 3 buffers open in Emacs. One buffer for the actual code I am writing. One buffer for the unit test for said code. A third buffer that displays the results of the unit test. This buffer comes into being below the two other buffers when I run my unit test C-x SPACE . How do I disable this third buffer such that when I press C-x o I am only switching between buffer 1 and buffer 2? Currently, I switch between buffer 1, then buffer 2, then buffer 3, then buffer 1, etc. To be

Creating a window manager for Linux

不打扰是莪最后的温柔 提交于 2019-12-29 11:35:11
问题 I want to create a simple stacking window manager (in C ) for private use, mainly for the purpose of learning and challenging myself. I've looked through twm 's source code which has relatively few bells and whistles but it seems very low level since it's not based on a widget toolkit. 1 Would using a toolkit such as GTK+ be preferable? I'm afraid that some of the code and libraries in twm might be too antiquated ( edit: deprecated) and I want the window manager to use relatively modern

Use Python to resize the active window to half the screen size in Linux?

馋奶兔 提交于 2019-12-24 15:27:36
问题 This question is a follow up to: Manipulate window size in linux via compiled code? Per the title, I want to resize the active window to half the screen size (either on the left or the right of the screen. I can do this with a bash script as follows (per the answer to the previous question): #!/bin/bash w_h=$(xrandr | awk '/\*/{sub(/[0-9\.\*\+]*$/, ""); sub("x", " "); $1=$1/2; print}') w=${w_h% *} ; h=${w_h#* } wmctrl -r :ACTIVE: -b remove,maximized_horz,maximized,vert wmctrl -r :ACTIVE: -e 0

Linux : Get window border height

孤者浪人 提交于 2019-12-24 14:30:40
问题 I try to get in a bash script the maximal size of a window (i.e. the size of the screen minus the panels on the edges of the screen). I am using Kubuntu but if it could work for any linux system it would be great. Currently, my solution is to maximize the active window via wmctrl : wmctrl -r :ACTIVE: -b add,maximized_horz,maximized_vert and then get the size of the window thanks to xwininfo : xwininfo -id $(xdotool getactivewindow) Unfortunately, I don't get the size of the window but the

How to monitor applications being open or launch in linux/tcl/python?

感情迁移 提交于 2019-12-23 02:41:23
问题 I am trying to build a panel application, alike avant window navigator or ubuntu unity. My question is once I build the panel with the predifined applications, how I can add items to the panel when applications are open or launch? Here is my source code in tcl: package require Tk set items {xterm gvim firefox} wm withdraw . toplevel .panel wm attributes .panel -topmost 1 ; # on top bind .panel <Escape> {exit} wm geometry .panel +0+0 wm overrideredirect .panel yes ; # remove window decorations

How do I get a list of all windows on my gnome2 desktop using pygtk?

半世苍凉 提交于 2019-12-19 03:24:09
问题 I'm a bit confused with some gtk and gnome concepts. I'm trying to get list of non minimized windows on my gnome2 desktop, but after reading the pygtk documentation and inspecting the results, I can't understand the results. Neither of the two snippets below appears to work. First I tried this.. >>> gtk.gdk.window_get_toplevels() [<gtk.gdk.Window object at 0xb74339b4 (GdkWindow at 0x8a4c170)>] >>> gtk.gdk.window_get_toplevels()[0].get_children() [] then this >>> d = gtk.gdk.DisplayManager() >