Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
1 answers
2851 views
Preventing other GUI applications from stealing focus?
How can I prevent other applications from stealing focus from the active window? I have found solutions for other window managers, but nothing for "Metacity (Marco)" (the window manager of the MATE desktop manager). I don't want to have to specify every time which window must be "always on top", unl...
How can I prevent other applications from stealing focus from the active window? I have found solutions for other window managers, but nothing for "Metacity (Marco)" (the window manager of the MATE desktop manager). I don't want to have to specify every time which window must be "always on top", unless it can be done automatically every time I switch to a new window. I have determined the window manager by running wmctrl -m. EDIT: I have tried switching the focus-new-windows flag from smart to strict for both Gnome and Mate(Marco): $ gsettings set org.gnome.desktop.wm.preferences focus-new-windows strict $ gsettings set org.mate.Marco.general focus-new-windows strict But it didn't work.
Eleno (1859 rep)
Feb 9, 2016, 02:28 PM • Last activity: Jul 28, 2025, 11:08 PM
1 votes
0 answers
498 views
"Desktop Settings" isn't available in Arch-Linux Xfce4's Settings Manager. How can I add/install it?
Images: - Settings Manager in Linux Mint ![](https://i.imgur.com/b5kE1v6.png) - Settings Manager in Arch Linux ![](https://i.imgur.com/mWE3uVu.png) The above images are captured on my system running Linux Mint and Arch Linux respectively. ---------- The main reason I want to do this is to change eve...
Images: - Settings Manager in Linux Mint ![](https://i.imgur.com/b5kE1v6.png) - Settings Manager in Arch Linux ![](https://i.imgur.com/mWE3uVu.png) The above images are captured on my system running Linux Mint and Arch Linux respectively. ---------- The main reason I want to do this is to change every window buttons (shade, hide, max. and min.) to the same theme. In the Linux Mint Xfce4 Settings-Manager, the "Desktop Settings" settings is available, but in the Arch Linux Xfce4 Settings-Manager, it isn't. I want the "Desktop Settings" settings, using which I can change my windows-manager to either 'Metacity+Compositing' or only 'Metacity', because the theme I select in "Appearence" settings doesn't gets applied to apps like Thunar or XFCE Terminal if I use the default xfwm4 theme, which makes the gui inconsistent (As a temporary fix, I've to look for matching xfwm4 themes online). But when I use 'Metacity' or 'Metacity+Compositing', all the windows, irrespective of being GTK or QT, uses the same theme, configured in the "Appearence" settings. Also: I've installed Metacity using Pacman, but couldn't find it listed under the startup applications in "Session and Startup" settings. The theme i want to apply is the in-built Adwaita-GTK(2,3) theme, but I couldn't find any similar matching xfwm4 theme. So, is there any way to apply 'Metacity' or 'Metacity+Compositing' with or without the "Desktop Settings" settings. I've also asked this questions in other communities, if anyone is facing this same issue, then they can check out the links below (I'll be adding those links soon):
- [AskUbuntu](https://askubuntu.com/questions/1469316/desktop-settings-isnt-available-in-xfce4s-settings-manager-how-can-i-add-in)
My System Specifications (if required): - CPU: Intel Pentium G2030 - GPU: Intel HD Graphics (rare edition, doesn't has any number like HD 4000 or 2000 or like that) - RAM: 2GB DDR3 1600Mhz Single Channel (⁠٥-⁠_-) - Dedicated-GPU: None ⁠[⁠-⁠_⁠-⁠] - Hard-Disk: WD Green 500GB 7200RPM HDD
Asmit Das Choudhury (31 rep)
May 24, 2023, 03:23 PM • Last activity: May 25, 2023, 02:16 AM
0 votes
1 answers
2809 views
Xfce — Metacity window manager — how to change theme?
In Xfce we can change the window manager in Desktop Settings from Xfwm4 to Metacity. [![enter image description here][1]][1] But then **the system GTK theme is not followed**, because Metacity has its own theming settings. **That system theme includes a metacity folder**. I expected that setting to...
In Xfce we can change the window manager in Desktop Settings from Xfwm4 to Metacity. enter image description here But then **the system GTK theme is not followed**, because Metacity has its own theming settings. **That system theme includes a metacity folder**. I expected that setting to be accessible with gsettings/Dconf, but it is not followed, and is marked as deprecated. enter image description here **How to set the Metacity window theme in Xfce?** --- metacity 3.28.0 Xfce 4.12
cipricus (1779 rep)
Mar 13, 2020, 11:38 AM • Last activity: Mar 13, 2020, 11:51 AM
6 votes
0 answers
2132 views
Remove shadows from Metacity windows
My goal is to remove the dropshadow from all metacity windows. I realize there is not a setting to do this and I may need to recompile metacity. If I can simply do it by editing source files without compiling, an ideas where I can start on that?
My goal is to remove the dropshadow from all metacity windows. I realize there is not a setting to do this and I may need to recompile metacity. If I can simply do it by editing source files without compiling, an ideas where I can start on that?
winchendonsprings (294 rep)
May 13, 2013, 10:07 PM • Last activity: Nov 18, 2018, 09:57 AM
10 votes
2 answers
4293 views
WM-independent way to focus/raise URGENT window
I would like to have a keyboard shortcut to "go to" (focus + raise) window with URGENT flag set which looks like URGENT: it appears on the taskbar (Gnome + Metacity) even if it is on desktop other than current and starts to blink (thanks to @slm for pointing it out). This window might be on other vi...
I would like to have a keyboard shortcut to "go to" (focus + raise) window with URGENT flag set which looks like URGENT: it appears on the taskbar (Gnome + Metacity) even if it is on desktop other than current and starts to blink (thanks to @slm for pointing it out). This window might be on other virtual desktop than current. In this particular case it is Skype windows which set urgency flag, and so they appear in alt-tab popup (metacity WM) but I can't switch to this window if it is not on current virtual desktop. I was looking into xdotool and wmctrl command with no luck. Any ideas or clues? --- **Update:** It appears, that I'm talking about _NET_WM_STATE = _NET_WM_STATE_DEMANDS_ATTENTION ...
roomcays (311 rep)
Aug 7, 2013, 11:10 AM • Last activity: Aug 12, 2017, 05:00 PM
2 votes
1 answers
548 views
Make a terminal window 'un-hideable'
I've been trying to get a fully embedded terminal sitting on my desktop. After searching around for some tips I finally almost have it: xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=dt --working-directory /root & sleep 1 wmctrl -r dt -e 0,200,200,500,500 & wmctrl -r dt -b add,...
I've been trying to get a fully embedded terminal sitting on my desktop. After searching around for some tips I finally almost have it: xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=dt --working-directory /root & sleep 1 wmctrl -r dt -e 0,200,200,500,500 & wmctrl -r dt -b add,sticky,below & wmctrl -r dt -b add,skip_pager,skip_taskbar & It keeps a terminal without borders etc. constantly below everything else. It also doesn't appear in taskbar etc. My only problem is that I have a habit a using my "Hide all windows" shortcut quite a lot, and that still hides the embedded terminal, which kinda beats the purpose. Any suggestions to make an "un-hideable" terminal window? Hackish stuff welcome. EDIT: My first thought was to replace Gnome's "hide all windows" with my own bash script that would hide all windows and then immediately re-show the terminal using wmctrl. From the docs: wmctrl -r dt -b toggle,hidden should work, however it doesn't. Looking on the net it appears that it's a confirmed bug, it doesn't work now and wmctrl hasn't been updated in two years meaning it's unlikely to ever get fixed. *(NB: I use Debian, Gnome, Metacity and Compton composite manager)*
Juicy (4125 rep)
Nov 2, 2014, 12:22 PM • Last activity: Aug 19, 2016, 08:46 AM
3 votes
0 answers
1347 views
What themes are those under Controls in Cinnamon themes?
I have installed many Cinnamon themes but those listed under Desktop affect mostly the Panel, not the windows texture: ![enter image description here][1] The window frame is set under Windows Borders, but what I am interested in is the theme under Controls. ![enter image description here][2] I know...
I have installed many Cinnamon themes but those listed under Desktop affect mostly the Panel, not the windows texture: enter image description here The window frame is set under Windows Borders, but what I am interested in is the theme under Controls. enter image description here I know that themes are categorized as GTK, Metacity etc. Which is which in Cinnamon? Windows=? Controls=? Desktop=?
user32012
Jun 17, 2015, 04:15 PM • Last activity: Apr 26, 2016, 06:21 AM
0 votes
1 answers
1398 views
Issues with Gnome window management in two display screens
I am troubleshooting this GUI application running multiple windows, some of which are small and made explicitly to stay on top of the main window (which usually stays on the first display scree). The problem is, as soon as i take the cursor to the second display screen , the window (which is suppose...
I am troubleshooting this GUI application running multiple windows, some of which are small and made explicitly to stay on top of the main window (which usually stays on the first display scree). The problem is, as soon as i take the cursor to the second display screen , the window (which is supposed to stay on top) hides , and i have to (ALT-TAB) to retrieve it. This problem has nothing to do with GUI application, this rather has to do with window management, because when i open a terminal window on top of the main window , as soon as i take the cursor to the second display window, the terminal window hides. I heard that Metacity has some fix to this ? Is there a way to write a bash script to handle this issue, i just don't know how to start ?
Sam Gomari (111 rep)
Jan 28, 2016, 07:52 PM • Last activity: Jan 28, 2016, 08:13 PM
4 votes
2 answers
378 views
Function Keys no longer available for Switching Workspaces
For about 15 years I have assigned a workspace to each function key (F1-F10) in whichever Linux/X environment I'm using. Yesterday I ran a normal software update on my work Ubuntu box and now, although I can still use ccsm to assign those keys to the Viewport Switcher it has no effect unless I also...
For about 15 years I have assigned a workspace to each function key (F1-F10) in whichever Linux/X environment I'm using. Yesterday I ran a normal software update on my work Ubuntu box and now, although I can still use ccsm to assign those keys to the Viewport Switcher it has no effect unless I also assign some modifier such as alt-, which is very annoying. (I'm using metacity on 14.04). Does anyone know what might have changed in the last couple of weeks? I had been on holiday so the update was quite large. More importantly, how do I fix it? Keyboard menu screenshot
Nagora (91 rep)
May 28, 2015, 08:48 AM • Last activity: Jun 9, 2015, 02:13 PM
4 votes
1 answers
1708 views
How to remember window location metacity (Always on visible workspace)
I need to have some applications running on specific workspaces on gnome and have the option (Always on visible workspace) ticked and remembered each time I'm loggin out. Is this possible?
I need to have some applications running on specific workspaces on gnome and have the option (Always on visible workspace) ticked and remembered each time I'm loggin out. Is this possible?
tux_drummer (1943 rep)
Oct 29, 2012, 11:55 AM • Last activity: Jul 7, 2013, 10:32 PM
2 votes
1 answers
1746 views
Run metacity without gnome-shell (gnome 3)
Hi how can i use metacity with composite manager without gnome-shell. I'm trying to do so in my custom xsession #!/bin/bash if test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval `dbus-launch --sh-syntax --exit-with-session` fi metacity --replace ccp & wmpid=$! xsetroot -solid white & sleep 1 if [ -f ~/....
Hi how can i use metacity with composite manager without gnome-shell. I'm trying to do so in my custom xsession #!/bin/bash if test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval dbus-launch --sh-syntax --exit-with-session fi metacity --replace ccp & wmpid=$! xsetroot -solid white & sleep 1 if [ -f ~/.metacity-session ]; then source ~/.metacity-session & else xterm & fi # Wait for WM wait $wmpid But I've got this in my ~/.xsession_errors GNOME_KEYRING_CONTROL=/run/user/rumkin/keyring-Ar8I4j SSH_AUTH_SOCK=/run/user/rumkin/keyring-Ar8I4j/ssh GNOME_KEYRING_CONTROL=/run/user/rumkin/keyring-Ar8I4j SSH_AUTH_SOCK=/run/user/rumkin/keyring-Ar8I4j/ssh GNOME_KEYRING_CONTROL=/run/user/rumkin/keyring-Ar8I4j SSH_AUTH_SOCK=/run/user/rumkin/keyring-Ar8I4j/ssh GPG_AGENT_INFO=/run/user/rumkin/keyring-Ar8I4j/gpg:0:1 GNOME_KEYRING_CONTROL=/run/user/rumkin/keyring-Ar8I4j SSH_AUTH_SOCK=/run/user/rumkin/keyring-Ar8I4j/ssh GPG_AGENT_INFO=/run/user/rumkin/keyring-Ar8I4j/gpg:0:1 Initializing tracker-miner-fs... Tracker-Message: Setting up monitor for changes to config file:'/home/rumkin/.config/tracker/tracker-miner-fs.cfg' Starting log: File:'/home/rumkin/.local/share/tracker/tracker-miner-fs.log' Initializing tracker-store... Tracker-Message: Setting up monitor for changes to config file:'/home/rumkin/.config/tracker/tracker-store.cfg' Tracker-Message: Setting up monitor for changes to config file:'/home/rumkin/.config/tracker/tracker-store.cfg' Starting log: File:'/home/rumkin/.local/share/tracker/tracker-store.log' (tracker-store:7825): Tracker-CRITICAL **: D-Bus service name:'org.freedesktop.Tracker1' is already taken, perhaps the daemon is already running? Failed to play sound: File or data not found ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-application-handlers ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-command-line ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-log-out ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-print-setup ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-printing ** (gnome-screensaver:7804): WARNING **: Config key not handled: disable-save-to-disk ** (seapplet:7809): WARNING **: Error showing notification: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.freedesktop.Notifications' on object at path /org/freedesktop/Notifications Starting Dropbox...** Message: applet now removed from the notification area Done! (gnome-shell:7796): folks-WARNING **: Failed to find primary PersonaStore with type ID 'eds' and ID 'system'. Individuals will not be linked properly and creating new links between Personas will not work. The configured primary PersonaStore's backend may not be installed. If you are unsure, check with your distribution. ** Message: applet now embedded in the notification area Window manager warning: CurrentTime used to choose focus window; focus window may not be correct. Window manager warning: Got a request to focus the no_focus_window with a timestamp of 0. This shouldn't happen! ** Message: Stopping applet secret agent because GNOME Shell appeared Initializing nautilus-open-terminal extension Initializing nautilus-dropbox 1.4.0 (rhythmbox:8172): GLib-GObject-CRITICAL **: g_value_get_uint: assertion `G_VALUE_HOLDS_UINT (value)' failed Window manager warning: Log level 8: meta_window_raise: assertion `!window->override_redirect' failed Window manager warning: Log level 8: meta_window_focus: assertion `!window->override_redirect' failed (rhythmbox:8172): GLib-GObject-CRITICAL **: g_value_get_uint: assertion `G_VALUE_HOLDS_UINT (value)' failed [8304:8329:0212/111557:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name [8304:8329:0212/111557:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2800051 (linux - Ho) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2800051 (linux - Ho) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. [8304:8304:0212/111558:ERROR:object_proxy.cc(513)] Failed to call method: org.chromium.Mtpd.EnumerateStorage: object_path= /org/chromium/Mtpd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.Mtpd was not provided by any .service files Created new window in existing browser session. (rhythmbox:8172): GLib-GObject-CRITICAL **: g_value_get_uint: assertion `G_VALUE_HOLDS_UINT (value)' failed Run on Fedora 17. What i've missed?
Paul Rumkin (131 rep)
Feb 12, 2013, 07:26 AM • Last activity: Feb 13, 2013, 01:33 AM
3 votes
1 answers
5714 views
send keystroke to process
I'd like to run some applications in fullscreen. Even though they don't have an explicit such option, it is possible with the `metacity` Alt-F11 command. So, I thought I could create such an input like this: full.txt: KeyStrPress Alt_L KeyStrPress F11 KeyStrRelease F11 KeyStrRelease Alt_L and then:...
I'd like to run some applications in fullscreen. Even though they don't have an explicit such option, it is possible with the metacity Alt-F11 command. So, I thought I could create such an input like this: full.txt: KeyStrPress Alt_L KeyStrPress F11 KeyStrRelease F11 KeyStrRelease Alt_L and then: xmacroplay "$DISPLAY" < full.txt (in my case, the same as xmacroplay :0.0 < full.txt) But, it works in the terminal where it is run. How do I send it to the stdin of some other process? **Edit**: I found a better way to do this: wmctrl -r urxvt -b toggle,fullscreen (for urxvt). Check out my answer to this [question](https://stackoverflow.com/questions/9783198) for (a bit) more on that.
Emanuel Berg (7101 rep)
Jun 7, 2012, 10:13 AM • Last activity: Nov 10, 2012, 01:03 AM
11 votes
2 answers
4542 views
Is there any way to prevent focus being grabbed by another application?
I am getting annoyed by windows under X opening and taking focus away from the current window which has focus. This is particularly annoying when you are typing a password into a password dialog and another application steals focus, so some of your keystrokes end up in the new application instead. I...
I am getting annoyed by windows under X opening and taking focus away from the current window which has focus. This is particularly annoying when you are typing a password into a password dialog and another application steals focus, so some of your keystrokes end up in the new application instead. I've always been irritated by this in Windows, but there's little that can be done about it there, and I can't help but feel that this should be fixable on Unix. I'm currently using Gnome as my desktop environment (on RHEL 5.8) and according to wmctrl -m I'm currently using Metacity as my window manager. While I would prefer to stick with these default options I would be happy to learn about window managers which *don't* exhibit this behaviour.
Mark Booth (1061 rep)
Nov 5, 2012, 02:43 PM • Last activity: Nov 6, 2012, 11:14 AM
2 votes
1 answers
5722 views
How to make Compiz start automatically?
I'm using Linux Debian Squeeze and I already have compiz installed. I want metacity stop automatically boot, and instead want compiz to start automatically.
I'm using Linux Debian Squeeze and I already have compiz installed. I want metacity stop automatically boot, and instead want compiz to start automatically.
Zignd (3233 rep)
May 11, 2012, 12:18 PM • Last activity: Jul 9, 2012, 05:07 PM
1 votes
1 answers
2879 views
Terminate metacity
The last two lines of my `.xinitrc` looks like this xterm -g 80x24+10+10 -bg black -fg green & metacity When I used `twm`, I could exit it from the menu (return to the `tty` where I run `xinit`), but how do you exit `metacity`? The `man metacity` does not mention this, but it refers to the panel men...
The last two lines of my .xinitrc looks like this xterm -g 80x24+10+10 -bg black -fg green & metacity When I used twm, I could exit it from the menu (return to the tty where I run xinit), but how do you exit metacity? The man metacity does not mention this, but it refers to the panel menu (which I don't have). Maybe it's there?
Emanuel Berg (7101 rep)
May 22, 2012, 10:13 PM • Last activity: May 23, 2012, 01:30 AM
4 votes
1 answers
2587 views
Open PDF previewer width specific size and position and "always on top" from command line
I'm using `latexmk -pdf -pvc` to keep compiling my LaTeX files to PDFs while they are displayed in `evince`. I'm doing that a lot with different files and I keep needing to zoom the PDF content, resize the window and enable "always on top". I like to be able to do this automatically using the comman...
I'm using latexmk -pdf -pvc to keep compiling my LaTeX files to PDFs while they are displayed in evince. I'm doing that a lot with different files and I keep needing to zoom the PDF content, resize the window and enable "always on top". I like to be able to do this automatically using the command line. Using [-geometry](https://unix.stackexchange.com/a/23281/4245) doesn't work with evince ("Unknown option") and the command line help doesn't say anything about it as well. I tried the preview -w option which gives me a nice sized window, but the automatic update feature I need seems to be disabled in this mode. I'm using Ubuntu 11.10 with the classic desktop and the default window manager. Is there a possibility to set both the size and position as well as "always on top" from the command line for evince (or similar PDF viewer with auto-update)? I think there might be some window manager control tool which can resize and configure windows from the command line. I'm aware of an [evince feature request](https://bugs.launchpad.net/ubuntu/+source/evince/+bug/963356) to add size and position arguments, which would be half the job already, but I don't think it will be implemented soon.
Martin Scharrer (920 rep)
Apr 21, 2012, 09:05 AM • Last activity: Apr 22, 2012, 11:51 AM
Showing page 1 of 16 total questions