Hot answers tagged

5

If I code a application that has an X11 window, will it look and operate the same across linux os's Yes, but not really for the reason you might think. X11 is very low level, and concerns itself basically with drawing graphics primitives and providing a reasonably standardized (note that this does not mean sane; X11 can be called many things, but I ...


2

The syntax :0.NUMBER specifies a screen number on display 0. The concept of screen was intended to describe multiple monitors on the same display, but an application can't be moved from one display to another, so it's been pretty much abandoned. Your monitors are all on screen 0, i.e. :0.0, which is equivalent to :0 since the only screen is the default ...


2

You're referring to xorg/lib/libXt/Resource.c #define MAXRESOURCES 400 used later in the same file: } else if (num_resources >= MAXRESOURCES) { XtAppWarningMsg(XtWidgetToApplicationContext(widget), "invalidResourceCount","getResources",XtCXtToolkitError, "too many resources", (String *)NULL, (Cardinal *)NULL); return NULL; ...


2

The question sounds a bit contradictory since you're citing X tools but ask for a solution that "ideally should work without X". About your 4th finding: xinput will give you the correspondence $ xinput list-props 11 Device 'AT Translated Set 2 keyboard': Device Enabled (145): 1 Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, ...


2

You're probably seeing the xauth timeout that ForwardX11Trusted no sets. You can change the length of the timeout with ForwardX11Timeout, but unfortunately you can't set that very long—it will crash the X server (or maybe just error out in newer Xorgs). See the question Disable ForwardX11Timeout without ForwardX11Trusted in OpenSSH Client? You can set ...


2

To kill all Gnuplot processes: pkill -x gnuplot If you want to kill just the Gnuplot processes that were invoked with the -persist option: pkill -fx 'gnuplot -persist.*' If you want to close the windows without closing the Gnuplot processes (I think that's useless here because closing the windows causes the Gnuplot processes to exit), you can use ...


2

The problem is probably that su - will clear all the environment variables except TERM, so you will lose the DISPLAY setting. Try setting DISPLAY=localhost:10.0 (for example) before the gedit.


1

Run xprop _NET_WM_PID or xdotool selectwindow getwindowpid from a terminal then click on a window to see the process ID of the process that owns that window. (This works often but not always, see What process created this X11 window? for caveats.) One you have the process ID (e.g. 1234), ps -p 1234 -o args or ls -l /proc/1234/exe tells you what command the ...


1

If your ubuntu is not too old (? probably at least 15.04), you should have a command locatectl which on its own will list some current settings eg: System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us X11 Model: pc105 Note the values for layout, model, variant, and options if any and provide them to sudo localectl in that order, with ...


1

You will need to get it to load a GTK theme (the default gnome one is adawita) You can try GTK_THEME=Adwaita then the command. Have you also looked at using x2go? It often gives better performance.


1

~/.xinitrc is executed by xinit, which is usually invoked via startx. This program is executed after logging in: first you log in on a text console, then you start the GUI with startx. The role of .xinitrc is to start the GUI part of the session, typically by setting some GUI-related settings such as key bindings (with xmodmap or xkbcomp), X resources (with ...


1

According to another discussion, startx + ~/.xsession and no ~/.xinitrc, results in reduced functionality (xfce4, sid) Firstly: .xsessionrc is for holding global environment variables. The emphasis is mine. Secondly: 40x11-common_xsessionrc in /etc/X11/Xsession.d is sourced before 50x11-common_determine-startup. So .xsessionrc is read before ...


1

For completeness sake here is the naive / brute-force solution which I hoped is already implemented in some other utility. The fullyobscured notify-event in @Gilles link in the comment sounds very promising, but I wasn't sure how to get it to work, and this solution was also quite fun to implement. The script simply calculates the coverage area of all ...


1

Try fbida ? https://www.kraxel.org/blog/linux/fbida/ Under this discussion there appears to sometimes be a -noverbose option to display just the image without a status bar.


1

It's impossible to define such a shortcut unless the application supports it. The notion of selected text is entirely within the application, there's no way to access it from the outside, and there's no way to ask the application for the selected text (except by using some application-specific protocol). Many applications automatically copy the selected ...


1

shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available)> So the manpage definition of Shared is not as helpful as it could be :(. If the tmpfs use does not reflect this high value of Shared, then the value must represent some process(es) "who did mmap() with ...


1

shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available) tmpfs is swappable. You have tmpfs filesystem(s) which are being filled beyond safe limits. For comparison, the system I'm typing this on has 200M shared. 6G is too much on an 8G system running a desktop, with stuff like ...



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