dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:none']"
(brunch875's answer to Deactivate Caps Lock in 14.04)
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Wednesday, October 25, 2017
Disable CAPS lock in Ubuntu 16.04
In a terminal window (Alt+Ctrl+T), type:
Friday, June 14, 2013
Set compose key in Xfce
General help can be found on this article on Compose key. It didn't work for me however in Xfce.
The command
The command
setxkbmap -option compose:lwin
works perfectly however. After this, I can for instance type the inverted question mark by pressing the left Windows key, releasing it, and then typing 2 normal question marks.
To make the command run at every startup, I did the following.
Make a file "setcomposekey.sh", put the following text in it:
#!/bin/sh
setxkbmap -option compose:lwin
echo "Compose key set to left Windows key."
sleep 2
and save the file where you can find it afterwards.
Then, in a terminal, navigate to the directory where you saved it, and type the command:
chmod +x ./setcomposekey.sh
to make it executable.
Now, go to Xfce "Applications Menu", choose "Settings" -> "Session and Startup", tab "Application Autostart", and add your little script to the programs to run at startup.
BTW, you have to do this for every user (login as that user and do the same routine).
BTW, you have to do this for every user (login as that user and do the same routine).
Disable screen saver in Xfce
Regardless of my screensaver settings in Xfce, even if I disable it completely and power management with it, my screen still goes blank after 10 minutes. (I installed regular Ubuntu 12.04.2 LTS and then Xfce, not Xubuntu).
Before messing with xorg.conf, first back it up:
"This isn't the screensaver's issue. It is actually Xorg's default settings.
Add these lines in your xorg.conf (which is located in /etc/X11/xorg.conf and you must edit the file as superuser).
Before messing with xorg.conf, first back it up:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig
A. What DIDN'T work
So, to try to resolve this, I tried the following, but it didn't work.1) First NOT working solution
I found it in this post."This isn't the screensaver's issue. It is actually Xorg's default settings.
Add these lines in your xorg.conf (which is located in /etc/X11/xorg.conf and you must edit the file as superuser).
- CODE: SELECT ALL
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "DontZap" "false"
EndSection
2) Second NOT WORKING solution
Then I tried adding a "NODPMS" option in xorg.conf (see this post). Didn't work either. That actually broke my system, had to boot from live USB, delete the modified xorg.conf and revert to a copy of my original xorg.conf (which luckily I had backed up, see top of this post).3) Third NOT WORKING solution
Then I removed the gnome-screensaver package using synaptic. Didn't work. Then I removed also the xscreensaver package. Didn't work either, screen still blanked after 10 minutes.4) Fourth NOT WORKING solution
(Before editing your /etc/profile, make sure to back it up, for instance by entering in a terminal the following command: sudo cp /etc/profile /etc/profile.orig. In case something goes wrong you can login from live CD or USB, or in recovery mode, and revert back by doing the opposite command from the command line interface: sudo cp /etc/profile.orig /etc/profile, then reboot).
Add to the end of /etc/profile (edit as superuser)
Add to the end of /etc/profile (edit as superuser)
xset s 0 0
xset -dpms
Reboot to make changes take effect.
(See this post, this post and this post)B. So what the # does work????
Caffeine!! (The program, NOT the substance).Check hard disk Ubuntu 12.04.2
- Start from live USB
- in terminal, do
To see your partition, use gparted.
- in terminal, do
sudo fsck -c -v -p /dev/sdb1where /dev/sdb1 is the partition you need to check. Fsck does not work on disks, only on partitions, so you have to do this for every partition you want to check.
To see your partition, use gparted.
Tuesday, May 21, 2013
Howto change keyboard controls in Platinum Sandbox Gamemaker (Qwerty -> Azerty)
Problem: in Linux, there seems to be no regular way to explain to Platinum Arts Sandbox Gamemaker that you have an AZERTY-keyboard and not a QWERTY one. Changing the keyboard-layout in Xfce doesn't help either. That works for any and every program, Sandbox Gamemaker excluded.
Solution (sort of):
This is not at all the official way to do this and highly unrecommended, but it does seem to work and it's very simple. Use at your own risk and peril, I take no responsability whatsoever if you break your system or if your house explodes because of this!
Search for the file "keymap.cfg". On my install (from Ubuntu repositories) it's in /usr/share/sandboxgamemaker/data). Edit it as root, and change the letters W into Z, A into Q and vice versa.
So, in a terminal:
There you change the line
etc. for the lines corresponding to Z and W.
Solution (sort of):
This is not at all the official way to do this and highly unrecommended, but it does seem to work and it's very simple. Use at your own risk and peril, I take no responsability whatsoever if you break your system or if your house explodes because of this!
Search for the file "keymap.cfg". On my install (from Ubuntu repositories) it's in /usr/share/sandboxgamemaker/data). Edit it as root, and change the letters W into Z, A into Q and vice versa.
So, in a terminal:
cd /usr/share/sandboxgamemaker/data
sudo gedit ./keymap.cfg
There you change the line
keymap 97 Ainto
keymap 97 Q; the line
keymap 113 Qinto
keymap 113 A
etc. for the lines corresponding to Z and W.
How to free the Alt-key in Xfce for inkscape, Blender, etc.
As explained on the Inkscape FAQ:
- To enable in XFCE 4.4 or greater, in the Settings Manager > Window Manager Tweaks > Accessibility Tab, change "Key used to grab and move windows" to "none" or something else. Several other selections (such as "Meta") may still use the "Alt" key, however, so test it first.
Saturday, May 18, 2013
Type the copyright symbol © in Linux
As explained here:
- type Ctrl+Shift+u (an underlined "u" will appear")
- type "00a9" (on screen you'll see: "u00a9")
- press Enter
- voilĂ , the "u00a9" converts itself into the copyright symbol: ©
Subscribe to:
Posts (Atom)