[SOLVED] Change my GPG key
Hello,
I'm not sure in what section this belongs. It's not per se Arch related, so I guess it should go here.
Here's the case: I have updated my Hotmail account to the new Outlook, but when I created my GPG key I used my Hotmail account. How can I change this email adress, possibly without changing my GPG key? I looked at the gpg manpage but couldn't find anything and Google isn't that helping either.
Last edited by Unia (2012-08-02 18:36:34)
Use gpg --list-keys to find the key ID, then run gpg --edit-key <ID>. "adduid" will add a new user ID (name + email address); use "revuid" to revoke the old one if it's been compromised or you just don't want it anymore.
Don't forget to re-upload it if you've posted it to a server (using --send-keys), and make sure all the contacts that have the original key get the new version.
Last edited by Trent (2012-08-02 18:25:38)
Similar Messages
-
How do I configure Kwallet to manage SSH and GPG keys? [SOLVED]
I'm using a select few KDE programs (not the DE) such as Kontact (and with that KMail, Korganizer, Kaddressbook...) and Kwallet. I've got a GPG and an SSH key which I need in Git to sign commits and push. I'd like to have Kwallet manage ALL of these passwords/passphrases, (e-mail, SSH, GPG) and only be prompted for a password to unlock my wallet once per session - or better yet, have the wallet unlocked by logging in (like the keychain in OS X). I'm currently using SLiM (systemd, slim.service) as the login manager. I had a glance at this tutorial for inspiration but to no success...
This is my ~/.xinitrc:
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Hide mouse cursor when idle
unclutter -idle 4 &
# Background image
hsetroot -fill $HOME/img/08.jpg &
# Window manager
xmonad
This is my ~/.zprofile (failed attempt, fake GPG-key name)
#!/bin/sh
# Load keychain to handle ssh and gpg keys
export SSH_ASKPASS=/usr/bin/ksshaskpass
eval `keychain --eval id_rsa 1234ABCD`
$HOME/.keychain/`hostname`-sh
$HOME/.keychain/`hostname`-sh-gpg
This is my ~/.gnupg/gpg.conf (commented lines not included)
no-greeting
require-cross-certification
charset utf-8
keyserver hkp://keys.gnupg.net
Last edited by totte (2012-10-25 10:49:52)No success so far, really, need more ideas.
Neither of /etc/kde/env/{gpg,ssh}-agent-startup.sh seem to be run by anything automatically on my system upon boot and logging in. I tried going back to the beginning and I got GPG working alright, when signing a commit I was automatically authenticated. SSH however still prompts me by CLI to enter my passphrase when I try to git-push or ssh into a server. I set an empty password for the wallet to have it "unlocked by logging in". I thought setting "export SSH_ASKPASS='/usr/bin/ksshaskpass'" in ~/.zprofile would have it prompt for the password in some manner of Qt window related to Kwallet, but apparently it doesn't. In top both ssh-agent and gpg-agent are displayed as running - but if I run gpg-agent in Konsole I get the output "gpg-agent: no gpg-agent running in this session", ssh-agent on the other hand outputs "SSH_AUTH_SOCK=/tmp/ssh-noaDS3C4AP8M/agent.1830; export SSH_AUTH_SOCK;
SSH_AGENT_PID=1831; export SSH_AGENT_PID;
echo Agent pid 1831;".
Here's my ~/.zprofile, ~/.xinitrc, ~/.gnupg/gpg.conf, ~/.gnupg/gpg-agent.conf and ~/.zshrc (probably irrelevant but included anyway):
~/.zprofile
export EDITOR='vim'
export GIT_EDITOR='vim -fg'
export GPG_TTY=$(tty)
export GREP_COLOR='1;34'
export GREP_OPTIONS='--color=auto'
export LANG='en_GB.UTF-8'
export PAGER='less'
export PINENTRY='/usr/bin/pinentry-kwallet'
export SSH_ASKPASS='/usr/bin/ksshaskpass'
export VISUAL='vim'
~/.xinitrc
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Kwallet
kwalletd &
# Keychain (SSH & GPG)
eval `keychain --eval id_rsa 1234ABCD` &
# Hide mouse cursor when idle
unclutter -idle 4 &
# Background image
hsetroot -fill $HOME/img/08.jpg &
# Akonadi
akonadictl start &
# Music Player Daemon
mpd &
# Window manager
xmonad
~/.gnupg/gpg.conf
no-greeting
require-cross-certification
charset utf-8
keyserver hkp://keys.gnupg.net
use-agent
~/.gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-kwallet
no-grab
~/.zshrc (probably irrelevant)
# PATH
# System executables
PATH0="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
# My executables
PATH1="$HOME/bin"
export PATH="$PATH0:$PATH1"
# COLOURS
autoload colors; colors;
eval "`dircolors -b ~/.dircolorsrc`"
# GENERAL
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_verify
setopt inc_append_history
setopt share_history
setopt prompt_subst
setopt correctall
setopt auto_menu
setopt complete_in_word
setopt always_to_end
setopt extendedglob
# ALIASES
alias rezsh='. ~/.zshrc'
alias _='sudo '
alias l='ls -lh --color'
alias la='ls -lAh --color'
alias -- -='cd -'
alias ..='cd ..'
alias df='df -h'
alias g='git'
alias tmux='tmux attach'
alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -v'
alias rmdir='rmdir -v'
alias d='dirs -v'
bu(){cp -v $1 ${1}.backup}
cmds(){history | awk '{print $2}' | sort | uniq -c | sort -rn | head}
md(){mkdir -p $1; cd $1}
# OS-specific aliases
if [[ $(uname) == "Darwin" ]]; then
# Mac OS X
alias pkgs='port search' # Search
alias pkgi='sudo port install' # Install
alias pkgu='sudo port selfupdate && sudo port upgrade outdated' # Update & Upgrade
alias pkgr='sudo port uninstall --follow-dependencies' # Remove package and unused dependencies
alias pkgl='port installed' # List installed packages
alias python='/usr/local/bin/python3'
alias pip='pip-3.2'
alias pips='pip-3.2 search'
alias pipi='pip-3.2 install'
alias pipu='pip-3.2 install -U'
alias pipr='pip-3.2 uninstall'
alias pipl='pip-3.2 freeze'
alias v='mvim'
elif [[ $(uname) == "Linux" ]]; then
alias pips='pip search'
alias pipi='pip install'
alias pipu='pip install -U'
alias pipr='pip uninstall'
alias pipl='pip freeze'
alias v='vim'
case $(lsb_release -d | cut -f2 | cut -d " " -f1) in
(Arch) # Arch Linux
alias equa='alsamixer -D equal'
alias pkgs='pacman -Ss' # Search
alias pkgi='sudo pacman -S' # Install
alias pkgu='sudo pacman -Syu' # Update & Upgrade
alias pkgr='sudo pacman -Rns' # Remove package, configuration backups and unused dependencies
alias pkgl='pacman -Q' # List installed packages
alias pkgd='whoneeds' # List packages depending on specified package
alias poweroff='sudo systemctl poweroff'
alias reboot='sudo systemctl reboot'
alias nw='wicd-curses'
(Debian|Ubuntu) # Debian and Ubuntu
alias pkgs='aptitude search' # Search
alias pkgi='sudo aptitude install' # Install
alias pkgu='sudo aptitude update && sudo aptitude upgrade' # Update & Upgrade
alias pkgr='sudo aptitude purge' # Remove package, configuration files and unused dependencies
alias pkgl='aptitude search -F "%p" "~i"' # List installed packages
alias reboot='sudo shutdown -r now'
alias shutdown='sudo shutdown -h now'
esac
fi
# Host-specific aliases
if [[ ${HOST:r} == "betre" ]]; then
alias poff='sudo /sbin/write-magic 0xdeadbeef && sudo /sbin/reboot'
fi
# TAB COMPLETION
autoload compinit
compinit
# Case-insensitive (all),partial-word and then substring completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
cdpath=(.)
# Use /etc/hosts and known_hosts for hostname completion
[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
hosts=(
"$_global_ssh_hosts[@]"
"$_ssh_hosts[@]"
"$_etc_hosts[@]"
`hostname`
localhost
zstyle ':completion:*:hosts' hosts $hosts
# KEYBINDINGS
bindkey '^[[A' history-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward
bindkey "^[[H" beginning-of-line
bindkey "^[[1~" beginning-of-line
bindkey "^[OH" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[4~" end-of-line
bindkey "^[OF" end-of-line
# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
bindkey '^?' backward-delete-char
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
bindkey "\e[3~" delete-char
# TITLES
tmux_title="%16<..<%~%<<"
term_tab_title="%m"
term_title="Terminal"
function title(){
if [[ "$TERM" == screen* ]]; then
print -Pn "\ek$tmux_title:q\e\\"
elif [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
print -Pn "\e]2;$term_title:q\a"
print -Pn "\e]1;$term_tab_title:q\a"
fi
function title_precmd(){
title $tmux_title $term_tab_title $term_title
function title_preexec(){
emulate -L zsh
setopt extended_glob
local tmux_title=${1[(wr)^(*=*|sudo|ssh|-*)]}
title $tmux_title $term_tab_title $term_title
# ZSH VCS_INFO MODULE
autoload -Uz vcs_info
#zstyle ':vcs_info:*+*:*' debug true
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*' formats '%fon $(rou)%b%f%c%u%m'
zstyle ':vcs_info:git*' actionformats '%fon $(rou)%b%f:$(rou)%a%f%c%u%m'
zstyle ':vcs_info:git*:*' stagedstr ' (staged)'
zstyle ':vcs_info:git*:*' unstagedstr ' (unstaged)'
zstyle ':vcs_info:git*:*' get-revision true
zstyle ':vcs_info:git*:*' check-for-changes true
zstyle ':vcs_info:git*+set-message:*' hooks git-stash git-untracked
# Display count of stashed changes
function +vi-git-stash(){
local -a stashes
if [[ -s ${hook_com[base]}/.git/refs/stash ]] ; then
stashes=$(git stash list 2>/dev/null | wc -l)
if [[ $stashes > 1 ]] ; then
hook_com[misc]+=" (${stashes} stashes)"
else
hook_com[misc]+=" (${stashes} stash)"
fi
fi
# Display message if untracked files are present
function +vi-git-untracked(){
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' ]] && \
git status --porcelain | grep '??' &> /dev/null ; then
hook_com[unstaged]+=" (untracked files present)"
fi
function prompt_precmd(){
vcs_info
# PROMPT
# Root or user?
function rou(){
if [[ $UID -eq 0 ]] ; then
echo "%{$fg[magenta]%}"
else
echo "%{$fg[blue]%}"
fi
# Display ± if we're in a git repository and » at all other times
function prompt_character(){
git branch >/dev/null 2>/dev/null && echo '%{$fg[white]%}±%{$reset_color%}' && return
echo '%{$fg[white]%}»%{$reset_color%}'
# Set the prompt
function set_prompt(){
PROMPT="$(rou)%n %{$reset_color%}at $(rou)%m %{$reset_color%}in $(rou)%~ ${vcs_info_msg_0_}
%{$reset_color%}$(prompt_character) "
# HOOKS
autoload -U add-zsh-hook
add-zsh-hook preexec title_preexec
add-zsh-hook precmd title_precmd
add-zsh-hook precmd prompt_precmd
add-zsh-hook precmd set_prompt -
[SOLVED] Pacman won't look up gpg keys
Ever since I upgraded gnupg/gpgme today, pacman won't look up (or rather fail looking up) any missing GPG keys. Relevant part of pacman's output:
debug: checking signature for /var/cache/pacman/pkg/privoxy-3.0.19-2-i686.pkg.tar.xz
debug: 1 signatures returned
debug: fingerprint: C06086337C50773E
debug: summary: key missing
debug: status: No public key
debug: timestamp: 1328647189
debug: exp_timestamp: 0
debug: validity: unknown; reason: Success
debug: key lookup failed, unknown key
debug: signature is not valid
debug: looking up key C06086337C50773E locally
debug: key lookup failed, unknown key
error: privoxy: key "C06086337C50773E" is unknown
debug: looking up key C06086337C50773E remotely
debug: key lookup failed, unknown key
debug: looking up key 7C50773E remotely
debug: key lookup failed, unknown key
debug: gpg error: End of file
error: key "C06086337C50773E" could not be looked up remotely
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Failing to import the key directly through pacman, I tried
pacman-key --recv-key C06086337C50773E
which successfully added the key to my keyring.
I could then install the package. I also tried switching to different keyserves, but without success.
Everything pacman{, -key} related worked fine until the update, but I can't say for certain that it was the gnupg/gpgme update that broke something.
Does anyone else have this issue or is there something wrong with my setup? I already thought of opening a bug report, but I want to make sure it's not my fault.
btw: Hi, everyone :)
Last edited by vehk (2012-03-28 07:54:28)This wasn't explicitly stated above, but to do the manual import with pacman-key, I had to prefix the fingerprint with 0x, as so:
$ sudo pacman-key -r 0x5C2E46A0F53A76ED
However, the default keyserver is giving me problems currently:
$ sudo pacman-key -r 0x5C2E46A0F53A76ED
Password:
gpg: requesting key F53A76ED from hkp server keys.gnupg.net
gpgkeys: HTTP fetch error 7: couldn't connect: End of file
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> ERROR: Remote key not fetched correctly from keyserver.
So in the end, I used a different keyserver:
sudo pacman-key -r 0x5C2E46A0F53A76ED --keyserver hkp://subkeys.pgp.net
Hope that helps anyone else. -
Hi people , hope anyone can help with this. How can i change de Language Key at the comunications TAB on the PO Header ? it`s grey from the start and i´m not being able to change it , even before i enter the Vendor. I´ve checked the IMG config menus and it`s marked as "Optional" but still i´m not being able to change it. I know this language key comes from the vendor master , but the idea of my client is to be able to change it while doing the PO . Is it posibble ? thanks a lot !
Hi
Pls let us all know , how you solved this issue .. Pls share the steps followed by you
Rgds
Ashok -
Help? Can I change my WEP key on my router?
Hi All...
I'm a newbie to these forums and I have a question... Can I change my WEP key on my FiOS wireless router? (Actiontec MI424-WR Rev. D)
My neighbor, who also watches our dog when we go on holiday, has been using my internet from his house. He freely admitted this. My FiOS is much faster than his throttled Comcast and since he's a power user (torrents) he frequently uses my internet connection for all his massive downloads. His usage knocks me off PS3 and noticeably slows my internet speeds down.
I know he has my IP and WEP since he spends weeks at a time in my house. I'd like to change my WEP key and keep it hidden from him.
How can I kick him off and prevent him from hopping back on?
Thanks in advance.
Emma
Solved!
Go to Solution.Well... theft of services issues aside since what your neighbor is doing is illegal ...
I agree with Justin. Go with a WPA2 connection and use a reasonably long and complex password. I'd change the SSID as well although that's not absolutely required. Also make sure you change the userid/password on the router as well in case they know it. Don't get wrapped up in hiding the SSID or turning on Mac authentication -- while they don't necessarily hurt, they don't add anything appreciable to the equation and just make your own life more difficult.
Now ... I'm going ask, are you even using the the wireless at all? Perhaps you are using a hardwired PC to the router and really don't need the wireless? If so, just go into the router and turn the wireless off. Your neighbor can't steal what isn't there.
Oh ... and it might be time to get the key back and find a new dog sitter. -
Hello.
I don't remember how, but I accidentally changed my FN key function to "Show Desktop".
This means that every time I press "FN" it shows my desktop.
How do I disable this?
Thank you very much for your help.
Itai.That was it. Sorry for my easy-to-solve question
Thank you very much! -
When I create a key and send it to the person I want to begin communicating with encryption, the other person gets this when importing the key: "Error - key importing failed
gpg: key 5D391D97 was created 55491 seconds in the future (time warp or clock problem)"
The clock is set properly. Can you assist me in solving this error? This happens in a PC computer running WIndows 7.
Thank you
CeciliaI created a different key and I have the same problem. I can send you the public key in case that helps solve the problem but you need to provide me with an email address because I cannot upload it here.
Thank you for your assistance.
Cecilia -
Need Help on How to Change The Encryption Key and or Change security settings
Hello, i just installed the wireless router and i would like to know how i can change the encryption key or change the security settings (i want it so you do not have to answer it with a password). Thank you in advance.
Message Edited by DARK_MARIO on 01-06-200706:10 PMHi…
In order to change the wireless settings of your router you need to login into the router configuration page. Open your internet explorer browser…in the address bar type http://192.168.1.1 ( Default IP address). Leave the username field balnk……type admin as password (If you have not changed the router password). When the setup page loads fully…..click on the tab that says wireless. Just below the main tab wireless ….click on the sub tab that says wireless security. You can Change the wireless security settings here. After the changes are made click on save settings. -
How do you change the shortcut keys for Firefox in Welsh For Mac?
I'm using Firefox in Welsh on Mac (asking in English to hopefully get more answers), and every time I try to do the shortcut for copy (cmd+C), it hides the window (since Hide in Welsh is Cuddio, the shorcut for that is now Cmd+C). I usually forget this, and proceed with using the shortcut for copy only to anger myself when I realise that I've hidden the window.
My question is, how do you change the shortcut keys on Firefox so then I can change the Hide shortcut and give Copy the cmd+C shortcut? I'm also using OpenOffice.org in Welsh, and they are using cmd+C for copy and cmd+H for Hide.
Is there any way that I could do this myself? Its rather annoying for me, and its rather weird to use Cmd+X for Cutting text instead of copying.
Thanks.This could be worth a bug. It shouldn't happen that some shortcut keys get (re)used for other actions and Cmd + C should be considered as one of them.
You can try to make the change in this file: cy.jar/locale/browser/baseMenuOverlay.dtd
<pre><nowiki><!ENTITY hideThisAppCmdMac.label "Cuddio &brandShortName;">
<!ENTITY hideThisAppCmdMac.commandkey "C"></nowiki></pre>
English language pack: en-GB.jar/locale/browser/baseMenuOverlay.dtd
<pre><nowiki><!ENTITY hideThisAppCmdMac.label "Hide &brandShortName;">
<!ENTITY hideThisAppCmdMac.commandkey "H"></nowiki></pre>
You can find the file cy.jar in the chrome folder in the Firefox application folder.<br />
The file cy.jar is a ZIP archive, so you need a program that can open such an archive and edit the file baseMenuOverlay.dtd.
I'm not on a Mac, so can't do any testing in this matter. I just downloaded the Welsh (cy.xpi) language pack for Mac and had a look in it. -
T.code FS00: changing the SORT KEY in the 'Control data'
Hi All,
I need to change the SORT KEY in the 'Control data' of a G/L master data.
Is there a SAP standard program by which the field 'Assignment' is updated.
Thanks
GandalfSorry,
i did't mean updating a field ...
I meant:
is there a program which changes the content of the field 'Assignment' according to the new content of the field 'Sort key'?
Thanks -
Change Result analysis key in WBS element
Hi Friends,
Is it possible to change result analysis key in WBS element?
Any thoughts/suggestions would be welcome.
Regards,
SoumyaHi Soumya ,
Changing an RA Key in a WBS Element is easy and it just any normal activity which one can do. But the important thing is that you will have to look at the potential repurcussions which will arise because of changing the RA Key. As long as both the RA keys have the same valuation method and other relevant settings , changing would be OK. If the Valuation methods are different then there would be inconsistencies in Financial Accounting as the computation of revenues / cost of sales would be differing.
Excercise due caution .
Regards,
Venkat. -
When I automatically upgraded to FF4.0, beta 8, my Sync stopped working. Having trouble connecting, I accidentally change my Sync Key which I understand erased all my server info. I can link now and see all my History, but I have lost my Bookmarks. Can they be restored from a server back-up?
Hi WHY IS THIS HAPPENING!
I have a couple of articles here that should be able to help you work with this issue. The first article I want to send your way explains some information about using your iPod touch with multiple computers and multiple libraries. That article can be found here:
Using iPhone, iPad, or iPod with multiple computers
http://support.apple.com/kb/ht1202
Next, in order to get your iPod touch working, you will need to restore from the backup. This article should help you restore from the backup you have made:
iOS: How to back up and restore your content
http://support.apple.com/kb/ht1766
And if you have trouble restoring from the backup, you should see the steps in this article:
iOS: Unable to update or restore
http://support.apple.com/kb/ht1808
Lastly, you can find information on how to move your iTunes library from your old computer to a new computer right here:
iTunes: How to move your music to a new computer
http://support.apple.com/kb/ht4527
Thanks for coming to the Apple Support Communities!
Regards,
Braden -
Change of Depreciation key in SAP as per NEW Co Act 2013
Dear Expert,
As per New Companies Act 2013, we need to change the depreciation key in the SAP FI Module, kindly suggest the process how it need to do.
Thanks in Advance..!!Hi Ravi,
Kindly follow this Sap notes-2052506.This would have all answerer to your questions.If need any more clarification let me know.
Thanks&Regards
M.Mohammed -
WLC: Need to change pre-shared key with a script
Hello,
I need to change pre-shared key on a Guest Wi-Fi with a script.
Does anybody has an idea how to find the right entry in the WLC 2125 MIB to change it through SNMP?
GorazdHi,
That is a textFramePreferences property
mySelection.textFramePreferences.verticalThreshold = Number (range 0- 8640)
ID Object Reference says:
"...The maximum amount of vertical space between two paragraphs. Note: Valid only when vertical justification is justified; the specified amount is applied in addition to the space before or space after values defined for the paragraph..." -
Script to change keyboard modifer keys?
I'm trying to create a login script to use with Workgroup Manager that will allow me to change the keyboard modifer keys on a client machine. I've done a search and found a few scripts but they don't seem to work. For example the following script:
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.keyboard"
tell application "System Events"
tell process "System Preferences"
click button "Modifier Keys…" of tab group 1 of window "Keyboard & Mouse"
set curOpt to (get value of pop up button 3 of sheet 1 of window "Keyboard & Mouse")
set curCmd to (get value of pop up button 4 of sheet 1 of window "Keyboard & Mouse")
tell sheet 1 of window "Keyboard & Mouse"
tell pop up button 3
click
click menu item curCmd
end tell
tell pop up button 4
click
click menu item curOpt
end tell
end tell
click button "Ok" of sheet 1 of window "Keyboard & Mouse"
end tell
end tell
quit
end tell
I am trying to get this to work on OS X 10.6 with no luck. Firstly I have seperate options in System Preferences for Keyboard and Mouse settings (the script above points to window "Keyboard & Mouse") and secondly, even after changing the "Keyboard & Mouse" to just "Keyboard" I get an error message about not being about to locate button "Modifier Keys...".
All I'm trying to do is change the Modifier Keys so that Crtl key is set to nothing. Could anyone help me out?This could work... (tested with 10.6.7)... not very fast...
another idea could be a defaults write command, but I am not sure which prefs-file you would have to edit.. maybe .GlobalPreferences.plist...
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.keyboard"
tell application "System Events"
tell process "System Preferences"
click button 1 of tab group 1 of window 1
set curOpt to (get value of pop up button 3 of sheet 1 of window 1)
set curCmd to (get value of pop up button 4 of sheet 1 of window 1)
click pop up button 4 of sheet 1 of window 1
my setbuttonitem(1)
click pop up button 3 of sheet 1 of window 1
my setbuttonitem(2)
click pop up button 2 of sheet 1 of window 1
my setbuttonitem(3)
click pop up button 1 of sheet 1 of window 1
my setbuttonitem(4)
delay 0.25
keystroke return
end tell
end tell
quit
end tell
on setbuttonitem(valueindex)
tell application "System Events"
tell process "System Preferences"
repeat with i from 1 to 5
key code 126
delay 0.25
end repeat
repeat with i from 1 to valueindex - 1
key code 125
delay 0.25
end repeat
keystroke return
end tell
end tell
end setbuttonitem
Maybe you are looking for
-
From much earlier versions of Mac OS, I had quite a bit of data cached in the then-standard folders /Library/Webserver/Documents and ~/Sites/. What's the standard practice for dealing with those other folders when moving up to Server? I've got experi
-
Chosing 4:3 vs 16:9
If you play it on a plasma 42", which is the best option? Do you have better resolution at the 16:9? Thanks
-
My program launches and quits after launch. I have re-intalled, but it keeps doing the same thing. How do I resolve this issue? r.
-
Share disks over WAN setup AEBS 802.11ac
I am trying to share a usb HDD over my home network that I can access outside of my network. I have read some answers in these communities and followed their instructions, but no resolution. I was wanting something like afp://x.x.x.x:port# to get to
-
Can I use ATI graphics cards in SLI in MSI-7100?
My stupid-question-ometer is going off the scale, but I don't know the answer; can I use ATI graphics cards in SLI in my machine? Also, whilst I'm at it, according to my knowledge, AMD are considered, in general, the lowest cost per unit power. Is it