[Solved] Wmii and extra keys

I'm trying out Wmii, which I'm very impressed with so far. The one issue I can't get my head round is keybindings for volume keys, play/pause etc.
Looking over the net there seems to be extremely little info about configuring this (or I'm looking in all the wrong places).
Any suggestions for the best way to set extra keys up?
I'd rather avoid xbindkeys if at all possible, as I've specified keybinds already in Openboxes rc.xml etc.
Last edited by rusty99 (2009-05-29 09:04:22)

MattSmith wrote:
Hmm, I know there are a lot of fans of mpd out there but I never really had to worry about volume for 2 reasons:
1. i use mplayer for videos so the sound up and down works for volume
2. I use MOC for music, i understand it's not as customizable as MPD, but it uses the "." and the "," key for volume as far as that goes.
other than that I just leave volume at max
just a thought
i dont understand your reasoning... ncmpc has keys for changing volume too... what the poster wanted to do was a GLOBAL hotkey for changing mpds volume, without a client running...

Similar Messages

  • [Solved] DWM and extra key's.

    Hello.
    I'm using DWM and now I have new keyboard with extra kyes Audio Mute, Raise or Lower volume you know
    I tried:
    showkey
    And I have my key in .Xmodmap , I typed:
    /path/to/.Xmodmap
    and all was ok
    And typed xmodmap and my keys was in mod4 section , this is the output of xmodmap:
    xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
    shift Shift_L (0x32), Shift_R (0x3e)
    lock Caps_Lock (0x42)
    control Control_L (0x25), Control_R (0x6d)
    mod1 Alt_L (0x40), Meta_L (0x9c)
    mod2 Num_Lock (0x4d)
    mod3
    mod4 XF86AudioRaiseVolume (0x73), XF86AudioRaiseVolume (0x74), Super_L (0x7f), Hyper_L (0x80)
    mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71), ISO_Level3_Shift (0x7c)
    Now I care to play with config.h of my DWM.
    Here is part of it:
    { MODKEY, XF86AudioRaiseVolume, spawn, SHCMD("exec mpc volume -5")}
    And when I tried to compile it with that config I got following errors:
    In file included from dwm.c:271:
    config.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Key'
    config.h:65: warning: ISO C does not allow extra ';' outside of a function
    config.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Button'
    config.h:80: warning: ISO C does not allow extra ';' outside of a function
    dwm.c: In function 'buttonpress':
    dwm.c:440: error: 'buttons' undeclared (first use in this function)
    dwm.c:440: error: (Each undeclared identifier is reported only once
    dwm.c:440: error: for each function it appears in.)
    dwm.c: In function 'grabbuttons':
    dwm.c:929: error: 'buttons' undeclared (first use in this function)
    dwm.c: In function 'grabkeys':
    dwm.c:952: error: 'keys' undeclared (first use in this function)
    dwm.c: In function 'keypress':
    dwm.c:1020: error: 'keys' undeclared (first use in this function)
    make: *** [dwm.o] Errpr 1
    And building stop's :(
    Is someone use extra keys with DWM.
    Thanks for any help
    Last edited by SpeedVin (2009-08-12 18:33:25)

    SpeedVin wrote:
    Tillotson wrote:/* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*";
    static const char normbordercolor[] = "#C7C7C7";
    static const char normbgcolor[] = "#000000";
    static const char normfgcolor[] = "#888888";
    static const char selbordercolor[] = "#1793D1";
    static const char selbgcolor[] = "#000000";
    static const char selfgcolor[] = "#FFFFFF";
    static unsigned int borderpx = 1; /* border pixel of windows */
    static unsigned int snap = 32; /* snap pixel */
    static Bool showbar = True; /* False means no bar */
    static Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static Rule rules[] = {
    /* class instance title tags mask isfloating */
    { "Thunar", NULL, NULL, 0, True },
    { "VirtualBox", NULL, NULL, 0, True },
    { "MPlayer", NULL, NULL, 0, True },
    { "Vlc", NULL, NULL, 0, True },
    { "XCalc", NULL, NULL, 0, True },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const Bool resizehints = True; /* False means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod4Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "urxvtc", NULL };
    static const char *browsercmd[] = { "firefox", NULL };
    static const char *musiccmd[] = { "urxvtc", "-e", "ncmpcpp", NULL };
    static const char *talkcmd[] = { "urxvtc", "-e", "weechat-curses", NULL };
    static const char *shutcmd[] = { "sudo", "shutdown", "-h", "now", NULL };
    static const char *filebrowse[] = { "thunar", NULL };
    static const char *mutecmd[] = { "amixer", "-q", "sset", "Master", "toggle", NULL };
    static const char *volupcmd[] = { "amixer", "-q", "sset", "PCM", "5-", "unmute", NULL };
    static const char *voldowncmd[] = { "amixer", "-q", "sset", "PCM", "5+", "unmute", NULL };
    static const char *calccmd[] = { "xcalc", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { 0, 0x1008ff12, spawn, {.v = mutecmd } },
    { 0, 0x1008ff11, spawn, {.v = volupcmd } },
    { 0, 0x1008ff13, spawn, {.v = voldowncmd } },
    { 0, 0x1008ff1d, spawn, {.v = calccmd } },
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } },
    { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } },
    { MODKEY|ShiftMask, XK_f, spawn, {.v = filebrowse } },
    { MODKEY|ShiftMask, XK_t, spawn, {.v = talkcmd } },
    { MODKEY|ShiftMask, XK_Delete, spawn, {.v = shutcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be a tag number (starting at 0),
    * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    Thank you very much I will see what I can do .
    Sadly still no reaction

  • [SOLVED] Scrotwm and MOD4 key

    hello everyone,
    I'm using scrotwm daily and love it. It worked perfect until I did a pacman -Syu. Now MOD4 doesn't work anymore? Xev tells me that the keys work (Super_L and Super_R). Any idea?
    best regards
        FM41
    Last edited by FM41 (2009-07-17 18:32:29)

    thanks for the reply,
    esodax wrote:Hi there,
    No problem here after the last update round.
    Do you -Syu daily? because I can't see what recent package possibly could break the Mod4 in Scrotwm.
    No I don't -Syu daily.
    esodax wrote:Maybe some other application you have running somehow interfere with the Mod4 key?
    And I guess you have checked the .scrotwm.conf file just in case too, and restarted X, although it's strange that xev reacts to the Super-keys if something actually where blocking the input.
    Did this all, I guess it's something with the xorg.conf ? Strange things happen, I keep trying to fix it. Any other suggestions?
    best regards
         FM41

  • [solved] pacman apart from core and extra repos

    I just can't get pacman to update any other repos apart from core and extra since I am on arch64 - tried to change servers directly in pacman.conf and in the include files, unpacked the databases manually to /var/lib/pacman - can't seem to persue it though - what am I missing here?
    Last edited by mykey (2008-01-07 14:19:05)

    sure! - pacman.conf:
    # /etc/pacman.conf
    # See the pacman manpage for option directives
    # GENERAL OPTIONS
    [options]
    LogFile = /var/log/pacman.log
    NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
    NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
    NoUpgrade = etc/rc.conf etc/rc.local
    NoUpgrade = etc/modprobe.conf etc/modules.conf
    NoUpgrade = etc/lilo.conf boot/grub/menu.lst
    HoldPkg = pacman glibc
    IgnorePkg = kernel26
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    #[testing]
    #Include = /etc/pacman.d/testing
    [core]
    # Add your preferred servers here, they will be used first
    #Server = ftp://archlinux.puzzle.ch/core/os/x86_64
    Include = /etc/pacman.d/core
    [extra]
    # Add your preferred servers here, they will be used first
    #Server = ftp://archlinux.puzzle.ch/extra/os/x86_64
    Include = /etc/pacman.d/extra
    #[community]
    # Add your preferred servers here, they will be used first
    #Server = ftp://archlinux.puzzle.ch/community/os/x86_64
    Include = /etc/pacman.d/community
    #[unstable]
    # Add your preferred servers here, they will be used first
    #Server = ftp://archlinux.puzzle.ch/unstable/os/x86_64
    Include = /etc/pacman.d/unstable
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    and - pacman -Sy:
    :: Synchronizing package databases...
    core is up to date
    extra 303.3K 373.6K/s 00:00:01 [#####################] 100%
    local database is up to date

  • 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

  • Buttons and enter key problem

    hello,
    there are a few projects of enterprise quality which I am developing in java swing. I found out through research that many or rather most people involved with java believe that swing is ready for enterprise class robust desktop applications.
    so I as the team leador am starting my new projects in java swing.
    I personally find that the amount of java libraries present provide a rich set of functionality and it gives big mussle power to the developers.
    I am only concerned about one problem which many of you might have solved.
    I find that I have to hit the space bar instead of enter key to fire an action. in languages like vb I can press enter key to fire the click events. specially in menu items I certainly don't expect my clients to press the spacebar. besides there are many people who are so used to the keyboard and enter key in particular that it will be hard or rather next to impossible to change their habbits.
    how can I make the menu items work with the enter key. I mean do I need to create the code for keypress events every time I also create an action performed method? or is there a way where I can do it without extra coding.
    it is just that I don't want to right extra code for enter key along with click events.
    one more important note.
    I am a blind person and I use the access bridge technology of java.
    so when I am involved in coding, I use the same.
    so may be my problem isn't a problem in the first place.
    kindly provide me some help
    thanks
    Krishnakant.

    The enter-key works on menu-items in all my applications. It did so since I started with java few years ago.
    Maybe some other problem (OS-specific) ?

  • Problem with childs nodes and automatic key mapping in a Data Object

    Hi experts!
    I'm doing the service order tutorial from the mobile help at [this link|http://help.sap.com/saphelp_nwmobile71/helpdata/en/21/9b5b924c3b434fba4767731794b029/frameset.htm] and I have a problem...
    In the topic "Modeling the Equipment Data Object", says you have to mark the "Automatic Key Mapping" checkbox. So when I had to create a third child node ( the location node ) the system raised an exception with the message "Deselect automatic key mapping flag for more than two-level nodes". I'm trying deselecting the flag and creating the location node, but when I want mark again the automatic key mapping flag, this is disabled.
    What can I do to solve this and create the three child nodes with the flag marked? It's a configuration thing?
    Any help it's very welcome. Thanks in advance.
    Best regards,
    Simon.

    The thing is: Its not allowed to use automatic keymapping if you have more than two levels. This is why the message showed up, and this is why its been disabled.
    What automatic keymapping does: Figures out automatically which child node belongs to which parent (by guessing from the field name and type, which fields in the child correspond to which key fields of the parent).
    On three levels, this becomes more complicated => Its disabled.
    How to do keymapping yourself instead of having the DOE do it automatically: Do 'Explicit keymapping' from each child to its parent. Explicit keymapping is done by clicking on the corresponding menu button in the child node. Here you need to associate child node fields (they need not be key fields of the child, but they are allowed to be that as well) to each of its parent nodes key fields (so that each child can be associated to its parent).
    Cheers

  • How to find SSID and Network Key to setup wireless printer to iMac?

    It is easy to find your "SSID" and "Network Key" once you understand what you are looking for. Here is what worked for me when I setup a new wirless printer today:
    1) SSID = Your Network Name
    Ex. Jason's Wi-Fi Network
    Ex. Harry's Lounge
    First way to find: on an iMac, go to the top bar on the right side and click on the "wireless symbol". You will see a list of all the wireless networks your computer is picking up. The one you are connected to (if you are able to surf the Internet) is the name you enter when asked for the SSID.
    NOVICE HINT: This is the equivalent to walking into a Starbucks and logging onto their wi-fi via their "network name," which has the word Starbucks in it. Some network names will have have locks next to them, meaning they are "secured by a password" and some will not, meaning anyone can access this "free" wi-fi. This doesn't matter either way, it just helps with making sure you have located the list. Of course, it is also possible, if you live in a remote area, that only your network name will show up.
    Second way to find: on an iMac, go to the apple symbol in the upper left corner of computer and make sure it says "finder" (if it doesn't, just click on your desktop and it will show up), then select:
    go > applications > utilities > Airport Utility > double-click on the image of the AirPort Extreme and the network name will be listed
    2) Network Key = Password used to access your Wi-Fi Network
    Ex. BMXGuy456!
    Ex. Millionare$!!!
    This is the password you created when you setup your wireless network, meaning it may not (and should not be for better security purposes) the same password as you use for your Apple ID, email etc.
    NOVICE HINT: So if for example a friend came to stay with you and wanted to connect to your "secured wifi" meaning there is a lock next to it, you would give them this password.
    EXTRA INFO:
    Why do I need this info anyway?
    Because just like anyone who wants to use your wifi when they come over, the printer needs to understand what to connect to, therefore it basically needs the network name to know "WHAT" to connect to, and the "PASSWORD" in order to access that network.

    After much stumbling around, I also discovered this answer. I picked up the 2270DW used, without disc or manual, so downloaded what I needed from the Brother site, but the Brother Mac OSX instructions feel as if they're written by a non-Mac user. I am on OSX 10.7.5, using an Airport wireless unit in Bridging mode (because I have to use a provider's router at the front end of my setup). But once I picked my Airport network name through the Brother Wireless Setup Utility and then typed my network name in the SSID box and my network password in the Network Key box ("es" --- I think the "network key - i.e. password" had to be confirmed a second time) after waiting for the utility to process the information, it worked like a charm.

  • Regenerate the security files : SecStore.properties and SecStore.key

    Hello Expert,
    I have a big issue because I lost the both files : SecStore.properties and SecStore.key from the directory /sapmnt/SID/global/security/data. I tried to regenerate the SecStore.properties  from another instance. And when I tried to connect via Configtool I have the following error message : The encryption key (usually in the key files) is
    not  the key that is required to decrypt the data in the secure store file or the system name is wrong (SID).
    I think that the idea is to generate the new key file.
    Could you please help me to find a solution to solve this issue.
    Many thanks in advance for your greatfull help.
    Regards
    San

    Check this out, though it doesn't directly address your problem. It should definately give you more insight.
    http://help.sap.com/saphelp_nw04/helpdata/en/cd/14c93ec2f7df6ae10000000a114084/frameset.htm

  • Requirement of creation of new condition types and Account keys tax codes

    Hi,
                   In what all possible scenarios will the requirement to create new Condition types and accont keys arise for the creation of new depreciation keys.
    Thanks
    Raja.
    Edited by: Raja Gopal 345 on Aug 29, 2010 1:06 PM

    Unless you use jurisdiction codes, and no external tax system, for
    example with tax procedure TAXUSJ, there is no validity dates for the
    condition records.  You can see this differnce by comparing the tables
    A003 without jurisdiction codes and A053 with jurisdiction codes.  A053
    contains the extra fields DATBI (key field) and DATAB.  This is the
    standard functionality.
    Please have a look at the following part of note 418582:
    " Changing past percentage rates has to be inhibited in order to avoid
    database inconsistencies. For this reason, the functions which allow you
    to transport time-dependent tax codes with percentage rates from the
    past are not supported."

  • E and C keys on wireless keyboard activate Mission Control

    I just set up a wireless keyboard with my Macbook Air. For some reason, the E and C keys activate Mission Control at random times. I went to System Preferences > Keyboard > Keyboard Shortcuts and restored everything to default but it still doesn't fix the problem. I also can't find any direct associations between these keys and Mission Control in the Mission Control setting. Help!

    In case anyone is curious, I solved this issue by upgrading to OS X 10.6.4. The brightness and volume function keys now control these functions properly.

  • About Surrogate Key and Dimension Key on OWB 10.2

    Hi, everyone.
    I am using OWB 10.2 and I have a question about Surrogate key and Dimension Key.
    I indicated the foreign key as VARCHAR2 type in Fact Table and Dimension Key as VARCHAR2 type is operated as Primary key in Dimension Table. I made Single Level in Dimension Table.
    I know that Dimension Key stores the surrogate ID for dimension and is the primary key of the table. Also, Surrogate ID should be only NUMBER type.
    So, in this case, Surrogate ID is NUMBER type
    Dimension key should be NUMBER type to store the surrogate ID.
    But, Dimension key also should operate the primary to relate Foreign key as VARCHAR2 type.
    How I can solve this confusing condition?
    Please let me know that.
    JWS

    Hi JWS,
    From a SQL point of view it should not be a problem to join a NUMBER field to a VARCHAR2 field because during execution there will be an implicite cast for the NUMBER value to a VARCHAR2 value. See the example below.
       SELECT * FROM DUAL
       WHERE   1 = '1'From an OWB point of view it is not possible to have a Dimension with an NUMBER value Key that has a relation to a VARCHAR2 value Foreign key in a Fact table. This is caused due to the creation of a Fact table in OWB in which the Foreign keys in it are build from de Dimension tables that refer to them.
    You will loose the reference to the Dimension when changing the type of the Foreign Key.
    To resolve this issue I would advise you to use a Sequence that generates your Surrogate Key (NUMBER type) for the Dimension table and store it in the Primary Key Column (VARCHAR2 type).
    When validating the mapping you will get a warning, but when executing this should give no problems.
    Regards,
    Ilona

  • How to get the private and public key?

    there is my code,i want to get the public key and the private key �Cbut i could not find the the approprite method to solve the problem.
    import java.security.Key;
    import javax.crypto.Cipher;
    import java.security.KeyPairGenerator;
    import java.security.KeyPair;
    import java.security.Security;
    public class PublicExample {
    public static void main(String[] args) throws Exception {
    if (args.length != 1) {
    System.err.println("Usage:java PublicExample <text>");
    System.exit(1);
    byte[] plainText = args[0].getBytes("UTF8");
    System.out.println("\nStart generating RSA key");
    KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
    keyGen.initialize(512);
    KeyPair key = keyGen.generateKeyPair();
    System.out.println("Finish generating RSA key");
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
    //System.out.println("\n" + cipher.getProvider().getInfo());
    System.out.println("\nStart encryption");
    cipher.init(Cipher.ENCRYPT_MODE, key.getPublic());
    byte[] cipherText = cipher.doFinal(plainText);
    System.out.println("Finish encryption:");
    System.out.println(new String(cipherText, "UTF8"));
    System.out.println("\nStart decryption");
    cipher.init(Cipher.DECRYPT_MODE, key.getPrivate());
    /*i want to get the private and public key in this method ,but i found the result was not
    the one i expected to get,how to solve the problem?
    thanks in advance!
    System.out.println("private key:" + key.getPrivate().toString());
    System.out.println("public key:" + key.getPublic().toString());
    byte[] newPlainText = cipher.doFinal(cipherText);
    System.out.println("Finish decryption:");
    System.out.println(new String(newPlainText, "UTF8"));
    thanks in advance!

    System.out.println("private key:" +
    " + key.getPrivate().toString());
    System.out.println("public key:" +
    + key.getPublic().toString());
    key.getPrivate() returns an instance of PrivateKey and key.getPublic() returns an instance of PublicKey. Since PublicKey and PrivateKey are interfaces then they will return one of the concrete implementations. Check out the Javadoc for PublicKey and PrivateKey.
    When you know which concreate implemenation you have then you can use the methods on that object (by appropriate casting) to find the information you want.

  • Arrow Left key and arrow Up key and fn key not working properly !? Lenovo G580 PLEASE HELP x_x !

    Hi guys i have a Lenovo G580 im not sure which version but i can tell you its intel i.3  and its got usb3.0 on it and 500gb hdd. 2.20Ghz  4.00RAM.   
    been days that i try to solve my Fn Key problem and also the arrow left and arrow up keys < i was using Win8 and downgraded to Win7 last week and that problem has occured since ,it misbehaves and it only works for a short amount of time it randomly works those keys FN.arrow up/left keys randomly they work , i upgraded again to Win8.1 now for the first few boots evrything worked well fn key and arrow keys np.< and now again it stops working.. and btw. whenever i press hard against it it would work pressing down the fn and arrow left/up keys when i press really hard it works but then again it doesnt Soo end of the story its not functioning properly and i have Energy management and Display driver HD 3000 installed and i still got this problem .. is there any fix to this anyone please !? 

    Hey mate the keys are faulty nothing can fix it except for buying a new Replacement! , i fixed the problem simply by Replacing the KEYBOARD !  i went downtown and looked for a g580 keyboard and they didnt exactly have the same version g580 they had c or b580 i dont remmber what letter it was sorry ! but the thing is the whole keyboard layout of many Lenovo Laptops are the same just look one thats the same, cause mine wasnt for G580 but the thing is its still working perfectly ! only problem is the Screws didnt fit i had to cut out the sides of the screw hole thingies to make the keyboard fit in well in my G580 , Simply put all you need is a new keyboard replacement buy one they cost between 20-40$ worth it cause you wont have any faulty keys anymore evrything will work fine. no need to reinstall anything just replace it with new Keyboard. and Plus its easy to replace it by yourself. i replaced mine by myself easily. Problem fixed.

  • Disable Mouse and other Keys except Number and Directional keys in a screen

    Hi all,
    Recently we have developed a sceen program as per the requirements of client who are used to enter meter readings using only Enter key. They used to give Enter key to give meter readings, date of meter reading, meter reading note and consumption in their legacy system.
    Though we developed the screen as per the requirements with all validations checking simultaneously which are required but we failed to handle mouse and other keys as we have not found any specific events occured by the keys.
    Now some of the meter readers are using mouse and other keys and because of this our code is getting failed and no validations are working at all. So we want to disable the mouse and other keys except Number keys and Directional Keys while we are in the screen so that they are bound to work with the Enter and NumKeys as per their requirements.
    Please help me with an idea or code snippet by which we can solve the problem. <removed by moderator>
    - Arghya Das,
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:46 PM

    Hi,
    Just go through this link, it would be helpful...
    [http://help-abap.blogspot.com/2008/10/alv-disable-delete-key-on-keyboard-in.html]
    <removed by moderator>
    Thank You,
    Regards
    Pradeep
    Edited by: Thomas Zloch on Aug 10, 2011 12:50 PM

Maybe you are looking for

  • Error when export report to PDF with a none standard Windows font

    Hi, I got this error when trying to export PDF under VS2008 with an special true type font in the code behind. The error says: ...temp_9550ab94-02fc-4362-b259-cc6de8d6c04b {32E546F5-C6A3-44FC-B8EF-D5E37A1118FA}.rpt:\nOperation not yet implemented. In

  • 2nd onwards play plays only last frame of MC within MC

    Flash CS5 Hi, I have an animation where a car travels across the scene then its car door opens at the end of the sequence. Other vehicles also move. The car is a MovieClip, (car MC) in that MC’s timeline are layers for indicator lights and brake ligh

  • Position of control

    Hi All, I need to know the position of the control on the front panel wrt the screen and not the panel. Currently if I have a graph on a FP and I use the property "Position", it returns the top and the left poisiton of the control wrt the panel. I ne

  • 11g on Oracle Ent Linux ./runInstaller fails: Error: can't open display:...

    X-server stuff is killing me... As root: [root@blackbox ~]# xclock the xclock starts right up. [root@blackbox ~]# su - oracle [oracle@blackbox ~]$ /usr/bin/xclock xclock DOES NOT start. Permissions are fine and command just sits there until Ctl-C to

  • Sort array method...

    Hi all, I have a float array of many rows and two columns. I was wondering whether it is possible to sort this array with calls of java api, just be specifing the column index number. Thank you.