Set focus to a window using xprop
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I'm using the following to remove the windows border in my emacs when it starts up (--fullscreen is not an option as it also covers gnome shell's taskbar).
xprop -f -id xid _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS '0x2, 0x0, 0x0, 0x0, 0x0'"
# xid is my emacs window
This works ok, however the window loses focus when I do so.
Considering I know the window id, is there a way to focus on it using xprop or any other builtin commands? (without installing anything, eg. xdotool or wmctrl)
linux x11 emacs gnome-shell
add a comment |Â
up vote
1
down vote
favorite
I'm using the following to remove the windows border in my emacs when it starts up (--fullscreen is not an option as it also covers gnome shell's taskbar).
xprop -f -id xid _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS '0x2, 0x0, 0x0, 0x0, 0x0'"
# xid is my emacs window
This works ok, however the window loses focus when I do so.
Considering I know the window id, is there a way to focus on it using xprop or any other builtin commands? (without installing anything, eg. xdotool or wmctrl)
linux x11 emacs gnome-shell
The window manager (WM) handles the focus, so you either need some tool likexdotool
orwmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without usingxprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you usexprop
.
â dirkt
Mar 31 at 18:45
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm using the following to remove the windows border in my emacs when it starts up (--fullscreen is not an option as it also covers gnome shell's taskbar).
xprop -f -id xid _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS '0x2, 0x0, 0x0, 0x0, 0x0'"
# xid is my emacs window
This works ok, however the window loses focus when I do so.
Considering I know the window id, is there a way to focus on it using xprop or any other builtin commands? (without installing anything, eg. xdotool or wmctrl)
linux x11 emacs gnome-shell
I'm using the following to remove the windows border in my emacs when it starts up (--fullscreen is not an option as it also covers gnome shell's taskbar).
xprop -f -id xid _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS '0x2, 0x0, 0x0, 0x0, 0x0'"
# xid is my emacs window
This works ok, however the window loses focus when I do so.
Considering I know the window id, is there a way to focus on it using xprop or any other builtin commands? (without installing anything, eg. xdotool or wmctrl)
linux x11 emacs gnome-shell
edited Mar 31 at 18:47
asked Mar 31 at 16:47
vise
1212
1212
The window manager (WM) handles the focus, so you either need some tool likexdotool
orwmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without usingxprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you usexprop
.
â dirkt
Mar 31 at 18:45
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59
add a comment |Â
The window manager (WM) handles the focus, so you either need some tool likexdotool
orwmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without usingxprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you usexprop
.
â dirkt
Mar 31 at 18:45
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59
The window manager (WM) handles the focus, so you either need some tool like
xdotool
or wmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without using xprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you use xprop
.â dirkt
Mar 31 at 18:45
The window manager (WM) handles the focus, so you either need some tool like
xdotool
or wmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without using xprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you use xprop
.â dirkt
Mar 31 at 18:45
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434705%2fset-focus-to-a-window-using-xprop%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
The window manager (WM) handles the focus, so you either need some tool like
xdotool
orwmctrl
that talks to the window manager, or you need to configure your WM directly to assume the correct configuration without usingxprop
(you didn't tell us what WM you are using), or you need some other way to work around what your WM does when you usexprop
.â dirkt
Mar 31 at 18:45
I'm using gnome shell. I'm going to focus my searches around it, thanks!
â vise
Mar 31 at 18:48
Please edit your question with additional information; the comments may go away at some time.
â dirkt
Mar 31 at 18:59