[Solved] ncmpcpp & Bash Colors?

I'm posting this in the newbie corner, because I suspect that it's a really noob question.  Plus, this is my first post:
I'm messing around with ncmpcpp, trying to get it looking nice.  I found the "post your ncmpcpp config" thread, and found a couple of configurations that I really liked... mostly because of the color schemes.  So, I tryied copying the configs linked, and the colors end up really different on my screen.
At first I thought it was something to do with the config file, but I don't think so anymore... I've tried looking for bash color schemes, but haven't found anything that really seemed to do what I wanted.
Example:
See the config found in this post: linky
Look at the linked screenshot, and compare it to what I see on my machine:
My machine
What I've got: rxvt-Unicode-256color, ncmpcpp.
So, what's the stupid little detail that I'm missing?
Last edited by d3snoopy (2010-08-29 01:18:26)

There is a page on the Wiki detailing how you can contribute: http://wiki.archlinux.org/index.php/Getting_Involved
You can also donate, if you would like to make a monetary contribution.
Essentially, there are any number of avenues for you to support Arch; it depends on your skills and your enthusiasm. Read the Wiki, become as familiar as you can with the Arch Way and then lend a hand where you feel best able to help out - all and any contributions are welcomed if they are consistent with the Arch philosophy.

Similar Messages

  • [Solved] Ncmpcpp Visualizer Failed To Load (Blank)

    I've install ncmpcpp and mpd and I've followed each guide to enable visualization. Unfortunately I don't know what have cause it to failed to load.
    Everytime I hit '9' to reveal it, it just showing blank terminal..for your information all of my songs just played fine.
    I used config from one of our member via this thread. here is my .ncmpcpp/config:
    ##### connection settings #####
    mpd_host = "localhost"
    mpd_port = "6600"
    mpd_music_dir = "/home/drfreddy/Music"
    mpd_connection_timeout = "5"
    mpd_crossfade_time = "1"
    mpd_communication_mode = "notifications" (polling/notifications)
    visualizer_fifo_path = "/tmp/mpd.fifo"
    visualizer_output_name = "my_fifo"
    visualizer_sync_interval = "1"
    visualizer_type = "wave" (spectrum/wave)
    system_encoding = "utf-8"
    ##### delays #####
    playlist_disable_highlight_delay = "5"
    message_delay_time = "4"
    # Playlist
    song_columns_list_format = "(7f)[cyan]{l} (25)[blue]{a} (40)[red]{t|f} (30)[magenta]{b}"
    song_list_format = "{$3[%l]$9} {$5%a$9} - {$2%t$9} - {$6%f$9}"
    now_playing_prefix = "$b$1» "
    now_playing_suffix = "$/b"
    playlist_display_mode = "columns" (classic/columns)
    autocenter_mode = "yes"
    centered_cursor = "yes"
    cyclic_scrolling = "yes"
    mouse_list_scroll_whole_page = "no"
    # # Bars
    song_status_format = "{%a - }{%t - }{%b}"
    progressbar_look = "─╼ "
    titles_visibility = "no"
    header_visibility = "no"
    statusbar_visibility = "yes"
    # Browser
    browser_playlist_prefix = "$2plist »$9 "
    browser_display_mode = "classic" (classic/columns)
    # Colors
    discard_colors_if_item_is_selected = "yes"
    header_window_color = "default"
    volume_color = "cyan"
    state_line_color = "white"
    state_flags_color = "green"
    main_window_color = "default"
    color1 = "cyan"
    color2 = "black"
    main_window_highlight_color = "red"
    progressbar_color = "cyan"
    statusbar_color = "white"
    active_column_color = "red"
    visualizer_color = "cyan"
    # Others
    song_window_title_format = "MPD: {%a > }{%t}|{%f}"
    search_engine_display_mode = "columns" (classic/columns)
    follow_now_playing_lyrics = "yes"
    display_screens_numbers_on_start = "no"
    user_interface = "alternative" (classic/alternative)
    And here is my .mpdconf:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/drfreddy/Music/"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "~/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "~/.mpd/database"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    #log_file "~/.mpd/log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    #pid_file "~/.mpd/pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    #state_file "~/.mpd/state"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "drfreddy"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    gapless_mp3_playback "yes"
    # Setting "restore_paused" to "yes" puts MPD into pause mode instead
    # of starting playback after startup.
    #restore_paused "no"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. The complete list of possible values can be
    # found in the mpd.conf man page.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "Beats by Dr. Freddy"
    device "hw:0,0" # optional
    format "44100:16:2" # optional
    mixer_type "software" # optional
    mixer_device "default" # optional
    mixer_control "PCM" # optional
    mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## url "http://example.com" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Client TCP keep alive #######################################################
    # For clients connected by TCP on supported platforms.
    # Allows detection of dangling connections due to clients disappearing from
    # the network without closing their connections.
    # This is not usually necessary but can be useful in cases such as wifi connectected
    # clients that go in and out of network range or turn off wifi without closing their
    # connections. Combined with low max_connections this can soon cause clients to not
    # be able to connect.
    # Enable tcp keepalive on new client connections (default is "no")
    #tcp_keep_alive "no"
    # Time in seconds since the last communication on the connection and before
    # the keepalive probing is started. (default is 7200 seconds)
    #tcp_keep_alive_idle "7200"
    # Interval in seconds between keepalive probes, once a probe started.
    # (default is 75 seconds)
    #tcp_keep_alive_interval "75"
    # Number of failed probes before the connection is pronounced dead and
    # the connection is closed. (default is 9 times)
    #tcp_keep_alive_count "9"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    audio_output {
    type "fifo"
    name "my_fifo"
    path "/tmp/mpd.fifo"
    Can somebody tell me how to enable the visualization? Am I missing something?
    Last edited by Archer1X (2013-02-07 10:48:34)

    Nevermind..got it working after configured that I have to put this line in .ncmpcpp/config:
    visualizer_look = "+|"
    Anybody have a better look for the visualizer?
    I also have tried several figures like "=="..hmm..kinda like it..
    Last edited by Archer1X (2013-02-07 10:49:13)

  • [Solved] Yaourt + bash problem?

    Hello.
    For couple of weeks I am occasionally seeing a strange problem.
    When I use Yaourt I get some issues that I suspect might be caused by some bash configuration problem.
    Here is the output:
    $ yaourt -Syua
    You are not allowed to launch pacman with sudonPlease enter root password
    Password:
    :: Synchronizing package databases...
    core 37.1K 3.6M/s 00:00:00 [############################################] 100%
    extra 466.7K 467.0K/s 00:00:01 [############################################] 100%
    community 430.5K 824.4K/s 00:00:01 [############################################] 100%
    archlinuxfr is up to date
    aspell-sk: up to date
    bleachbit-svn: up to date
    argyllcms: up to date
    exfalso: up to date
    cairo-ubuntu: up to date
    eclipse-classic: not found on AUR
    doublecmd-svn: (local=3050-1 aur=3047-1)
    caffeine: (ignoring package upgrade)
    firefox4: up to date
    florence: up to date
    freetype2-ubuntu: up to date
    gnome-theme-bamboo-zen: up to date
    gnome-theme-eco: up to date
    gnome-theme-ellanna: up to date
    gnome-theme-exotic: up to date
    gnome-theme-industrial: up to date
    gnome-theme-infinity: up to date
    gnome-theme-orange: up to date
    gnome-theme-step-into-freedom: up to date
    gnome-theme-showtime: up to date
    gnome-theme-tropical: up to date
    gnome-theme-ubuntu-sunrise: up to date
    gnome-theme-wild-shine: up to date
    google-earth: up to date
    google-talkplugin: up to date
    gtk-candido-engine: up to date
    graveman: up to date
    gnome-theme-airlines: up to date
    ld-lsb: up to date
    gwget: up to date
    libjpeg: not found on AUR
    libjpeg6: up to date
    fontconfig-ubuntu: up to date
    murrine-themes-collection: up to date
    packer: (local=20110305-1 aur=20110301-1)
    openssl-compatibility: up to date
    phatch: up to date
    gnome-theme-split: up to date
    libxft-ubuntu: up to date
    pidgin-gtalksharedstatus: up to date
    qgtkstyle-svn: not found on AUR
    rawtherapee-hg: (local=374-1 aur=201-1)
    qshntoolsplit: up to date
    remobo: up to date
    remotedroid-server: up to date
    ttf-ms-fonts: up to date
    humanity-icons: up to date
    ttf-ubuntu-family-fonts: not found on AUR
    virtualbox-ext-oracle: up to date
    util-linux-ng: not found on AUR
    teamviewer: up to date
    xcalib: up to date
    gnome-color-manager: up to date
    gnome-theme-aquadreams: up to date
    xxe: up to date
    ==> Package upgrade only (new release):
    core/mkinitcpio 0.6.8-1 1 -> 2
    extra/krusader 2.3.0beta1-2 2 -> 3
    extra/mplayer 32792-2 2 -> 3
    extra/network-manager-applet 0.8.2-2 2 -> 3
    community/jre 6u24-1 1 -> 2
    community/jdk 6u24-1 1 -> 2
    aur/android-sdk r10-1 1 -> 2
    ==> Software upgrade (new version) :
    core/dhcpcd 5.2.10-1 -> 5.2.11-1
    core/iw 0.9.20-1 -> 0.9.22-1
    core/ncurses 5.7-4 -> 5.8-1
    core/kernel26 2.6.37.1-1 -> 2.6.37.2-1
    core/kernel26-headers 2.6.37.1-1 -> 2.6.37.2-1
    core/libmpc 0.8.2-3 -> 0.9-1
    core/ppl 0.11-1 -> 0.11.2-1
    core/shadow 4.1.4.2-4 -> 4.1.4.3-1
    extra/libgl 7.10.0.git20110215-1 -> 7.10.1-1
    extra/ati-dri 7.10.0.git20110215-1 -> 7.10.1-1
    extra/kdelibs 4.6.0-3 -> 4.6.1-1
    extra/oxygen-icons 4.6.0-1 -> 4.6.1-1
    extra/kdebase-runtime 4.6.0-2 -> 4.6.1-1
    extra/kdebase-workspace 4.6.0-3 -> 4.6.1-1
    extra/kdepimlibs 4.6.0-1 -> 4.6.1-1
    extra/mesa 7.10.0.git20110215-1 -> 7.10.1-1
    extra/mobile-broadband-provider-info 20100510-1 -> 20110218-1
    extra/thunderbird 3.1.7-3 -> 3.1.9-1
    community/wine 1.3.14-1 -> 1.3.15-1
    archlinuxfr/yaourt 0.9.5.1-1 -> 0.9.5.2-1
    aur/desktop-privileges 0.1-2 -> 0.2-2
    aur/xulrunner-system-cairo 1.9.2.13-4 -> 1.9.2.15-1
    ==> New package :
    /usr/bin/yaourt: eval: line 24: syntax error near unexpected token `required'
    /usr/bin/yaourt: eval: line 24: `echo (required by $requiredbypkg)'
    core/util-linux 2.19-4
    ==> Continue upgrade ? [Y/n]
    ==> [V]iew package detail [M]anually select packages
    ==> --------------------------------------------------
    ==> n
    Please note the first problem:
    "You are not allowed to launch pacman with sudonPlease enter root password"
    I checked the line of code and it reads:
    "echo -e $(eval_gettext 'You are not allowed to launch $command with sudo\nPlease enter root password') 1>&2"
    So obviously, the "\n" direction is not respected here. I tried to reproduce this problem in my bash prompt, but there everything seems to work as expected.
    $ echo -e "aaaa\nbbbb"
    aaaa
    bbbb
    After upgrade to the latest Yaourt version (0.9.5.2-1) this is gone and Yaourt only promps like this:
    $ yaourt -S yaourt
    Password:
    But there is second problem:
    /usr/bin/yaourt: eval: line 24: syntax error near unexpected token `required'
    /usr/bin/yaourt: eval: line 24: `echo (required by $requiredbypkg)'
    Which is still persistent and was not solved by version upgrade. I have feeling in the gut, that it might have the same culprit.
    I also have second Archlinux box (notebook) with installation that is very similar to this one. I have cloned it, but removed some packages. Most of the system is the same. This problem is not present there and Yaourt works fine.
    I know that Yaourt is not officially supported and there are other frontends, but I prefer Yaourt.
    Does anyone have idea what might be the problem?
    Thanks.
    Last edited by Raqua (2011-03-10 18:46:04)

    With regard to the sudo problem:  sudo recently underwent an upgrade that featured a rewriting of its plugins, including /etc/sudoers; I noticed the same issues for a couple days.  Add your user to the "wheel" group again, and it should clear things up.

  • [SOLVED] tmux bash completion

    Hey,
    Looking through internet, I didn't find any solution. I want to be able to hit Tab on a terminal to complete my commands, like I do a million times a day.
    Except it doesn't work on tmux, Tab just does nothing at all.
    Here is my tmux.conf :
    #Make zsh default shell to use
    # set-option -g default-shell /bin/zsh
    # use UTF8
    set -g utf8
    set-window-option -g utf8 on
    # make tmux display things in 256 colors
    set -g default-terminal "screen-256color"
    # set scrollback history
    set -g history-limit 3000
    # shorten command delay
    set -sg escape-time 1
    # set window and pane index to 1 (0 by default)
    set-option -g base-index 1
    setw -g pane-base-index 1
    # reload ~/.tmux.conf
    bind -n C-q source-file ~/.tmux.conf \; display "Reloaded!"
    # Select and open URL
    bind -n C-u run tmux-url-select
    unbind-key Tab
    # split window horizontally and vertically
    bind -n C-v split-window -h
    bind -n C-h split-window -v
    # Make the current window the first window
    bind -n C-T swap-window -t 1
    # map Vi movement keys as pane movement keys
    bind -n C-Left select-pane -L
    bind -n C-Down select-pane -D
    bind -n C-Up select-pane -U
    bind -n C-Right select-pane -R
    # and use C-h and C-l to cycle thru panes
    bind -n C-o select-window -t :-
    bind -n C-i select-window -t :+
    # resize panes using PREFIX H, J, K, L
    bind -n C-N resize-pane -L 5
    bind -n C-J resize-pane -D 5
    bind -n C-K resize-pane -U 5
    bind -n C-L resize-pane -R 5
    # explicitly disable mouse control
    setw -g mode-mouse off
    set -g mouse-select-pane on
    set -g mouse-resize-pane on
    set -g mouse-select-window on
    # Copy & Paste
    # provide access to the clipboard for pbpaste, pbcopy
    #set-option -g default-command "reattach-to-user-namespace -l zsh"
    set-window-option -g automatic-rename on
    # use vim keybindings in copy mode
    setw -g mode-keys vi
    # setup 'v' to begin selection as in Vim
    bind-key -t vi-copy v begin-selection
    bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
    # update default binding of 'Enter' to also use copy-pipe
    unbind -t vi-copy Enter
    bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
    bind y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
    bind C-y run 'tmux save-buffer - | reattach-to-user-namespace pbcopy '
    # set some pretty colors
    #set pane colors - hilight the active pane
    set-option -g pane-border-fg colour235 #base02
    set-option -g pane-active-border-fg red #base01
    # colorize messages in the command line
    set-option -g message-bg black #base02
    set-option -g message-fg brightred #orange
    # Status Bar
    set-option -g status off # turn the status bar on
    set -g status-utf8 on # set utf-8 for the status bar
    set -g status-interval 5 # set update frequencey (default 15 seconds)
    set -g status-justify centre # center window list for clarity
    # set-option -g status-position top # position the status bar at top of screen
    # visual notification of activity in other windows
    setw -g monitor-activity off
    set -g visual-activity off
    # set color for status bar
    set-option -g status-bg colour0
    set-option -g status-fg yellow #yellow
    set-option -g status-attr dim
    # set window list colors - red for active and cyan for inactive
    set-window-option -g window-status-fg brightblue #base0
    set-window-option -g window-status-bg colour0
    #set-window-option -g window-status-attr dim
    set-window-option -g window-status-current-fg red #orange
    set-window-option -g window-status-current-bg colour235
    set-window-option -g window-status-current-attr bright
    # show session name, window & pane number, date and time on right side of
    # status bar
    #set -g status-right-length 60
    #set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"
    Anyone with a solution ?
    Thanks !
    Last edited by Kolibry (2014-10-19 20:56:04)

    I restarted the server. I also tried to skip "set -sg escape-time 1". My current shell is bash, and I can't tell you what progress I've made because I haven't made any
    EDIT : I didn't understand "rc files", I just get it now. Here is my bashrc :
    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
    export EDITOR=vim
    export LIBVA_DRIVER_NAME=vdpau
    export VDPAU_DRIVER=r600
    export PATH=$PATH:/home/kolibry/Scripts
    source tmux-completion.sh
    source tmux-bash-completion.sh
    ansiblocks
    bind 'set completion-ignore-case on'
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi
    xhost +local:root > /dev/null 2>&1
    complete -cf sudo
    shopt -s cdspell
    shopt -s checkwinsize
    shopt -s cmdhist
    shopt -s dotglob
    shopt -s expand_aliases
    shopt -s extglob
    shopt -s histappend
    shopt -s hostcomplete
    shopt -s nocaseglob
    export HISTSIZE=10000
    export HISTFILESIZE=${HISTSIZE}
    export HISTCONTROL=ignoreboth
    alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
    alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
    alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
    alias grep='grep --color=tty -d skip'
    alias cp="cp -i" # confirm before overwriting something
    alias df='df -h' # human-readable sizes
    alias free='free -m' # show sizes in MB
    alias np='vim PKGBUILD'
    alias starwars="telnet towel.blinkenlights.nl"
    alias inxi="inxi -Fxzc2"
    alias weechat="weechat-curses"
    alias news='newsbeuter'
    alias zik="mpd && ncmpcpp"
    alias version="lsb_release -si -sr -sc"
    alias fdisk="sudo fdisk -l"
    alias formater="sudo mkfs.vfat -F 32"
    ### Dropbox ###
    #alias ./dropbox_uploader.sh upload="upload dropbox"
    #alias ./dropbox_uploader.sh download="download dropbox"
    conf() {
    case $1 in
    bspwm) vim ~/.config/bspwm/bspwmrc ;;
    sxhkd) vim ~/.config/sxhkd/sxhkdrc ;;
    conky) vim ~/.conkyrc ;;
    menu) vim ~/.config/openbox/menu.xml ;;
    mpd) vim ~/.mpd/mpd.conf ;;
    mutt) vim ~/.mutt/muttrc ;;
    ncmpcpp) vim ~/.ncmpcpp/config ;;
    moc) sudo vim /home/kolibry/.moc/config ;;
    moctheme) sudo vim /home/kolibry/.moc/themes/kolibry_theme ;;
    weechat) vim ~/.weechat/weechat.conf ;;
    pacman) sudo vim /etc/pacman.conf ;;
    mirrorlist) vim /etc/pacman/mirrorlist ;;
    termite) vim ~/.config/termite/config ;;
    ranger) vim ~/.config/ranger/rc.conf ;;
    rifle) vim ~/.config/ranger/rifle.conf ;;
    tmux) vim ~/.tmux.conf ;;
    vim) vim ~/.vimrc ;;
    compton) vim ~/.config/compton.conf ;;
    xinit) vim ~/.xinitrc ;;
    xresources) vim ~/.Xresources && xrdb ~/.Xresources ;;
    zathura) vim ~/.config/zathura/zathurarc ;;
    tint2) vim ~/.config/tint2/tint2rc ;;
    bashrc) vim ~/.bashrc && source ~/.bashrc ;;
    dwb) vim ~/.config/dwb/default/quickmarks ;;
    grub) sudo vim /etc/default/grub.cfg ;;
    mupen64plus) vim ~/.config/mupen64plus/mupen64plus.cfg ;;
    dunst) vim ~/.config/dunst/dunstrc ;;
    *) echo "Unknown application: $1" ;;
    esac
    function mkdircd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
    function cdl () { cd "$@" && ls; }
    alias dpi="xdpyinfo | grep resolution"
    alias mocp="mocp -T kolibry_theme"
    ### Gestion du système ###
    # Créer une liste des paquets installés :
    alias pkglist='comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist'
    # Créer une liste des paquets AUR installés :
    alias pkglist-aur='pacman -Qqm > pkglist-aur'
    # Restaurer la liste des paquets :
    alias installpkglist='yaourt -S $(< pkglist)'
    # Mise à jour des miroirs et mettre à jour le système :
    alias update='sudo pacman-mirrors -g && sudo pacman -Syu'
    #Mettre à jour le système :
    alias maj='sudo pacman -Syu'
    # Installer un paquet :
    alias installer='sudo pacman -S'
    # Effacer un paquet :
    alias supprimer='sudo pacman -R'
    # Paquets orphelins :
    alias orphans='sudo pacman -Qdt'
    # Infos paquet :
    alias info='sudo pacman -Si'
    # Rafraichissement de la liste des paquets:
    alias refresh='sudo pacman -Syy'
    # cacheclean -v 2 ,deletes all but the last 2 versions of installed packages the pacman cache:
    alias c-c='sudo cacheclean -v 2'
    # yaourt -Syu by typing yaur :
    alias majaur='yaourt -Syu --aur'
    # yaourt -S by typing yS :
    alias install='yaourt -S'
    # yaourt -Rsn , which fully deletes packages - see above :
    alias remove='yaourt -Rsn'
    # Date dernière maj
    alias lastup='echo -e "\e[1;31mLast Upgraded:\e[0m " ; sort /var/log/pacman.log | tail -n 50 | grep upgraded | cut -c 1-18 | uniq -d'
    #Détails dernière maj
    alias lastupd='echo -e "\e[1;31mLast upgraded:\e[0m " ; cat /var/log/pacman.log | grep upgraded | tail -n 40'
    # Recharger URxvt config
    alias x='xrdb .Xresources'
    # Convertir vidéo youtube en fichier audio
    alias ogg='youtube-dl -x --audio-format vorbis --audio-quality 0'
    # mpv en couleurs
    alias mpv='mpv --msg-module'
    # Nettoyer le terminal
    alias c='clear'
    #Restaurer tmux
    alias res='sh /home/kolibry/Scripts/restoretmux'
    # Eteindre le PC
    alias stop='shutdown now'
    # Ecran externe
    alias externe='xrandr --output VGA-0 --mode 1600x900 --output LVDS --off'
    # Ecran interne
    alias interne='xrandr --output LVDS --mode 1366x768 --output VGA-0 --off'
    # Touchpad
    alias touchpadon='synclient TouchpadOff=0'
    alias touchpadoff='synclient TouchpadOff=1'
    # Test scroll rapidité terminal
    alias testterminal='for i in {0..9999}; do echo -n "------$i-"; done'
    ##fun&entertaining
    alias insults='wget http://www.randominsults.net -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;";'
    alias matrix='echo -e "\e[32m"; while :; do for i in {1..16}; do r="$(($RANDOM % 2))"; if [[ $(($RANDOM % 5)) == 1 ]]; then if [[ $(($RANDOM % 4)) == 1 ]]; then v+="\e[1m $r "; else v+="\e[2m $r "; fi; else v+=" "; fi; done; echo -e "$v"; v=""; done'
    alias matrix2='echo -e "\e[31m"; while $t; do for i in `seq 1 30`;do r="$[($RANDOM % 2)]";h="$[($RANDOM % 4)]";if [ $h -eq 1 ]; then v="\e[1m $r";else v="\e[2m $r";fi;v2="$v2 $v";done;echo -e $v2;v2="";done;'
    alias matrix3='COL=$(( $(tput cols) / 2 )); clear; tput setaf 2; while :; do tput cup $((RANDOM%COL)) $((RANDOM%COL)); printf "%$((RANDOM%COL))s" $((RANDOM%2)); done'
    alias matrix4='echo -ne "\e[32m" ; while true ; do echo -ne "\e[$(($RANDOM % 2 + 1))m" ; tr -c "[:print:]" " " < /dev/urandom | dd count=1 bs=50 2> /dev/null ; done'
    alias matrix5='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=lcase,unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
    alias colorrainbow='yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .01; done'
    alias roulette='[ $[ $RANDOM % 6 ] == 0 ] && echo Die || echo Live' # command line Russian roulette
    alias einsteiny='A=1;B=100;X=0;C=0;N=$[$RANDOM%$B+1];until [ $X -eq $N ];do read -p "N between $A and $B. Guess? " X;C=$(($C+1));A=$(($X<$N?$X:$A));B=$(($X>$N?$X:$B));done;echo "Took you $C tries, Einstein";' # numbers guessing game
    alias etchasketch='c=12322123;x=20;y=20;while read -sn1 p;do k=${c:(p-1)*2:2};let x+=$((k/10-2));let y+=$((k%10-2));echo -en \\033[$y\;"$x"HX;done' # use the 1 2 3 and 4 keys to move the cursor around the screen (It's an etch-a-sketch for your terminal!)
    alias excuses='echo `telnet bofh.jeffballard.us 666 2>/dev/null` |grep --color -o "Your excuse is:.*$"' # excuses
    alias freechess='telnet fics.freechess.org 5000' # connects to a telnet server for free internet chess
    alias funfacts='wget http://www.randomfunfacts.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;";'
    alias 99bottles='x="bottles of beer";y="on the wall";for b in {99..1};do echo "$b $x $y, $b $x. Take one down pass it around, $(($b-1)) $x $y"; sleep 3;done'
    alias addictive='count="1" ; while true ; do read next ; if [[ "$next" = "$last" ]] ; then count=$(($count+1)) ; echo "$count" ; else count="1" ; echo $count ; fi ; last="$next" ; done' # simple addicting bash game
    alias busy='for i in `seq 0 100`;do timeout 6 dialog --gauge "Install..." 6 40 "$i";done' # pretend to be busy in office to enjoy a cup of coffee
    alias busy2='my_file=$(find /usr/include -type f | sort -R | head -n 1); my_len=$(wc -l $my_file | awk "{print $1}"); let "r = $RANDOM % $my_len" 2>/dev/null; vim +$r $my_file'
    alias busy3='cat /dev/urandom | hexdump -C | highlight ca fe 3d 42 e1 b3 ae f8 | perl -MTime::HiRes -pnE "Time::HiRes::usleep(rand()*1000000)"'
    ### Fonction scrot + upload ###
    imgur-upl() {
    curl -s -F image=@"$1" -F "key=1913b4ac473c692372d108209958fd15" \
    http://api.imgur.com/2/upload.xml | grep -Eo "<original>(.)*</original>" \
    | grep -Eo "http://i.imgur.com/[^<]*"
    # Back up file
    bu() {
    cp -a "$1" "$1.$(date +%d.%m.%y-%H:%M)"
    # ex - archive extractor
    # usage: ex <file>
    ex ()
    if [ -f $1 ] ; then
    case $1 in
    *.tar.bz2) tar xjf $1 ;;
    *.tar.gz) tar xzf $1 ;;
    *.bz2) bunzip2 $1 ;;
    *.rar) unrar x $1 ;;
    *.gz) gunzip $1 ;;
    *.tar) tar xf $1 ;;
    *.tbz2) tar xjf $1 ;;
    *.tgz) tar xzf $1 ;;
    *.zip) unzip $1 ;;
    *.Z) uncompress $1;;
    *.7z) 7z x $1 ;;
    *) echo "'$1' cannot be extracted via ex()" ;;
    esac
    else
    echo "'$1' is not a valid file"
    fi
    ##### Couleurs prompt ####
    #Black \e[0;30m
    #Blue \e[0;34m
    #Green \e[0;32m
    #Cyan \e[0;36m
    #Red \e[0;31m
    #Purple \e[0;35m
    #Brown \e[0;33m
    #Gray \e[0;37m
    #Dark Gray \e[1;30m
    #Light Blue \e[1;34m
    #Light Green \e[1;32m
    #Light Cyan \e[1;36m
    #Light Red \e[1;31m
    #Light Purple \e[1;35m
    #Yellow \e[1;33m
    #White \e[1;37m
    #NC='\e[0m' # No Color
    # background colors
    #RED='\e[41m'
    #BLUE='\e[44m'
    #CYAN='\e[46m'
    #GREEN='\e[42m'
    #YELLOW='\e[43m'
    # prompt
    #PS1="\[\e[0;33m\]┌─[\[\e[1;31m\u\e[0;33m\]]──[\[\e[0;34m\]${HOSTNAME%%.*}\[\e[0;33m\]]\[\e[0;32m\]:\w$\[\e[0;33m\]\n\[\e[0;33m\]└──\[\e[0;33m\]>>\[\e[0m\]"
    #prompt essai
    PS1="\[\e[0;34m\]┌─[\[\e[0;31mo_o\e[0;34m\]]──[\[\e[0;33m\]\w\[\e[0;34m\]]\[\e[0;34m\]\n\[\e[0;34m\]└──\[\e[0;34m\][\[\e[0m\]"
    # prompt robot
    #PS1='┌─[\e[0;31mo_o\e[m] ─ [\e[0;36m\w\e[m]\n└─|'
    BROWSER=/usr/bin/xdg-open
    ### Man pages en couleur ###
    man() {
    env LESS_TERMCAP_mb=$(printf "\e[1;31m") \
    LESS_TERMCAP_md=$(printf "\e[1;31m") \
    LESS_TERMCAP_me=$(printf "\e[0m") \
    LESS_TERMCAP_se=$(printf "\e[0m") \
    LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
    LESS_TERMCAP_ue=$(printf "\e[0m") \
    LESS_TERMCAP_us=$(printf "\e[1;32m") \
    man "$@"
    Last edited by Kolibry (2014-10-19 20:40:15)

  • [solved]Gentoo Bash Prompt not working in X

    Hi
    I'm using this .bashrc from AUR:
    http://aur.archlinux.org/packages.php?ID=18418 
    it is said to be the standard bashrc from gentoo.
    It works with xterm, but I now installed urxvt (256 color) and it doesn't work any more, my prompt ist not colored any more.
    I'm not familiar with bash scripting, perhaps someone could have a look.
    The Problem ist not my .Xdefaults, I tried with an empty one. I also did "source .bashrc".
    Last edited by lustikus (2010-01-11 12:24:28)

    thanks for testing it.
    This is my .bashrc. I did not change anything:
    # /etc/bash/bashrc
    # This file is sourced by all *interactive* bash shells on startup,
    # including some apparently interactive shells such as scp and rcp
    # that can't tolerate any output. So make sure this doesn't display
    # anything or bad things will happen !
    # Test for an interactive shell. There is no need to set anything
    # past this point for scp and rcp, and it's important to refrain from
    # outputting anything in those cases.
    if [[ $- != *i* ]] ; then
    # Shell is non-interactive. Be done now!
    return
    fi
    # Bash won't get SIGWINCH if another process is in the foreground.
    # Enable checkwinsize so that bash will check the terminal size when
    # it regains control. #65623
    # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
    shopt -s checkwinsize
    # Enable history appending instead of overwriting. #139609
    shopt -s histappend
    # Change the window title of X terminals
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
    screen)
    PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
    esac
    use_color=false
    # Set colorful PS1 only on colorful terminals.
    # dircolors --print-database uses its own built-in database
    # instead of using /etc/DIR_COLORS. Try to use the external file
    # first to take advantage of user additions. Use internal bash
    # globbing instead of external grep binary.
    safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
    match_lhs=""
    [[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
    [[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
    [[ -z ${match_lhs} ]] \
    && type -P dircolors >/dev/null \
    && match_lhs=$(dircolors --print-database)
    [[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
    if ${use_color} ; then
    # Enable colors for ls, etc. Prefer ~/.dir_colors #64489
    if type -P dircolors >/dev/null ; then
    if [[ -f ~/.dir_colors ]] ; then
    eval $(dircolors -b ~/.dir_colors)
    elif [[ -f /etc/DIR_COLORS ]] ; then
    eval $(dircolors -b /etc/DIR_COLORS)
    fi
    fi
    if [[ ${EUID} == 0 ]] ; then
    PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
    else
    PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
    fi
    alias ls='ls --color=auto'
    alias grep='grep --colour=auto'
    else
    if [[ ${EUID} == 0 ]] ; then
    # show root@ when we don't have colors
    PS1='\u@\h \W \$ '
    else
    PS1='\u@\h \w \$ '
    fi
    fi
    # Try to keep environment pollution down, EPA loves us.
    unset use_color safe_term match_lhs
    I also made a screenshot with xterm and urxvt in comparison:

  • How to solve the Embed Color Profile problem...

    Hi Everyone,
    This vijay from Chennai. I have one doubt for rectify the Embed color Profile problem, that's is how can i judges whether the file had Embed Color Profile or not. anyone solve this problem.
    Thanks in Advance.
    -yajiv

    I used another profiles name, because I dont have the old one installed anymore, Youll have to be exact about the letters though.
    And from a prepress-standpoint Id like to point out that removing the profile as opposed to »Convert to Profile« seems a peculiar practice, though of course Your reasons for doing so may be valid indeed.
    You could try:
    var myDocument = app.activeDocument;
    if (myDocument.colorProfileName == "U.S. Web Coated (SWOP) v2") {
    // =======================================================
    var idassignProfile = stringIDToTypeID( "assignProfile" );
    var desc2 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref1 = new ActionReference();
    var idDcmn = charIDToTypeID( "Dcmn" );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idTrgt = charIDToTypeID( "Trgt" );
    ref1.putEnumerated( idDcmn, idOrdn, idTrgt );
    desc2.putReference( idnull, ref1 );
    var idmanage = stringIDToTypeID( "manage" );
    desc2.putBoolean( idmanage, false );
    executeAction( idassignProfile, desc2, DialogModes.NO );
    else {

  • [SOLVED]Midnight commander, Color theme not able to load with root

    Hi all  ,
    I  have moved another step to this whole Arch Linux society, therefore am a newbie.
    I have installed MC(midgnight commander) I got the ini file configured for the color theming
    to deafault supposed everthing should be transparent except for the text offcourse .
    Everything work fine but ......  when I do super user to run MC "sudo mc" It's doesn't
    seems to take afect with the setting within the INI.  Another word the ini only configured for user not root.
    I have tried chmod +x ini and chown for root. Doesn't help.
    Please advise
    Your help would be greatly appreciated.
    Thank You
    Last edited by alpha.arch (2011-08-19 01:14:14)

    You're welcome :-)
    Config files are usually placed in the user's home directory, e.g. /home/karol for me and /root for root. The global configuration (affecting both regular users and root) is in /etc.
    Please remember to mark the thread as solved.

  • [SOLVED]Tilda: configuring colors

    I'd originally posted a question about how to use bright colors in Tilda without bold fonts. I just tried the latest Tilda and it seems that disabling bold fonts no longer disables bright colors, so problem solved.
    Last edited by Xyne (2008-11-30 00:46:35)

    nwoki wrote:Nope, not the gcc package. Am I the only one with this problem?
    Nope, it doesn't work here too, used to work some time ago, not sure when it broke

  • Tips for solving red reddish color problem in Flex2-14

    My flex2-14 screen color was very reddish, so I was trying to calibrate the color using the calibration tool in control panel. However, it is not satisfied.
    I have solved the problem using Intel HD display tool in Control panel.
    Open the Inten HD display tool, then increase blue contrast as 52, increase blue gamma as 51, increase color saturation as 8..
    Then, it would be better..

    I am not sure this..
    Instead of if pls give while and check:
    try{
    while(rsValue.next()) {
    g.setFont(fntHeading);
    g.setColor(Color.red);
    g.drawString("Main Report",200,100);

  • [Solved] ncmpcpp segfault error when XF86Audio{Prev,Play,Next}

    I recently had to reinstall arch to do a dual boot with mac osx for the wifey.  I pulled all my configs down from my github but strangely the multimedia keys, XF86Audio{Prev,Play,Next} weren't working.
    .xbindkeysrc
    "xbacklight -dec 5"
    m:0x0 + c:232
    "xbacklight -inc 5"
    m:0x0 + c:233
    "kbdlight up"
    m:0x0 + c:238
    "kbdlight down"
    m:0x0 + c:237
    "/usr/bin/pulseaudio-ctl up"
    m:0x0 + c:123
    "/usr/bin/pulseaudio-ctl down"
    m:0x0 + c:122
    "/usr/bin/pulseaudio-ctl mute"
    m:0x0 + c:121
    "ncmpcpp toggle"
    m:0x10 + c:172
    XF86AudioPlay
    "ncmpcpp next"
    m:0x10 + c:171
    XF86AudioNext
    "ncmpcpp prev"
    m:0x10 + c:173
    XF86AudioPrev
    I did run showkey and the keycode in order is 165,164,163.
    xev output:
    Outer window is 0x2200001, inner window is 0x2200002
    PropertyNotify event, serial 8, synthetic NO, window 0x2200001,
    atom 0x27 (WM_NAME), time 1367489, state PropertyNewValue
    PropertyNotify event, serial 9, synthetic NO, window 0x2200001,
    atom 0x22 (WM_COMMAND), time 1367489, state PropertyNewValue
    PropertyNotify event, serial 10, synthetic NO, window 0x2200001,
    atom 0x28 (WM_NORMAL_HINTS), time 1367489, state PropertyNewValue
    CreateNotify event, serial 11, synthetic NO, window 0x2200001,
    parent 0x2200001, window 0x2200002, (10,10), width 50, height 50
    border_width 4, override NO
    PropertyNotify event, serial 14, synthetic NO, window 0x2200001,
    atom 0x13b (WM_PROTOCOLS), time 1367489, state PropertyNewValue
    MapNotify event, serial 15, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200002, override NO
    ConfigureNotify event, serial 23, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (0,0), width 178, height 178,
    border_width 1, above 0x14000b8, override NO
    ConfigureNotify event, serial 23, synthetic YES, window 0x2200001,
    event 0x2200001, window 0x2200001, (0,25), width 178, height 178,
    border_width 1, above 0x0, override NO
    ConfigureNotify event, serial 27, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (2880,25), width 178, height 178,
    border_width 1, above 0x14000b8, override NO
    PropertyNotify event, serial 27, synthetic NO, window 0x2200001,
    atom 0x16e (WM_STATE), time 1367489, state PropertyNewValue
    ConfigureNotify event, serial 28, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (0,25), width 178, height 178,
    border_width 1, above 0x14000b8, override NO
    ConfigureNotify event, serial 28, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (8,33), width 710, height 857,
    border_width 1, above 0x14000b8, override NO
    ConfigureNotify event, serial 28, synthetic YES, window 0x2200001,
    event 0x2200001, window 0x2200001, (8,33), width 710, height 857,
    border_width 1, above 0x0, override NO
    ConfigureNotify event, serial 29, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, (8,33), width 710, height 857,
    border_width 1, above 0x1400004, override NO
    MapNotify event, serial 29, synthetic NO, window 0x2200001,
    event 0x2200001, window 0x2200001, override NO
    I ran journalctl -f to see what is happening when I press the three buttons:
    └─╼ journalctl -f
    -- Logs begin at Sat 2015-01-24 22:08:04 PST. --
    Jan 27 13:12:44 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:44 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:45 AetherX kernel: ncmpcpp[27980]: segfault at 0 ip 000000000053e01b sp 00007fffdd7e0840 error 4 in ncmpcpp[400000+1ce000]
    Jan 27 13:12:45 AetherX systemd-coredump[27981]: Process 27980 (ncmpcpp) of user 1000 dumped core.
    Jan 27 13:12:45 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:45 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:46 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:46 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:47 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:47 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:49 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:49 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:50 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:50 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:50 AetherX kernel: ncmpcpp[28164]: segfault at 0 ip 000000000053e01b sp 00007fff28e943f0 error 4 in ncmpcpp[400000+1ce000]
    Jan 27 13:12:50 AetherX systemd-coredump[28165]: Process 28164 (ncmpcpp) of user 1000 dumped core.
    Jan 27 13:12:51 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:51 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:51 AetherX kernel: ncmpcpp[28203]: segfault at 0 ip 000000000053e01b sp 00007fff25251120 error 4 in ncmpcpp[400000+1ce000]
    Jan 27 13:12:52 AetherX systemd-coredump[28204]: Process 28203 (ncmpcpp) of user 1000 dumped core.
    Jan 27 13:12:52 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:52 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:53 AetherX kernel: ncmpcpp[28248]: segfault at 0 ip 000000000053e01b sp 00007fffa9eb8aa0 error 4 in ncmpcpp[400000+1ce000]
    Jan 27 13:12:53 AetherX systemd-coredump[28249]: Process 28248 (ncmpcpp) of user 1000 dumped core.
    Jan 27 13:12:54 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:54 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:55 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:55 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    Jan 27 13:12:56 AetherX kernel: ERROR @wl_dev_intvar_get : error (-1)
    Jan 27 13:12:56 AetherX kernel: ERROR @wl_cfg80211_get_tx_power : error (-1)
    I even tried xmodmap to no avail:
    keycode 165 = XF86AudioPrev
    keycode 164 = XF86AudioPlay
    keycode 163 = XF86AudioNext
    What gives?  The other xbindkeys work well.  What is causing the ncmpcpp segfault or how do I go about finding out more info? 
    This is on a macbook 2013 6,2 on
    └─╼ uname -a
    Linux AetherX 3.18.3-1-ck #1 SMP PREEMPT Fri Jan 16 15:46:26 EST 2015 x86_64 GNU/Linux
    Last edited by frank604 (2015-01-30 07:44:30)

    Wow I feel dumb.  Seems like ncmpcpp changed quite a bit since I last used it (around last Sept!?). Looks like we use mpc instead, example "mpc next" "mpc prev" "mpc toggle".  Marking as solved.

  • ::SOLVED:: change bash prompt while in ssh

    I'm learning how to use bash bit by bit, but came up with a question I'm not certain how to solve.  I learned some time ago about setting the PS1 variable to customize the shell prompt, and have a nice prompt I like using.  However, it would be nice to have the prompt be flagged if I'm logged in through ssh as opposed to directly on the computer itself.  How could I do this?
    One thought I had was to check to see if certain environment variables exist (eg. $SSH_CONNECTION).
    Doing if [ $SSH_CONNECTION ]; then ... fi gives an error about too many arguments.  None of the other SSH related variables seem to be just a number value.  Is there a way to test for the existence of a variable in bash?
    Last edited by beretta (2009-05-07 20:44:06)

    Procyon wrote:What you want is [ -n "$SSH_CONNECTION" ] (variable is set/nonzero length) or the opposite [ -z "$SSH_CONNECTION" ] (variable is not set/zero length)
    Thanks-- that got it.  I was missing the quotes, so it was expanding at the spaces rather than interpreting the entire thing as a string.

  • [SOLVED] Certain emacs colors too dark

    For example, the blue gdb prompt in the gud buffer is too dark against a black background. Is there any way to change this? I believe this is an emacs issue and not a terminal issue, since changing terminal colors color0-color15 doesn't affect that particular text.
    Last edited by nbtrap (2012-02-20 21:50:45)

    I figured this out: Just run
    M-x describe-face
    with the cursor over the font in question. Then one can select to customize the face in the help buffer that appears. Awesome!

  • [SOLVED] Quick bash question (~/.bashrc stuff)

    Hi!
    First I have to say that I have installed Arch few days ago and it's pretty sweet stuff -- but I guess you already have heard that oh-so-many-times!
    So there is it, I would like to change my prompt's color everytime <enter> is pressed in the terminal (well, everytime a new prompt is shown).
    But so far I was only able to change my prompt's color everytime a new terminal is opened, with this code in .bashrc :
    # color changing for the prompt
    colors=("\[\e[0;30m\]" "\[\e[0;34m\]" "\[\e[0;32m\]" "\[\e[0;36m\]" "\[\e[0;31m\]" "\[\e[0;35m\]" "\[\e[0;33m\]" "\[\e[0;37m\]" "\[\e[1;30m\]" "\[\e[1;34m\]" "\[\e[1;32m\]" "\[\e[1;36m\]" "\[\e[1;31m\]" "\[\e[1;35m\]" "\[\e[1;32m\]" "\[\e[1;37m\]")
    let R=$RANDOM%16+0
    color=${colors[$R]}
    prompt="${color}\u@\h:\w\$\[\e[0m\] "
    # the prompt
    PS1=$prompt
    Thanks.
    Last edited by orph (2009-03-01 16:10:57)

    You could use the PROMPT_COMMAND:
    colors=("\[\e[0;30m\]" "\[\e[0;34m\]" "\[\e[0;32m\]" "\[\e[0;36m\]" "\[\e[0;31m\]" "\[\e[0;35m\]" "\[\e[0;33m\]" "\[\e[0;37m\]" "\[\e[1;30m\]" "\[\e[1;34m\]" "\[\e[1;32m\]" "\[\e[1;36m\]" "\[\e[1;31m\]" "\[\e[1;35m\]" "\[\e[1;32m\]" "\[\e[1;37m\]")
    PROMPT_COMMAND='let R=$RANDOM%16+0;color=${colors[$R]};PS1="${color}\u@\h:\w\$\[\e[0m\] "'

  • [solved] ncmpcpp - album sort?

    Have recently set up a headless server for my multimedia needs. Since I control it via ssh I had to install a console music player and have decided on mpd/ncmpcpp. One thing that bugs me is that the Media Library sorts with Artist as the first criteria. Even in the 2-column view where Album takes precedence, it is still Album (sorted by artist), which is kind of silly since I can get that already in the 3 column view. And so it is difficult to access my albums which are compilations of many artists. Is there any way I can have "Album" and see all the songs in that album in the next column?
    Or failing which are there any other console players I can use?
    Last edited by stryder (2011-08-13 13:12:00)

    stryder wrote:
    And so it is difficult to access my albums which are compilations of many artists. Is there any way I can have "Album" and see all the songs in that album in the next column?
    Or failing which are there any other console players I can use?
    Thats what the albumartist tag is for. And ncmpcpp supports this one just fine. just add tag "albumartist = Soundtrack" (for example) on those albums.
    to make ncmpcpp sort media library using this tag, hit ` and then A for albumartist.
    **edit** also make sure, to add the albumartist tag to the supported ones in mpd.conf
    Last edited by Rasi (2011-08-13 08:24:50)

  • [SOLVED[Ncmpcpp music visualizer]

    Hey.
    I've done few search on how to achieve that feature... but can't figure how to get it.
    I have set a path on mpd.conf with the "path" line, and on the ncmpcpp config with i set the path to it.
    What i am doing wrong?
    Last edited by YamiFrankc (2009-11-07 02:41:32)

    need to be using ncmpcpp-git
    //blue/0/~/ grep fifo .ncmpcpp/config
    ## need to use mpd fifo output, whose format parameter
    ## type "fifo"
    ## path "/tmp/mpd.fifo"
    #visualizer_fifo_path = ""
    visualizer_fifo_path = "/tmp/mpd.fifo"
    //blue/0/~/ grep fifo /etc/mpd.conf
    type "fifo"
    path "/tmp/mpd.fifo"
    //blue/0/~/ ls -l /tmp/mpd.fifo
    prw-r--r-- 1 patrick patrick 0 2009-11-06 16:14 /tmp/mpd.fifo
    make is so .
    Last edited by brisbin33 (2009-11-06 21:16:21)

Maybe you are looking for

  • Making phone calls on Macbook Pro not working

    Hello, I have a Macbook Pro 15" late 2013 model which I have updated to Yosemite along with an iPhone 6 running iOS 8.1 I cannot seem to make phone calls off my Macbook Pro, it just says 'call failed' try again. The screen on my iPhone does not chang

  • File encoded with x264 takes forever to load in Encore CS 5.5

    I use Encore mostly because it takes h.264 video encoded with the x264 compressor, which provides much higher quality than any other compressor. The problem is that these files take forever to load. For example, right now I'm trying to load a video t

  • Troubleshooting "Failure to solve JavaScript variable" in OpenScript

    I'm new to OATS and need some help trying to debug two errors my script is getting. I'm trying to develop a simple script for a 3rd party application we use. The app itself has worked fine for a couple of years. I record a script of a simple transact

  • Message no. AK005 - Asset is investment measure, transaction type not allow

    Dear All, I am getting following error while transfering Investment AuC to Main Asset. Message no. AK005 - Asset is investment measure, transaction type not allow I searched the Forum and got some input.., but in that I have a clarification. Please s

  • Logic won't open after i installed it

    Hey there,                after i installed logic pro 9 on snow lepoard, it won't open along with all my other applications that were fine before i installed logic. It gives me a problem report that i don't really understand. i need help!!!