Showing posts with label X. Show all posts
Showing posts with label X. Show all posts

Wednesday, November 1, 2017

modifier keys (among which windows key) unusable after focusing vmware

reason: caps lock appears in two places: lock and  control in xmodmap

lock        Caps_Lock (0x42)
control     Control_L (0x25),  Caps_Lock (0x42),  Control_R (0x69)

xmodmap becomes empty after giving focus to vmware if a key is doubled

solution:
setxkbmap
xmodmap -e "clear lock"

source:
https://askubuntu.com/questions/493404/ubuntu-14-04-vmware-6-left-ctrl-and-right-shift-not-functioning

Wednesday, September 28, 2016

keyboard (language) icon missing

Keyboard icons missing in gnome-flashback


create a new theme
mkdir -p ~/.icons/addflags/status/22

create file ~/.icons/addflags/index.theme with the following content

[Icon Theme]
Name=addflags
Comment=Smooth modern theme designed to be intuitive.
Inherits=moblin

Example=directory-x-normal

#Directory list
Directories= status/22

[status/22]
Size=22
Context=Status
Type=Fixed

where Inherits is the theme you want to use

set the theme (e.g. by gnome-tweak-tool)  to addflags


status/22 contains the icons indicator-keyboard-*.svg
taken from example from
  usr/share/icons/ubuntu-mono-dark/status/22/
(sudo apt-get install ubuntu-mono)

Wednesday, July 20, 2016

super p stolen from xmonad

If <Super>P is associated with xrandr (stealing the keybinding from xmonad):

dconf-editor

disable

org/ gnome / settings-daemon / plugins / media-keys / active

source:
http://askubuntu.com/questions/68463/how-to-disable-global-super-p-shortcut

Tuesday, July 19, 2016

gnome panel crashing with transparent background

Fix libcairo

--Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91967
Signed-off-by: Uli Schlachter <psychon@znc.in>
----
 src/cairo-xlib-surface.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 3f407c3..555c1fe 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -807,6 +807,7 @@ _get_image_surface (cairo_xlib_surface_t    *surface,
         }

         cairo_surface_destroy (&image->base);
+        image = NULL;
     }
     }

@@ -1011,7 +1012,8 @@ _get_image_surface (cairo_xlib_surface_t    *surface,
     cairo_device_release (&display->base);

     if (unlikely (status)) {
-    cairo_surface_destroy (&image->base);
+    if (image)
+        cairo_surface_destroy (&image->base);
     return _cairo_surface_create_in_error (status);
     }

--


source:
https://bugs.freedesktop.org/show_bug.cgi?id=91967

Tuesday, September 1, 2015

resize window from command line



use the following script:
source:
http://blog.yjl.im/2012/05/window-resizing-one-liner-using.html

#!/bin/bash
# Using xwininfo and wmctrl to resize a window
# Written by Yu-Jie Lin
# Public Domain

WIN_ID=$(xwininfo | egrep -om 1 '0x[0-9a-z]+')
W=$1
H=$2
X=${3:--1}
Y=${4:--1}

wmctrl -i -r $WIN_ID -e 0,$X,$Y,$W,$H

Tuesday, October 21, 2014

Ubuntu XPS 8700

Nvidia Geforce GT 720 installed on Ubuntu 14.04 using

 $ sudo add-apt-repository ppa:xorg-edgers/ppa
$ sudo apt-get update
$ sudo apt-get install nvidia-340


source:  http://linuxg.net/how-to-install-the-nvidia-340-24-driver-on-ubuntu-14-04-ubuntu-13-10-ubuntu-12-04-and-derivative-systems/

Sunday, March 4, 2012

reconfiguring mouse buttons


to remap the buttons

 xinput set-button-map $id  1 2 3 4 5 6 7 8 9 2 11 12 13

where $id can be found by 

xinput list

To enable the 3 mouse button

in /etc/X11/xorg.conf

Section "InputClass" 
        Identifier  "yes 3 button emulation"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option  "Emulate3Buttons" "true"
EndSection

(and not in "InputDevice" )

On 12.04,

edit
/usr/share/X11/xorg.conf.d/10-evdev.conf

by assing the Option to this section


Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "Emulate3Buttons" "True"
EndSection





Wednesday, January 11, 2012

allow connection to the x-server gdm

if even xhost+ does not work,

 in /etc/gdm/gdm.schemas set

 <schema>
      <key>security/DisallowTCP</key>
      <signature>b</signature>
      <default>false</default>
    </schema>

Friday, December 23, 2011

Ubuntu nvidia driver

Working configuration (that do not make programs crash at startup)
kernel 3.0.0-14-generic
nvidia-drivers 275.43
(285.05.09 or 290.10 do not work)

Sunday, November 13, 2011

set emacs keybindings in gtk

in ~/.gtkrc-2.0 add
 gtk-key-theme-name = "Emacs"'
run
 gconftool -t string --set /desktop/gnome/interface/gtk_key_theme Emacs

Saturday, November 12, 2011