[Solved] tmux/nano jumbles output

I am running i3 and use zsh as my shell.
I was customizing my ~/.zshrc, ~/.tmux.conf and ~/.Xresources file today, and after customization and rebooting my system when I run nano inside a tmux window, it opens up the file fine. But if the file is more than a <window size> long, when I scroll down and back up, it doesn't seem to clear the previous window contents but seems to write over what was present making a mess on screen.
I have attached my .zshrc, .tmux.conf and .Xresources file.
This doesn't happen when i do cat some_long_file | less or if i'am viewing a man page.
Someone please help me with this. I tried 'googling' but couldn't find anything relevant.
~/.tmux.conf
set -g status-bg blue
set -g status-left '#[fg=black,bold]:#S]['
set -g status-right '#[fg=black,bold]][ %Y-%m-%d %H:%M#[default]'
#setw -g window-status-current-bg green
set-window-option -g window-status-current-format '#[bg=black,fg=cyan,bold]#I:#W#[fg=dim]#F'
setw -g window-status-current-attr underscore
# Alerted window in status bar. Windows which have an alert (bell, activity or content).
set-window-option -g window-status-alert-fg red
set-window-option -g window-status-alert-bg black
set -g prefix C-g
unbind C-b
bind C-a send-prefix
bind C-d detach
bind C-e neww 'exec emacs -nw'
bind / neww 'exec top'
new-session
~/.Xresources
! Xresources file
URxvt.transparent: true
! URxvt.shading: 0 to 99 darkens, 101 to 200 lightens
URxvt.shading: 110
URxvt.scrollBar: off
URxvt.font: -*-terminus-medium-*-*-*-*-150-*-*-*-*-iso8859-1
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: rgb
URxvt.perl-lib: /usr/lib/urxvt/perl/
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: /usr/bin/chromium
URxvt.matcher.button: 1
!! drop in Solarized colorscheme for Xresources/Xdefaults
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
*background: S_base03
*foreground: S_base00
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
!*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3
~/.zshrc
# Set environment variables
#==========================
TERM=rxvt-unicode-256color
PAGER=less
EDITOR=emacs
FIGNORE='.o:.out:~'
COLORTERM=yes
HISTFILE=~/.zshhistory
HISTSIZE=1000
SAVEHIST=1000
LS_COLORS='no=00:fi=00:di=00;36:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.bz2=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.sit=01;31:*.hqx=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.mov=01;35:*.app=01;33:*.c=00;33:*.php=00;33:*.pl=00;33:*.cgi=00;33:'
export TERM PAGER EDITOR FIGNORE HISTFILE HISTSIZE SAVEHIST COLORTERM LS_COLORS
# set up the prompt
#================
PROMPT='%F{yellow}%n%f %F{magenta}@%f %F{blue}%m%f %B%F{green}%~%f%b '
RPROMPT='%F{red}(%?)%f'
# Load zsh modules
#===================
# compinit initializes various advanced completions for zsh
autoload -U compinit && compinit
# autocompletion optoins
#======================
# case-insensitive tab completion for filenames (useful on Mac OS X)
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
# General completion technique
zstyle ':completion:*' completer _complete _correct _approximate _prefix
zstyle ':completion:*' completer _complete _prefix
zstyle ':completion::prefix-1:*' completer _complete
zstyle ':completion:incremental:*' completer _complete _correct
zstyle ':completion:predict:*' completer _complete
# Completion caching
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
# Expand partial paths
zstyle ':completion:*' expand 'yes'
zstyle ':completion:*' squeeze-slashes 'yes'
# Don't complete backup files as executables
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
# Separate matches into groups
zstyle ':completion:*:matches' group 'yes'
# Describe each match group.
zstyle ':completion:*:descriptions' format "%B---- %d%b"
# Messages/warnings format
zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
# Describe options in full
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*:options' auto-description '%d'
zstyle ':completion:*:history-words' stop yes
zstyle ':completion:*:history-words' remove-all-dups yes
zstyle ':completion:*:history-words' list false
zstyle ':completion:*:history-words' menu yes
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
# zsh options
# ============
setopt \
no_beep \
correct \
auto_list \
auto_cd \
complete_in_word \
auto_pushd \
complete_aliases \
extended_glob \
zle \
share_history \
hist_ignore_all_dups
autoload -U promptinit
promptinit
# Some aliases
# ===========
## Command Aliases
alias x=exit
alias c=clear
alias t=tmux
alias tls='tmux list-sessions'
alias tkl='tmux kill-session -t '
alias ls='ls --color=auto -F'
alias l='ls -lAF --color=auto'
alias mkdir='nocorrect mkdir'
alias mv='nocorrect mv'
alias man='nocorrect man'
alias pacman='nocorrect pacman'
alias mpc='mplayer -vo gl -lavdopts threads=2'
alias -g zrc='~/.zshrc'
# keybinds
# ========
bindkey "^[[B" history-beginning-search-forward
bindkey "^[[A" history-beginning-search-backward
Last edited by elric_ed (2012-03-11 07:45:15)

Don't set your TERM in your .zshrc
In tmux.conf put:
set -g default-terminal screen-256color

Similar Messages

  • Nano video output via headphone socket?

    Can the new Nano video output to the TV via the headphone socket, like my iPod Video 80g?
    Thanks.

    Trip to Apple store and Genius Bar (Genius my a**e!), where I had a 2 hour wait, 20 minutes with the Genius (I use the term lightly) to be told what I already knew, plus he thinks the headphone output is connec ted to main logic board and that will cost almost £300 for parts. Dream-on!
    On the way home I purchased a £8 Toslink cable (£32 in Apple store) plugged it in and hey presto - perfect sound.
    So it looks like the headphone socket is stuck in digital mode.
    Well at least it's getting better. Now off to research & establish how many other folks report same issue.

  • [SOLVED] ipod nano 5G 'Failed to generate sqlite database' error

    If you have been experiencing this, it is due to a missing file in the iPod_Control/Device folder of the ipod. Got the solution from this post here Ipod Nano 5G with linux
    I'll just list the steps here
    1. Get the firewire serial id, look for a sixteen digit number in the output.
    sudo lsusb -v | grep -i Serial
    2. Add/Change the line 'FirewireGuid: ...' to 'FirewireGuid: 0x<firewire serial id obtained above>'
    3. Get a HashInfo file from here by entering the firewire serial id (without the 0x) in the box and the click generate. Move the HashInfo file to you iPod_Control/Device folder
    The error should go away afterwards

    Eventually managed to solve this by forcing the iPod into disk mode (using the instructions here - http://support.apple.com/kb/HT1363) which kept it mounted long enough for me to alter the sync preferences.
    Got there in the end, but I still can't understand why iPods don't just stay mounted until you eject them like they used to. Seems crazy.

  • [SOLVED] No sound, dummy output

    I have no sound on my arch linux installation, and I believe it may be related to updating my kernel. Two weeks ago I had sound working perfectly, however just yesterday I noticed that my output device is listed as "Dummy Output"
    I use the following two pulseaudio packages:
    pulseaudio 6.0-1
    pulseaudio-alsa 2-3
    Output from "cat /proc/asound/cards
    0 [HDMI ]: HDA-Intel - HDA Intel HDMI
    HDA Intel HDMI at 0xf7b14000 irq 32
    1 [PCH ]: HDA-Intel - HDA Intel PCH
    HDA Intel PCH at 0xf7b10000 irq 31
    Output from "lspci -nn"
    00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller [8086:0c04] (rev 06)
    00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
    00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
    00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
    00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 05)
    00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
    00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 05)
    00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
    00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d5)
    00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 [8086:8c16] (rev d5)
    00:1c.4 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 [8086:8c18] (rev d5)
    00:1c.5 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 [8086:8c1a] (rev d5)
    00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 05)
    00:1f.0 ISA bridge [0601]: Intel Corporation HM87 Express LPC Controller [8086:8c4b] (rev 05)
    00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c03] (rev 05)
    00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)
    01:00.0 3D controller [0302]: NVIDIA Corporation GK106M [GeForce GTX 765M] [10de:11e2] (rev a1)
    03:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller [1969:e091] (rev 13)
    04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)
    05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter [10ec:8723]
    Last edited by hextet (2015-02-16 17:21:29)

    Nevermind I solved the problem!
    Simply deleted the director ~/.config/pulse, rebooted, and everything worked!

  • Help! 2nd gen. ipod nano audio output not balanced

    anyone knows what the problem of my ipod nano? while i was listening suddenly there was no audio output on the right earphone. i restarted it at least 5 times, even changed to another earphone. then after a few hours i tried to test it again and the right earphone works again but volume is much lower than the left earphone.
    i dropped it at least about 2 months ago, could it be the cause?
    will apple warranty work on my unit?

    First off, be sure that you've fulle connected the headphones/ear buds to the iPod correctly. I know it's a simple thing, but sometimes is accidentally looked over, and can be the cause of this type of issue.
    Next, I wold suggest that you restore your iPod.
    If a restore doesn't help, and you're iPod is still under the 1-year warranty, I would suggest that you send your iPod in to get it repaired/replaced. Apple could possibly cover for it witht he warranty (although I can't guarantee it).
    You can place an iPod service request online here -> iPod Service
    Most likely, if a restore doesn't help your situation, then it's an internal sound problem with the iPod that will have to be replaced by Apple.
    -Kylene

  • [solved]cat with colored output?

    just wondering if there is a app like cat, that outputs a file, but with vim/emacs' highlight and line numbering. (or some short of hack)
    Why? well, I'm playing around with some C++ and I have multiple little files that I'd like to see on the shell before/after I run g++, and something like that would be quite useful.
    Last edited by hack.augusto (2009-10-22 01:13:20)

    @bl1nk
    that's exactly what I imagined for highlight, thanks.
    @Ghost1227
    `cat -b` ignores blank lines, `cat -n` solved the problem , thanks
    [update]
    community/colorgcc is kinda cool too
    Last edited by hack.augusto (2009-10-22 01:16:24)

  • [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] tmux ncmpcpp showing solid colors

    I noticed this happening after I switched from xterm to urxvt, and it ONLY happens in urxvt. THIS is what is happening and only happens while scrolling. Any ideas as to what's going on?
    Last edited by Squiddles (2012-03-21 07:14:56)

    Squiddles wrote:Oh man. I don't even know why, but I had "TERM=xterm-256colors" in my .bashrc. Anyways, now tmux dislpays "screen" and plain displays "rvxt-unicode-256color" and the color fills are no more in ncmpcpp! Thanks!
    No problem: please remember to mark the thread as solved. (It might also help to edit the title and stick tmux in there in terms of searchability).
    While I'm here, I might as well ask: Should I be setting TERM manually anywhere at all? And should I be setting $TERM to something to remove any chance of other compatibility breaks? It looks like leaving it this way would prevent that.
    No. Set it in your tmux.conf as per the man page quoted above. Let your terminal and terminfo handle it outside tmux - that will avoid any "irregularities".

  • [solved] tmux rebinding prefix doesn't work?

    Hi everybody,
    I decided to try tmux out, so I installed it and played around with it abit ... okay, it's pretty neat, but I've got to bind the keys to the same way I bound them for screen or I will go insane, so copy and paste, from the man page:
    Commands to be run when the tmux server is started may be placed in the ~/.tmux.conf configuration file. Common examples include:
    Changing the default prefix key:
    set-option -g prefix C-a
    unbind-key C-b
    bind-key C-a send-prefix
    So I stick
    set-option -g prefix C-a
    unbind-key C-b
    bind-key C-a send-prefix
    in ~/.tmux, that unsets the "C-b" binding, (so I can't do anything), but it doesn't bind "C-a" successfully.  Has anybody here successfully rebound their prefix?
    Last edited by pseudonomous (2010-04-09 22:16:14)

    Hi, Jasonwryan.  Thanks for your response.
    It turns out the problem was tmux wasn't automatically reading ~/.tmux, if I pass
    tmux -f ~/.tmux
    then I can get your config to work, I'll be the example from the man page works too.
    Edit:
    To elaborate on this problem, the file is supposed to be called "tmux.conf", not tmux.  This is what I get for not reading carefully enough.
    Last edited by pseudonomous (2010-04-09 22:22:20)

  • [SOLVED] Can't send output to external monitor

    I've got a Dell Inspiron 1501 laptop which I sometimes use to give presentations at my school. Last time, in mid october, it worked perfectly, but now my laptop and the digital projector seem to ignore each other. The only difference between last time and now is that I've updated the system.
    This is output of xrandr -q:
    $ xrandr -q
    Screen 0: minimum 320 x 200, current 1280 x 800, maximum 4096 x 4096
    VGA-0 disconnected (normal left inverted right x axis y axis)
    LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
    1280x800 61.0*+
    It says that VGA-0 is disconnected, which isn't the case. I've tried pressing Fn+CTR/LCD but it doesn't make any difference.
    Can anyone tell me if I am missing something? What's wrong? Why doesn't it work now if it worked fine just over a month ago? Is this a problem with the new X server?
    I know I'm asking a lot of questions, but I'd really appreaciate any help. I wouldn't like my students to get the idea that Linux is unreliable (or maybe that I'm just not smart enough).
    Cheers
    Last edited by troncoso (2009-12-18 19:47:58)

    Thanks for answering. Yes, it has an integrated ATI card, and I'm running the radeon driver without an xorg.conf. This is what "lspci -v" says about the card:
    01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200M] (prog-if 00 [VGA controller])
    Subsystem: Dell Device 01f5
    Flags: bus master, 66MHz, medium devsel, latency 66, IRQ 17
    Memory at c8000000 (32-bit, prefetchable) [size=128M]
    I/O ports at 9000 [size=256]
    Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
    [virtual] Expansion ROM at c0120000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: radeon
    Kernel modules: radeon, radeonfb
    Cheers

  • How do I solve this Nano 3G syncing problem?  During the syncing process my music files are registering as audio, but once I eject the IPOD it does not reveal the music files in the music folder.

    During the syncing process my IPOD Nano 3G shows that the music files that I'm synching are registering as audio, and that the video files are registering as video, and even upon completion they are still labeled as such.  But, when I eject the device from ITUNES and turn it on, the IPOD reveals that there are no music or video files to be played.  When I plug the device back into my MAC and, when ITUNES recognizes the device, uder the summary tab the summary bar reads that the files that I loaded are all classified as other files.  What could be causing this?  I had to re-install my Tiger Software, and since then I've been having this problem.

    was this ever addressed

  • SOLVED: Getting an Input/Output error when accessing certain files

    My system started failing a few days ago because of sudden Input/Output errors when trying to access certain files. It was running fine until various applications started crashing like for example Pidgin (in retrospect probably because of DBus crashing). I decided to reboot and now can't login anymore because the DBus module fails to load which in turn means that HAL doesn't load either and so I can't use my keyboard to login.
    The error message I get from DBus is that it can't access the file /etc/dbus-1/system.d/org.freedesktop.PolicyKit.conf because of an Input/Output error. I tried to fix/see what was wrong using the arch livecd. Because I thought my problem had to do with a pacman update that had failed before I'd rebooted, I updated my system and I noticed that when pacman tried to access other files it came back with the same error message. The files seemed pretty random, one of them was fakeroot.conf and then several library files like libfaad (sorry this is kind of vague but I'm away from home right now and can't go online very often so I'm writing this from memory).
    I'm guessing its a hard drive problem because checking the filesystem for errors came back with nothing. I was just wondering whether anyone had any other ideas before I go and reinstall. I'm going back home tomorrow so I'll be able to follow any advice/reinstall then.
    Last edited by siell (2010-04-08 17:01:37)

    UPDATE
    It seems to be fixed! The second run of e2fsck fixed some more issues and the files that were causing the problems earlier seemed to have bad inodes. Boots fine now and I can get into my system. I checked and I still have a reasonable amount of free space so I don't think that was the reason ... I have no idea how the filesystem got so corrupted out of nowhere.
    A few things are different, for example, it asked me to unlock the keyring and I couldn't mount my external encrypted drive anymore and had to do it manually with cryptsetup. e2fsck made quite a few changes so I imagine it's due to that. Shouldn't be to hard to fix though.
    Thanks for your help!

  • [SOLVED] No HTML5 Audio output in Firefox

    Hi folks, it seems I don't have any HTML5 audio output within Firefox and was hoping I could get some advice. Here's a run down of the situation:
    Everything is unmuted in alsamixer.
    Audio works through ALSA with every other application I've tried such as moc, vlc, mplayer etc.
    I have an .asoundrc file which correctly sets the default and an alias for another card. I use it to switch audio when using mplayer sometimes.
    I've used various HTML5 test pages that report audio tag and and playback is working.
    Firebug console never reports any errors when trying to play audio within a page.
    I've done a fair bit of searching but the documented solution is almost always to setup an .asoundrc config file, but I already have one.
    Last edited by Xik (2014-02-22 14:04:25)

    Rasi wrote:of course you have all the gstreamer0.10-plugins installed...
    Of course!
    karol wrote:
    See the optional dependencies: https://www.archlinux.org/packages/extr … 4/firefox/
    What's the output of
    pacman -Qs gst
    local/gstreamer0.10 0.10.36-3
    GStreamer Multimedia Framework
    local/gstreamer0.10-bad 0.10.23-7
    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
    local/gstreamer0.10-bad-plugins 0.10.23-7 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
    local/gstreamer0.10-base 0.10.36-2
    GStreamer Multimedia Framework Base plugin libraries
    local/gstreamer0.10-base-plugins 0.10.36-2 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
    local/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins)
    Gstreamer FFMpeg Plugin
    local/gstreamer0.10-good 0.10.31-4
    GStreamer Multimedia Framework Good plugin libraries
    local/gstreamer0.10-good-plugins 0.10.31-4 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
    local/gstreamer0.10-ugly 0.10.19-9
    GStreamer Multimedia Framework Ugly plugin libraries
    local/gstreamer0.10-ugly-plugins 0.10.19-9 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)

  • [SOLVED] tmux.service malfunction

    Hello, there appears to be a small hiccup in controlling tmux's sessions via systemd services. Namely ExecStop=/usr/bin/tmux kill-session -t ts in the following example kills all tmux sessions instead of only the 'ts' session.
    [ll@arch ~]$ cat /usr/lib/systemd/system/tmux.service
    [Unit]
    Description=Start tmux in detached session
    [Service]
    Type=forking
    ExecStart=/usr/bin/tmux new-session -s ts -d
    ExecStop=/usr/bin/tmux kill-session -t ts
    User=ll
    [Install]
    WantedBy=multi-user.target
    [ll@arch ~]$ tmux ls
    failed to connect to server
    [ll@arch ~]$ sudo systemctl start tmux && tmux new -s manual -d && tmux ls
    manual: 1 windows (created Sat Mar 16 11:45:26 2013) [104x53]
    ts: 1 windows (created Sat Mar 16 11:45:26 2013) [80x23]
    [ll@arch ~]$ sudo systemctl stop tmux && tmux ls
    failed to connect to server
    [ll@arch ~]$
    Is it a bug or the service file is missing something?
    Last edited by cngn (2013-03-17 11:13:16)

    per systemd.kill KillMode=none is the required option, I have edited Services#tmux

  • [SOLVED] weird beagle-status output?

    my system's gears were grinding a little more than usual, and while idle, i noted that beagle was using a tad more resources than it should. i checked beagle-status and found the following:
    ** (/usr/lib/beagle/Info.exe:6862): W10NING **: Symbol file /usr/lib/beagle/Beagle.dll.mdb has incorrect version (expected 50.0, got 39)
    ** (/usr/lib/beagle/Info.exe:7003): WARNING **: Symbol file /usr/lib/beagle/Beagle.dll.mdb has incorrect version (expe9ted 50.0, got 39)
    ** (/usr/lib/beagle/Info.exe:7015): WARNING **: Symbol file /usr/lib/beagle/Beagle.dll.mdb has incorrect version (expected 50.0, got 39)
    it just seems to be spitting out the above in variations, and i don't really understand what's happening. it seems to still be organizing things, as every once in a while, it'll say something normal like Status Indexing in "home/krup/school/paper.odt" for instance, but the rest of the time it just spits out - what seems to me - gibberish.
    i should note that i did upgrade this morning and besides the klib problem that was mentioned on the front page, i've had nothing else go wrong. anyone heard or experienced anything like this?
    Last edited by krupintupple (2008-10-23 23:10:47)

    hey all, i figured out what was going on. well, not really. however, a few days after this message, beagle went down for the count. turns out *something* was wrong. informative, i know! however, i recompiled the package on my end and not only is it back, it's also not spitting out weird output.
    here's the thread of interest, if ye discover you have the same ailment as i did:
    http://bbs.archlinux.org/viewtopic.php?id=57557
    Last edited by krupintupple (2008-10-23 23:16:02)

Maybe you are looking for

  • Itunes for Windows XP 64 bit

    Hello. I've tried my best not to have to post a new topic, but I have now downloaded at this point more than 2 gigs of Itunes and to no avail. I am running Windows XP 64 bit, NOT Vista 64 bit, NOT windows 7 and was wondering is there something I coul

  • Three Months and so far so good

    just wantedf to make a Post saying that so far i am impressed Connection (well date was changed once) delayed by 7 days on the Day of connection was done fast (didnt have internet for less then 3 hours) Speed wise i was told i could only get Max 31MB

  • Problems with 'make'

    Hi I have just downloaded realtek rtl98192se for my wireless pci card. after extracting the file, the user guide states to go to the top level of the directory and execute the command 'make' to compile the driver I have done so but I get the error: m

  • Email alerts not being sent

    have configured some alerts on grid control but even though I can see the metric thresholds being broken there are no emails being sent anyone got any ideas why this might be happening? thanks

  • FCP causes computer to force quit on startup

    Could someone please help... On the launch screen of my FCP 5.1.2...it gets right to the point where its gonna bring up my windows to do my project and then my screen greys out and i have to force restart my whole computer... It was fine yesterday, b