[solved] URxvt in Openbox: Set WM_WINDOW_ROLE

Hi, I'd like to do what it says in the title: Set custom window-roles for URxvt (like e.g. Terminal can do via command line options).
Background of the question is this:
I'm using Openbox and I want to start 2 Terminals on Desktop 4 on startup (via autostart.sh), but still have additional terminals I might start appear on the current desktop. I did this by setting the WM_WINDOW_ROLE property of the startup-terminals to 'desk4' and instruct Openbox to start Terminals with that role on Desktop 4.
Unfortunately URxvt has no such option.
So, any ideas on how to define the window role or achieve the above by other means?
Last edited by lastchancetosee (2009-11-01 00:29:53)

nope, no reason to use window role instead of name. Coming from xfce-terminal I was sort of looking at roles, not names. I must have missed the -name option, urxvt's manpages are huge.
Thanks.
Not to others:
If you change the 'name' property of URxvt, make sure that all your configuration in .Xdefaults is
URxvt.<property>
and not
urxvt.<property>
or otherwise your renamed terminals wont use those settings.
Alternatively you can define entirely different properties for the newly-named terminal with
<newname>.<property>
Last edited by lastchancetosee (2009-11-01 09:21:17)

Similar Messages

  • [SOLVED]urxvt can't set the background after using slim as DM

    Yesterday, I changed lxdm to slim,and then everything went well,except urxvt.Though I think this should have nothing to do with the urxvt's problem.
    urxvt only has a white background while my setting is 0000/0000/0000/cccc,even I attempted to comment all options relating to colors,but it doesn't work.until I remove the .Xresources file, urxvt has a black background.
    I also attempted to start from startx and other ways, but it didn't work.I have a transparent black interface before,and now it is dazzling white.how could i can resume it.
    My DE is kde4.
    Here is my .xinitrc
    export GTK_IM_MOUDLE=fcitx
    export QT_IM_MOUDLE=fcitx
    export XMODIFIERS=@im=fcitx
    exec startkde
    .Xresources
    ! RXVT-unicode setting
    URxvt.tansparent: true
    URxvt.geometry: 80x36+80+80
    URxvt.background: rgba:0000/0000/0000/cccc
    URxvt.depth:32
    URxvt.foreground: blue
    URxvt.scrollBar: False
    URxvt.scrollstyle: next
    ! Use shift+pageup/down to scroll in screen
    URxvt.secondaryScroll: True
    !set the artificial transparency of the v.t.
    URxvt.inheritPixmap: True
    URxvt.tintColor: grey
    URxvt.shading: 500
    URxvt.saveLines: 1500
    URxvt.preeditType: Root
    URxvt.borderLess: False
    URxvt.font:xft:monofur:pixelsize=17:style=Regular:antialias=true,xft:SimHei:pixelsize=17:style=Regular
    URxvt.boldFont:xft:DejaVu Sans Mono:pixelsize=17:style=Bold:antialias=true,xft:DejaVu Sans Mono:pixelsize=17:style=Bold
    !redefine color to use tango theme in vim
    !Black
    URxvt.color0: #000000
    URxvt.color8: #555753
    !Red
    URxvt.color1: #CC0000
    URxvt.color9: #EF2929
    !Green
    URxvt.color2: #4E9A06
    URxvt.color10: #8AE234
    !Yellow
    URxvt.color3: #C4A000
    URxvt.color11: #FCE94F
    !Blue
    URxvt.color4: #3465A4
    URxvt.color12: #729FCF
    !Magenta
    URxvt.color5: #75507B
    URxvt.color13: #AD7FA8
    !Cyan
    URxvt.color6: #06989A
    URxvt.color14: #34E2E2
    !White
    URxvt.color7: #D3D7CF
    URxvt.color15: #EEEEEC
    /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    # numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    #login_cmd exec /bin/bash -login ~/.xinitrc %session
    login_cmd exec /usr/bin/zsh ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Set directory that contains the xsessions.
    # slim reads xsesion from this directory, and be able to select.
    sessiondir /usr/share/xsessions/
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user ssfdust
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    #focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    #auto_login no
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    #current_theme default
    current_theme parallel-dimensions
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    Thx in advance
    Last edited by ssfdust (2013-11-16 05:12:29)

    To add to what sonoran posted above, you need to have xrdb load the settings in your ~/.Xresources.  When you use a DE, there are quite a few things that it might do for you depending on the existence (or absence) of a give configuration file. 
    I have no idea what things are specific to each DE, but I know that the Slim login manager is extremely simple and lightweight and does very little (if anything) automagically for you.  A good example of automagic coming from some of the display manager part of things is the locale settings.  In particular, they implement their own ways of handling setting your keyboard layout and language.  So going if you were to go from GDM to Slim, you would suddenly have the stuff in /etc/X11/xorg.conf.d honored, whereas in GDM, you would either have to use gconf or use setxkbmap at some point.

  • [Solved] Key input stops working in urxvt in Openbox

    For you who use the Openbox window manager and the urxvt terminal emulator, does your keyboard sometimes just kinda stop working in urxvt?
    For example, in urxvt, type "openbox --reconfigure". Your keyboard stopped working, didn't it? "Alt-Tab" to another window and then back again. Typing in the urxvt windows works again!
    Another example, load a urxvt window. Now go to a TTY (Ctrl-Alt-F2). Now go back to X. The same problem! No more keyboard input in urxvt!
    This is a really minor bug. But seeing how Openbox is the most popular floating window manager and urxvt is the most popular terminal emulator for Arch Linux users, I can't believe that I'm the only one that noticed this...
    Is there a way to fix this, so urxvt doesn't lose keyboard input?
    Last edited by drcouzelis (2013-03-01 06:07:59)

    Thanks for trying it out.
    Here is my .Xdefaults file:
    URxvt*iconFile: /usr/share/icons/Faience/apps/96/terminal.png
    URxvt*scrollBar: false
    URxvt*termName: screen-256color
    URxvt*saveLines: 10000
    URxvt*cursorBlink: true
    URxvt*pointerBlank: true
    URxvt*pointerBlankDelay: 987654321
    URxvt*font: xft:Terminus:size=12
    URxvt*perl-ext-common: default,fullscreen
    URxvt*keysym.F11: perl:fullscreen:switch
    URxvt*background: #0f0f0f
    URxvt*foreground: #c8c8c8
    URxvt*color0: #251f1f
    URxvt*color1: #eb4509
    URxvt*color2: #94e76b
    URxvt*color3: #ffac18
    URxvt*color4: #46aede
    URxvt*color5: #e32c57
    URxvt*color6: #d6dbac
    URxvt*color7: #efefef
    URxvt*color8: #5e5e5e
    URxvt*color9: #eb4509
    URxvt*color10: #95e76b
    URxvt*color11: #ffac18
    URxvt*color12: #46aede
    URxvt*color13: #e32c57
    URxvt*color14: #d6dbac
    URxvt*color15: #efefef
    I'm currently using the "rxvt-unicode-patched-left_ptr-unicode3" package, but I experienced the same problem with the official "rxvt-unicode" package.
    As I expected, it sounds like the problem is just me... Maybe I can try creating a new user and slowly adding in my personal config files until urxvt breaks.

  • Urxvt terminal title set -- dynamic possibly?[solved]

    Does anyone know how I could set urxvt's title set to say my $PS1, I tried declaring it in my .XDefaults but it literally says echo $PS1 in the title when I do that....
    Or also I remember when I used xfce4-terminal I think it showed dynamically what was going on in the term title, is this achievable somehow?
    I'm bash btw.
    Thanks,
    bladdo
    Last edited by bladdo (2008-05-11 00:42:27)

    tami wrote:
    I have in my .bashrc:
    # Change the window title of X terminals
    if [[ $TERM =~ "xterm|*rxvt*" ]]; then
    # set -o functrace
    trap 'set_title' DEBUG
    fi
    I 'm sorry - I do not remember from where I grabbed it... Anyway - my urxvt window titles are changing dynamically. Don't forget to source your .bashrc after editing it though...
    I hope it will help you,
    tami
    At first I settled for it just showing my username/host/pwd in the titlebar. Then I really wanted dynamic, I looked and everywhere I saw online it said it was only achievable through zsh. Tami, your code error'd my term for some reason.
    Eventually I found out how to do it
    # urxvt title
    case $TERM in
    rxvt-256color)
    trap 'echo -ne "\e]0;$USER@$HOSTNAME: $BASH_COMMAND\007"' DEBUG
    esac
    Will display as :
    user@host: command
    PWD and TTY can be added in but it looks to stuffed then in my opinion. Just change the rxvt-256color to any term and it should work for you too
    -bladdo

  • Help setting up quake-like urxvt in OpenBox

    I stumbled upon a script here that should enable urxvt to be executed as a quake-like dropdown (similar to tilda). I placed both scripts as "urxvtc" and "urxvtq" in ~/.config/openbox/ per the instructions. I also have installed xdotool.
    ~/.config/openbox/urxvtc scriptlet:
    #!/bin/sh
    urxvtc "$@"
    if [ $? -eq 2 ]; then
    urxvtd -q -o -f
    urxvtc "$@"
    fi
    ~/.config/openbox/urxvtq scriptlet:
    #!/bin/bash
    wid=$(xdotool search --classname urxvtq)
    if [ -z "$wid" ]; then
    /path/to/urxvtc -name urxvtq -geometry 80x28
    wid=$(xdotool search --classname urxvtq | head -1)
    xdotool windowfocus $wid
    xdotool key Control_L+l
    else
    if [ -z "$(xdotool search --onlyvisible --classname urxvtq 2>/dev/null)" ]; then
    xdotool windowmap $wid
    xdotool windowfocus $wid
    else
    xdotool windowunmap $wid
    fi
    fi
    After placing these scriptlets and rebooting, I tried it out, and couldn't get anything to pop up (or couldn't understand the keybindings; and so I read further. On the wiki was a link to  Xyne's post outlining how he originally got this working. I realized that I didn't have the keybindings set, and followed his guide, editing my rc.xml accordingly.
    The keybindings are mod4+` for the tilda-like urxvt dropdown, and mod4+t for a popup urxvt terminal. Whenever I attempt to execute the terminal with either keypress combination, I receive this error: Failed to execute child process "/home/rogue/.config/openbox/urxtvq" (Permission denied)
    I can't understand why I can't execute something that is placed in my own home folder. If someone could please point me in the right direction or give me a hand with fixing this up, I'd really appreciate the assistance. Thanks!
    Edit: I also added
    urxvtd -f &
    to ~/.config/openbox/autostart as called for in this post
    Last edited by rogue (2011-10-12 13:22:22)

    rogue wrote:
    the application entry in my rc.xml is:
    <application name="urxvtq">
    <decor>no</decor>
    <position force="yes">
    <x>0</x>
    <y>0</y>
    </position>
    <desktop>all</desktop>
    <layer>above</layer>
    <skip_pager>yes</skip_pager>
    <skip_taskbar>yes</skip_taskbar>
    <maximized>Horizontal</maximized>
    </application>
    I've tried searching for how the x/y coordinates measure stuff but haven't come up with much. Is it pixel by pixel? Is it based on a one frame graph or a four frame? It seems that everytime I make a change, I must reboot, as logging out doesn't seem to do the trick. Set at 0,0 the terminal opens in the center of the screen while im on the desktop; but when I'm working in a fullscreen window and open the terminal, it appears randomly around the screen.
    Reconfiguring openbox should be enough to load the changes you've made to rc.xml. If not, restarting only X via the ctrl+alt+backspace combo will work for sure.
    About positioning the window, try changing
    <x>0</x>
    <y>0</y>
    into
    <x>center</x>
    <y>center</y>
    and see if it makes any difference

  • [SOLVED] Openbox - setting different dpi on external monitor

    [SOLVED SUMMARY]
    After the suggestion from Max, I've got two instances of openbox running on the different screens.
    the xorg.conf I used for this is below.
    then I used the following addition to ~/.xinitrc to start two instances and set the dpi of the laptop screen:
    DISPLAY=:0.1
    exec openbox &
    DISPLAY=:0.0
    exec xrandr --output eDP1 --dpi 192 &
    exec openbox-session
    [/SOLVED SUMMARY]
    [ORIGINAL POST BELOW]
    Hello,
    I want to be able to set a different dpi for my laptop screen  (macbook pro retina 13 inch late 2013  11,1   integrated graphics (not nvidia))
    and my external monitor, as the laptop screen has a pixel density more than double that of the external monitor
    if I start openbox using:                           
    startx
    then text on the laptop is too small,  but everything on the monitor is ok. Conversely if I start openbox with
    startx -- -dpi 144
    then for the most part, things scale up nicely on the laptop, but everything on the monitor is too big.
    So what I have tried to do is set the the dpi with xrandr:
    xrandr --output eDP1 --auto --dpi 144 --output HDMI2 --auto --rotate right --dpi 96 --right-of eDP1
    xrandr outputs a configuration that looks ok, but the display doesn't change:
    Screen 0: minimum 320 x 200, current 3760 x 1920, maximum 32767 x 32767
    eDP1 connected 2560x1600+0+0 (normal left inverted right x axis y axis) 286mm x 179mm
    2560x1600 60.0*+
    2048x1536 60.0
    1920x1440 60.0
    1856x1392 60.0
    1792x1344 60.0
    1600x1200 60.0
    1400x1050 60.0
    1280x1024 60.0
    1280x960 60.0
    1024x768 60.0
    800x600 60.3 56.2
    640x480 59.9
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI1 connected 1200x1920+2560+0 right (normal left inverted right x axis y axis) 495mm x 310mm
    1920x1200 60.0*+
    DP2 disconnected (normal left inverted right x axis y axis)
    HDMI2 disconnected (normal left inverted right x axis y axis)
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)
    There seem to be a thousand ways to set up multiple screens, so it would be great to hear from anyone who has any suggestions about the best ways for me to approach this,
    should I  set up seperate monitors in Xorg.conf,
    or even seperate X DISPLAYs and launch multiple instances of openbox?
    thanks
    Mathew
    [EDIT]
    on re-examining, while the dimensions listed by xrandr seem about right, the xrandr command isn't changing them, they seem to be  defaults
    Last edited by mathew (2014-02-26 09:37:46)

    I created this xorg.conf
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0"
    Screen 1 "Screen1"
    Screen "Screen1" RightOf "Screen0"
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc/"
    FontPath "/usr/share/fonts/TTF/"
    FontPath "/usr/share/fonts/OTF/"
    FontPath "/usr/share/fonts/Type1/"
    FontPath "/usr/share/fonts/100dpi/"
    FontPath "/usr/share/fonts/75dpi/"
    EndSection
    Section "Module"
    Load "glx"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "fbdev"
    BusID "PCI:0:2:0"
    Option "ZaphodHeads" "eDP1,DP1,HDMI1,DP2,HDMI2,VIRTUAL1"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Card0"
    Monitor "Monitor1"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    If I put this in ./.xinitrc
    DISPLAY=:0.0
    exec openbox &
    DISPLAY=:0.1
    exec openbox
    it fails, unfortunately there's not much of an explanation in the Xorg.log
    This will launch:
    DISPLAY=:0.0
    exec openbox
    but the screen will be mirrored at the resoultion of the smallest screen.
    I'm guessing my xorg.conf is wrong, but I haven't been able to find any good information on setting up seperate X screens with intel integrated video

  • [SOLVED] nitrogen fails to set the background with openbox

    Hi guys !
    I have a strange issue . Yesterady everything was working fine . nitrogen would set my wallpaper at each boot . This morning for some reason nitrogen sets the background for about one second
    and then it goes back to the default openbox background (the gray one) . I don't remember changing anything yesterday , i just added the multilib repository so i don't think this is an issue .
    Here is my .xinitrc
    nitrogen --restore &
    xfce4-panel &
    exec ck-launch-session openbox-session
    What i'm doing wrong ?
    Last edited by shak (2010-08-28 12:59:45)

    I've finally found the solution . Apparently i forgot to edit my autostart.sh file , so when i 've isntalled the xfce4-panel there was conlfict and the background was reset to the defaul .
    After deleting the content of autostart.sh file and putting there the nitrogen and xfce4-panel commands and leaving the exec openbox-session at the .xinitrc file everything is fine

  • [Solved] Urxvt Proggy Misc font setting.

    Hi there,
    I wanted to use the Proggy font in my Urxvt, after installing the proggy fonts, and adding them to the fonts I have them available, here they are listed in fc-list.
    $ fc-list | grep Proggy
    /usr/share/fonts/TTF/ProggySmall.ttf: ProggySmallTT:style=Regular
    /usr/share/fonts/misc/ProggyCleanCP.pcf.gz: ProggyCleanCP.pcf:style=Regular
    /usr/share/fonts/misc/ProggySquare.pcf.gz: ProggySquare.pcf:style=Regular
    /usr/share/fonts/TTF/ProggyTinySZ.ttf: ProggyTinyTTSZ:style=Regular
    /usr/share/fonts/misc/ProggyTinySZ.pcf.gz: ProggyTinySZ.pcf:style=Regular
    /usr/share/fonts/TTF/ProggySquare.ttf: ProggySquareTT:style=Regular
    /usr/share/fonts/TTF/ProggyCleanCE.ttf: ProggyCleanTT CE:style=Regular
    /usr/share/fonts/misc/ProggyCleanSZ.pcf.gz: ProggyCleanSZ.pcf:style=Regular
    /usr/share/fonts/TTF/ProggyClean.ttf: ProggyCleanTT:style=Regular
    /usr/share/fonts/TTF/ProggyTiny.ttf: ProggyTinyTT:style=Regular
    /usr/share/fonts/misc/ProggyCleanSZCP.pcf.gz: ProggyCleanSZCP.pcf:style=Regular
    /usr/share/fonts/misc/ProggyClean.pcf.gz: ProggyClean.pcf:style=Regular
    /usr/share/fonts/misc/ProggyCleanSZBP.pcf.gz: ProggyCleanSZBP.pcf:style=Regular
    /usr/share/fonts/TTF/ProggySquareSZ.ttf: ProggySquareTTSZ:style=Regular
    /usr/share/fonts/misc/ProggySmall.pcf.gz: ProggySmall.pcf:style=Regular
    /usr/share/fonts/TTF/ProggyCleanSZ.ttf: ProggyCleanTTSZ:style=Regular
    /usr/share/fonts/misc/ProggyTinyBold.pcf.gz: ProggyTinySZ:style=Bold
    /usr/share/fonts/misc/ProggyTiny.pcf.gz: ProggyTiny.pcf:style=Regular
    /usr/share/fonts/TTF/ProggyCleanSZBP.ttf: ProggyCleanTTSZBP:style=Regular
    /usr/share/fonts/misc/ProggySquareSZ.pcf.gz: ProggySquareSZ.pcf:style=Regular
    So there are TTF and misc versions, I really want to try a proggy misc font, I tried to put the name in my resources file by adding this line.
    URxvt*font: ProggySquare
    It won't work, TTF versions work fine by prefixing xft: to this name.
    urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
    What am I doing wrong ?
    Last edited by elaich (2015-03-17 22:19:12)

    urxvt -fn -*-proggysquare-medium-r-*-*-24-*-*-*-*-*-*-*
    seems to work.
    Edit: https://wiki.archlinux.org/index.php/X_ … escription
    Last edited by karol (2015-03-17 14:41:46)

  • [SOLVED] urxvt not using locale

    Help! I am stuck here.
    For the life of me I cannot find a reason why urxvt won't use my locale.
    Output of locale
    LANG=en_DK.utf8
    LC_CTYPE="en_DK.utf8"
    LC_NUMERIC="en_DK.utf8"
    LC_TIME="en_DK.utf8"
    LC_COLLATE=C
    LC_MONETARY="en_DK.utf8"
    LC_MESSAGES="en_DK.utf8"
    LC_PAPER="en_DK.utf8"
    LC_NAME="en_DK.utf8"
    LC_ADDRESS="en_DK.utf8"
    LC_TELEPHONE="en_DK.utf8"
    LC_MEASUREMENT="en_DK.utf8"
    LC_IDENTIFICATION="en_DK.utf8"
    LC_ALL=
    Output of locale -a
    C
    POSIX
    en_DK
    en_DK.iso88591
    en_DK.utf8
    en_US
    en_US.iso88591
    en_US.utf8
    Whenever I try to start urxvt from a(nother) terminal I get
    urxvt: the locale is not supported by Xlib, working without locale support.
    I have tried using both en_DK.utf8 and en_US.utf8. Neither works for me. (I would prefer en_DK.utf8)
    If I set the locale to C, then I don't get the error message. However I also don't get the filenames displayed correctly then.
    Anyone know what I can do?
    I am using lxde with openbox. Don't know if that makes a difference.
    I have spend the last 4 hours looking for a solution to this. Google turns up a lot of results, but they all (more or less) just tell me to make sure my locale is correct!? The word frustrating comes to mind
    EDIT: Somehow urxvt is using my locale for showing the files correctly, but not for input from the keyboard. The keys that normally produce æ, ø and å (danish chars) just doesn't do anything at all?
    EDIT2: Just in case someone stumbles upon this, here is what I decided to do. I didn't exactly solve the problem, but found another terminal to use instead.
    What I actually was trying to do was getting yeahconsole to work. I really liked using yakuake in kde, but after deciding to use lxde didn't want to pull in the complete QT library. yeahconsole however which is actually a wrapper for xterm/urxvt didn't want to behave the way I wanted it to. Well the truth is urxvt didn't want to work the way I wanted it to
    Fortunately for my nerves I found another quake like terminal called stjerm. This one works great (until now...). It has tabs and recognizes my locale setting. It's not in the official repos, but is easily installed from AUR.
    EDIT3: OK. This is kind of annoying. Now I don't need the solution any more and of course now I have found it
    To make urxvt use my locale correctly I must set it as follows: (note the LC_CTYPE setting)
    LANG=en_DK.utf8
    LC_CTYPE="en_US.utf8"
    LC_NUMERIC="en_DK.utf8"
    LC_TIME="en_DK.utf8"
    LC_COLLATE=C
    LC_MONETARY="en_DK.utf8"
    LC_MESSAGES="en_DK.utf8"
    LC_PAPER="en_DK.utf8"
    LC_NAME="en_DK.utf8"
    LC_ADDRESS="en_DK.utf8"
    LC_TELEPHONE="en_DK.utf8"
    LC_MEASUREMENT="en_DK.utf8"
    LC_IDENTIFICATION="en_DK.utf8"
    LC_ALL=
    I mark this topic as solved.
    Last edited by madeye (2009-10-31 21:21:06)

    Move 'exec awesome' to the bottom of your ~/.xinitrc.

  • [SOLVED] urxvt colors and moc theme

    Hello!
    I am a KDE user and usually i am using Konsole. For some applications (like htop and moc) i use urxvt (patched version from AUR). The problem is in colors. When i launch moc in Konsole the theme colours are right but not in urxvt too. That happens with htop also. URxvt doesn't follow theme backrground color (uses its own) and foreground colors too.
    Here is my .Xresource file:
    ! urxvt
    ! URxvt*termName: string
    !URxvt*geometry: 80x40
    ! URxvt*chdir: string
    ! URxvt*reverseVideo: boolean
    ! URxvt*loginShell: boolean
    ! URxvt*jumpScroll: boolean
    ! URxvt*skipScroll: boolean
    ! URxvt*pastableTabs: boolean
    ! URxvt*scrollstyle: mode
    URxvt*scrollBar: false
    ! URxvt*scrollBar_right: boolean
    ! URxvt*scrollBar_floating: boolean
    ! URxvt*scrollBar_align: mode
    !URxvt*thickness: 20
    ! URxvt*scrollTtyOutput: boolean
    ! URxvt*scrollTtyKeypress: boolean
    ! URxvt*scrollWithBuffer: boolean
    ! URxvt*inheritPixmap: boolean
    ! URxvt*transparent: boolean
    ! URxvt*tintColor: color
    ! URxvt*shading: number
    ! URxvt*blurRadius: HxV
    ! URxvt*fading: number
    ! URxvt*fadeColor: color
    ! URxvt*utmpInhibit: boolean
    ! URxvt*urgentOnBell: boolean
    ! URxvt*visualBell: boolean
    ! URxvt*mapAlert: boolean
    ! URxvt*meta8: boolean
    ! URxvt*mouseWheelScrollPage: boolean
    ! URxvt*tripleclickwords: boolean
    ! URxvt*insecure: boolean
    ! URxvt*cursorUnderline: boolean
    ! URxvt*cursorBlink: true
    ! URxvt*pointerBlank: boolean
    URxvt*background: #171717
    URxvt*foreground: #B2B2B2
    URxvt*color0: #171717
    URxvt*color1: #3D3D3D
    URxvt*color2: #ffffff
    ! URxvt*color3: color
    ! URxvt*color4: color
    ! URxvt*color5: color
    ! URxvt*color6: color
    ! URxvt*color7: color
    ! URxvt*color8: color
    ! URxvt*color9: color
    ! URxvt*color10: color
    ! URxvt*color11: color
    ! URxvt*color12: color
    ! URxvt*color13: color
    ! URxvt*color14: color
    ! URxvt*color15: color
    ! URxvt*colorBD: color
    ! URxvt*colorIT: color
    ! URxvt*colorUL: color
    ! URxvt*colorRV: color
    ! URxvt*underlineColor: color
    ! URxvt*scrollColor: color
    ! URxvt*troughColor: color
    ! URxvt*highlightColor: color
    ! URxvt*highlightTextColor: color
    ! URxvt*cursorColor: color
    ! URxvt*cursorColor2: color
    ! URxvt*pointerColor: color
    ! URxvt*pointerColor2: color
    URxvt*borderColor: #171717
    URxvt.font: xft:Ubuntu Mono:size=11
    !URxvt*iconFile: /usr/share/icons/oxygen/128x128/apps/utilities-terminal.png
    ! URxvt*boldFont: fontname
    ! URxvt*italicFont: fontname
    ! URxvt*boldItalicFont: fontname
    ! URxvt*intensityStyles: boolean
    ! URxvt*inputMethod: name
    ! URxvt*preeditType: style
    ! URxvt*imLocale: string
    ! URxvt*imFont: fontname
    ! URxvt*title: string
    ! URxvt*iconName: string
    ! URxvt*saveLines: number
    ! URxvt*buffered: boolean
    URxvt*depth: 32
    ! URxvt*visual: number
    ! URxvt*transient-for: windowid
    ! URxvt*override-redirect: boolean
    ! URxvt*hold: boolean
    ! URxvt*externalBorder: 20
    ! URxvt*internalBorder: 7
    ! URxvt*borderLess: true
    ! URxvt*lineSpace: number
    ! URxvt*letterSpace: number
    ! URxvt*skipBuiltinGlyphs: true
    ! URxvt*pointerBlankDelay: number
    ! URxvt*backspacekey: string
    ! URxvt*deletekey: string
    ! URxvt*print-pipe: string
    ! URxvt*modifier: modifier
    ! URxvt*cutchars: string
    ! URxvt*answerbackString: string
    ! URxvt*secondaryScreen: boolean
    !URxvt*secondaryScroll: boolean
    ! URxvt*perl-lib: string
    ! URxvt*perl-eval: perl-eval
    ! URxvt*perl-ext-common: tabbed
    ! URxvt*perl-ext: string
    ! URxvt*iso14755: boolean
    ! URxvt*iso14755_52: boolean
    ! URxvt*xrm: string
    ! URxvt*keysym.sym: keysym
    ! URxvt*background.border: true
    ! URxvt*background.expr: string
    ! URxvt*background.interval: seconds
    ! URxvt*bell-command: string
    ! URxvt*matcher.button: string
    ! URxvt*matcher.launcher: string
    ! URxvt*matcher.launcher.*: string
    ! URxvt*matcher.pattern.*: string
    ! URxvt*matcher.rend.*: string
    ! URxvt*remote-clipboard.fetch: string
    ! URxvt*remote-clipboard.store: string
    ! URxvt*searchable-scrollback: string
    ! URxvt*selection-autotransform.*: string
    ! URxvt*selection-pastebin.cmd: string
    ! URxvt*selection-pastebin.url: string
    ! URxvt*selection.pattern-0: string
    ! URxvt*tab-bg: 1
    ! URxvt*tab-fg: 2
    ! URxvt*tabbar-bg: 0
    ! URxvt*tabbar-fg: colour
    ! URxvt*url-launcher: string
    Moc config file:
    # This is a configuration file for the MOC player. It should be named
    # 'config' and placed in the ~/.moc directory. As this file can specify
    # commands which invoke other applications, MOC will refuse to start if it
    # is not owned by either root or the current user, or if it is writable by
    # anyone other than its owner. All options are given with their default
    # values, and therefore commented.
    # Comments begin with '#'.
    # You can use quotes and escape ('\') in parameters.
    # You can have variable values substituted by enclosing the variable name
    # as "${...}". (This only applies to the portion of the option following
    # the ' ='.) Variables are substituted first from the environment then,
    # if not found, from the configuration options. (Note that the value of
    # a configuration option substituted is that which it has at the time the
    # substitution variable is encountered.) If there is a naming conflict
    # between an environment and configuration variable, you may be able to
    # resolve it by using lowercase as the environment variable matches are
    # case-sensitive whereas the configuration variables are not.
    # You can also use the form "${...:-...}" where the value in the second
    # position will be substituted if the variable name given in the first
    # position is unset or null.
    # So, for example:
    # MusicDir = /music/${USER:-public}
    # Fastdir1 = ${MusicDir}/mp3/rock
    # Fastdir2 = ${MusicDir}/mp3/electronic
    # Fastdir3 = ${MusicDir}/mp3/rap
    # Fastdir4 = ${MusicDir}/mp3/etc
    # Variable names are limited to those accepted by the BASH shell; that
    # is, those comprising the upper- and lowercase ASCII characters, digits
    # and the underscore.
    # If you need to use the "${" sequence for any other purpose, write "$${"
    # and it will be replaced by "${" and not treated as a substitution.
    # Some options take lists of strings as their values. The strings are
    # separated by colons. Additional strings can be appended to the list
    # using "+ =" in place of a plain "=" to assign the value. For an example,
    # see the XTerms option.
    # You can override any configuration option when you run MOC using the
    # '-O' command line option:
    # mocp -O AutoNext =no -O messagelingertime=1 -O XTerms+=xxt:xwt
    # This command line option can be repeated as many times as needed and
    # the configuration option name is not case sensitive. (Note that MOC
    # does not perform variable substitution on the value of such overridden
    # configuration options.) Most option values are set before the
    # configuration file is processed (which allows the new values to be
    # picked up by substitutions), however list-valued options are overridden
    # afterwards (which gives the choice of whether the configured values are
    # replaced or added to).
    # Remember that the client and server are separate processes and the
    # server will retain the configuration values formed from the environment
    # within which it was originally started.
    # Show file titles (title, author, album) instead of file names?
    #ReadTags = yes
    # In which directory do you store your music files? If you specify it
    # you will be able to jump straight to this directory with the '-m'
    # parameter or the 'm' command. This can also point to a playlist.
    # Example: MusicDir = "/home/joe/music"
    #MusicDir = "My folder"
    # Start in the music directory by default? If set to 'no', start
    # in the current directory by default. A single directory on
    # the command line takes precedence.
    #StartInMusicDir = no
    # How to sort? FileName is the option's only value for now.
    #Sort = FileName
    # Show errors in the streams (for example, broken frames in MP3 files)?
    #ShowStreamErrors = no
    # Ignore CRC errors in MP3 files? Most players do that, so the default
    # value is 'yes'.
    #MP3IgnoreCRCErrors = yes
    # Set playback toggles.
    #Repeat = no
    #Shuffle = no
    #AutoNext = yes
    # Default FormatString:
    # %n - Track number
    # %a - Artist
    # %A - Album
    # %t - Title
    # %(X:TRUE:FALSE) - Ternary expression: if X exists, do TRUE,
    # otherwise FALSE. The escape character must
    # be doubled (i.e., '\\'). (See zshmisc
    # documentation for more information.)
    #FormatString = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)"
    # Input and output buffer sizes (in kilobytes).
    #InputBuffer = 512 # Minimum value is 32KB
    #OutputBuffer = 512 # Minimum value is 128KB
    # How much to fill the input buffer before playing (in kilobytes)?
    # This can't be greater than the value of InputBuffer. While this has
    # a positive effect for network streams, it also causes the broadcast
    # audio to be delayed.
    #Prebuffering = 64
    # Use this HTTP proxy server for internet streams. If not set, the
    # environment variables http_proxy and ALL_PROXY will be used if present.
    # Format: HTTPProxy = PROXY_NAME:PORT
    #HTTPProxy =
    # Sound driver - OSS, ALSA, JACK, SNDIO (on OpenBSD) or null (only for
    # debugging). You can enter more than one driver as a colon-separated
    # list. The first working driver will be used.
    #SoundDriver = JACK:ALSA:OSS
    # Jack output settings.
    #JackClientName = "moc"
    #JackStartServer = no
    #JackOutLeft = "system:playback_1"
    #JackOutRight = "system:playback_2"
    # OSS output settings.
    #OSSDevice = /dev/dsp
    #OSSMixerDevice = /dev/mixer
    #OSSMixerChannel1 = pcm # 'pcm', 'master' or 'speaker'
    #OSSMixerChannel2 = master # 'pcm', 'master' or 'speaker'
    # ALSA output settings.
    #ALSADevice = default
    #ALSAMixer1 = PCM
    #ALSAMixer2 = Master
    # Save software mixer state?
    # If enabled, a file 'softmixer' will be created in '~/.moc/' storing the
    # mixersetting set when the server is shut down.
    # Note that there is a "hidden" 'Amplification' setting in that file.
    # Amplification (0-200) is used to scale the mixer setting (0-100). This
    # results in a higher signal amplitude but may also produce clipping.
    #Softmixer_SaveState = yes
    # Save equalizer state?
    # If enabled, a file 'equalizer' will be created in '~/.moc/' storing the
    # equalizer settings when the server is shut down.
    # Note that there is a "hidden" 'Mixin' setting in that file.
    # Mixin (0.0-1.0) is used to determine how much of the original signal is
    # used after equalizing. 0 means to only use the equalized sound, while 1
    # effectively disabled the mixer. The default is 0.25.
    #Equalizer_SaveState = yes
    # Show files with dot at the beginning?
    #ShowHiddenFiles = no
    # Hide file name extensions?
    #HideFileExtension = no
    # Show file format in menu?
    #ShowFormat = yes
    # Show file time in menu? Possible values: 'yes', 'no' and 'IfAvailable'
    # (meaning show the time only when it is already known, which often works
    # faster).
    #ShowTime = IfAvailable
    # Show time played as a percentage in the time progress bar.
    #ShowTimePercent = no
    # Values of the TERM environment variable which are deemed to be xterms.
    #XTerms = xterm
    #XTerms + = xterm-colour:xterm-color
    #XTerms + = xterm-256colour:xterm-256color
    #XTerms + = rxvt:rxvt-unicode
    #XTerms + = rxvt-unicode-256colour:rxvt-unicode-256color
    #XTerms + = eterm
    # Theme file to use. This can be absolute path or relative to
    # /usr/share/moc/themes/ (depends on installation prefix) or
    # ~/.moc/themes/ .
    # Example: Theme = laras_theme
    Theme = yellow_red_theme
    # The theme used when running on an xterm.
    # Example: XTermTheme = transparent-background
    #XTermTheme = yellow_red_theme
    # Should MOC try to autoload the default lyrics file for an audio? (The
    # default lyrics file is a text file with the same file name as the audio
    # file name with any trailing "extension" removed.)
    #AutoLoadLyrics = yes
    # MOC directory (where pid file, socket and state files are stored).
    # You can use ~ at the beginning.
    #MOCDir = ~/.moc
    # Use mmap() to read files. mmap() is much slower on NFS.
    #UseMMap = no
    # Use MIME to identify audio files. This can make for slower loading
    # of playlists but is more accurate than using "extensions".
    #UseMimeMagic = no
    # Assume this encoding for ID3 version 1/1.1 tags (MP3 files). Unlike
    # ID3v2, UTF-8 is not used here and MOC can't guess how tags are encoded.
    # Another solution is using librcc (see the next option). This option is
    # ignored if UseRCC is set to 'yes'.
    #ID3v1TagsEncoding = WINDOWS-1250
    # Use librcc to fix ID3 version 1/1.1 tags encoding.
    #UseRCC = yes
    # Use librcc to filenames and directory names encoding.
    #UseRCCForFilesystem = yes
    # When this option is set the player assumes that if the encoding of
    # ID3v2 is set to ISO-8859-1 then the ID3v1TagsEncoding is actually
    # that and applies appropriate conversion.
    #EnforceTagsEncoding = no
    # Enable the conversion of filenames from the local encoding to UTF-8.
    #FileNamesIconv = no
    # Enable the conversion of the xterm title from UTF-8 to the local encoding.
    #NonUTFXterm = no
    # Remember the playlist after exit?
    SavePlaylist = yes
    # When using more than one client (interface) at a time, do they share
    # the playlist?
    #SyncPlaylist = yes
    # Choose a keymap file (relative to '~/.moc/' or using an absolute path).
    # An annotated example keymap file is included ('keymap.example').
    # Example: Keymap = my_keymap
    #Keymap =
    # Use ASCII rather than graphic characters for drawing lines. This
    # helps on some terminals.
    #ASCIILines = no
    # FastDirs, these allow you to jump directly to a directory, the key
    # bindings are in the keymap file.
    # Examples: Fastdir1 = /mp3/rock
    # Fastdir2 = /mp3/electronic
    # Fastdir3 = /mp3/rap
    # Fastdir4 = /mp3/etc
    #Fastdir1 =
    #Fastdir2 =
    #Fastdir3 =
    #Fastdir4 =
    #Fastdir5 =
    #Fastdir6 =
    #Fastdir7 =
    #Fastdir8 =
    #Fastdir9 =
    #Fastdir10 =
    # How fast to seek (in number of seconds per keystroke). The first
    # option is for normal seek and the second for silent seek.
    #SeekTime = 1
    #SilentSeekTime = 5
    # PreferredDecoders allows you to specify which decoder should be used
    # for any given audio format. It is a colon-separated list in which
    # each entry is of the general form 'code(decoders)', where 'code'
    # identifies the audio format and 'decoders' is a comma-separated list
    # of decoders in order of preference.
    # The audio format identifier may be either a filename extension or a
    # MIME media type. If the latter, the format is 'type/subtype' (e.g.,
    # 'audio/flac'). Because different systems may give different MIME
    # media types, any 'x-' prefix of the subtype is ignored both here and
    # in the actual file MIME type (so all combinations of 'audio/flac' and
    # 'audio/x-flac' match each other).
    # For Internet streams the matching is done on MIME media type and on
    # actual content. For files the matches are made on MIME media type
    # (if the 'UseMimeMagic' option is set) and on filename extension. The
    # MIME media type of a file is not determined until the first entry for
    # MIME is encountered in the list.
    # The matching is done in the order of appearance in the list with any
    # entries added from the command line being matched before those listed
    # here. Therefore, if you place all filename extension entries before
    # all MIME entries you will speed up MOC's processing of directories
    # (which could be significant for remote file systems).
    # The decoder list may be empty, in which case no decoders will be used
    # for files (and files with that audio format ignored) while Internet
    # streams will be assessed on the actual content. Any decoder position
    # may contain an asterisk, in which case any decoder not otherwise listed
    # which can handle the audio format will be used. It is not an error to
    # list the same decoder twice, but neither does it make sense to do so.
    # If you have a mix of audio and non-audio files in your directories, you
    # may wish to include entries at top of the list which ignore non-audio
    # files by extension.
    # In summary, the PreferredDecoders option provides fine control over the
    # type of matching which is performed (filename extension, MIME media
    # type and streamed media content) and which decoder(s) (if any) are used
    # based on the option's list entries and their ordering.
    # Examples: aac(aac,ffmpeg) first try FAAD2 for AACs then FFmpeg
    # mp3() ignore MP3 files
    # wav(*,sndfile) use sndfile for WAV as a last resort
    # ogg(vorbis,*):flac(flac,*) try Xiph decoders first
    # ogg():audio/ogg() ignore OGG files, and
    # force Internet selection by content
    # gz():html() ignore some non-audio files
    # Any unspecified audio formats default to trying all decoders.
    # Any unknown (or misspelt) drivers are ignored.
    # All names are case insensitive.
    # The default setting reflects the historical situation modified by
    # the experience of users.
    #PreferredDecoders = aac(aac,ffmpeg):m4a(ffmpeg)
    #PreferredDecoders += mpc(musepack,*,ffmpeg):mpc8(musepack,*,ffmpeg)
    #PreferredDecoders += sid(sidplay2):mus(sidplay2)
    #PreferredDecoders += wav(sndfile,*,ffmpeg)
    #PreferredDecoders += wv(wavpack,*,ffmpeg)
    #PreferredDecoders += audio/aac(aac):audio/aacp(aac):audio/m4a(ffmpeg)
    #PreferredDecoders += audio/wav(sndfile,*)
    # The following PreferredDecoders attempt to handle the ambiguity surrounding
    # container types such as OGG for files. The first two entries will force
    # a local file to the correct decoder (assuming the .ogg file contains Vorbis
    # audio), while the MIME media types will cause Internet audio streams to
    # be assessed on content (which may be either Vorbis or Speex).
    #PreferredDecoders += ogg(vorbis,ffmpeg):oga(vorbis,ffmpeg):ogv(ffmpeg)
    #PreferredDecoders += opus(opus,ffmpeg)
    #PreferredDecoders += spx(speex)
    #PreferredDecoders += application/ogg(vorbis):audio/ogg(vorbis)
    # Which resampling method to use. There are a few methods of resampling
    # sound supported by libresamplerate. The default is 'Linear') which is
    # also the fastest. A better description can be found at:
    # http://www.mega-nerd.com/libsamplerate/api_misc.html#Converters
    # but briefly, the following methods are based on bandlimited interpolation
    # and are higher quality, but also slower:
    # SincBestQuality - really slow (I know you probably have an xx GHz
    # processor, but it's still not enough to not see
    # this in the top output :) The worst case
    # Signal-to-Noise Ratio is 97dB.
    # SincMediumQuality - much faster.
    # SincFastest - the fastest bandlimited interpolation.
    # And these are lower quality, but much faster methods:
    # ZeroOrderHold - really poor quality, but it's really fast.
    # Linear - a bit better and a bit slower.
    #ResampleMethod = Linear
    # Always use this sample rate (in Hz) when opening the audio device (and
    # resample the sound if necessary). When set to 0 the device is opened
    # with the file's rate.
    #ForceSampleRate = 0
    # By default, even if the sound card reports that it can output 24bit samples
    # MOC converts 24bit PCM to 16bit. Setting this option to 'yes' allows MOC
    # to use 24bit output. (The MP3 decoder, for example, uses this format.)
    # This is disabled by default because there were reports that it prevents
    # MP3 files from playing on some soundcards.
    #Allow24bitOutput = no
    # Use realtime priority for output buffer thread. This will prevent gaps
    # while playing even with heavy load. The user who runs MOC must have
    # permissions to set such a priority. This could be dangerous, because it
    # is possible that a bug in MOC will freeze your computer.
    #UseRealtimePriority = no
    # The number of audio files for which MOC will cache tags. When this limit
    # is reached, file tags are discarded on a least recently used basis (with
    # one second resolution). You can disable the cache by giving it a size of
    # zero. Note that if you decrease the cache size below the number of items
    # currently in the cache, the number will not decrease immediately (if at
    # all).
    #TagsCacheSize = 256
    # Number items in the playlist.
    #PlaylistNumbering = yes
    # Main window layouts can be configured. You can change the position and
    # size of the menus (directory and playlist). You have three layouts and
    # can switch between then using the 'l' key (standard mapping). By default,
    # only two layouts are configured.
    # The format is as follows:
    # - Each layout is described as a list of menu entries.
    # - Each menu entry is of the form:
    # menu(position_x, position_y, width, height)
    # where 'menu' is either 'directory' or 'playlist'.
    # - The parameters define position and size of the menu. They can
    # be absolute numbers (like 10) or a percentage of the screen size
    # (like 45%).
    # - 'width' and 'height' can have also value of 'FILL' which means
    # fill the screen from the menu's position to the border.
    # - Menus may overlap.
    # You must describe at least one menu (default is to fill the whole window).
    # There must be at least one layout (Layout1) defined; others can be empty.
    # Example: Layout1 = playlist(50%,50%,50%,50%)
    # Layout2 = ""
    # Layout3 = ""
    # Just one layout, the directory will occupy the whole
    # screen, the playlist will have 1/4 of the screen size
    # and be positioned at lower right corner. (Note that
    # because the playlist will be hidden by the directory
    # you will have to use the TAB key to make the playlist
    # visible.)
    # Example: Layout1 = playlist(0,0,100%,10):directory(0,10,100%,FILL)
    # The screen is split into two parts: playlist at the top
    # and the directory menu at the bottom. Playlist will
    # occupy 10 lines and the directory menu the rest.
    #Layout1 = directory(0,0,50%,100%):playlist(50%,0,FILL,100%)
    #Layout2 = directory(0,0,100%,100%):playlist(0,0,100%,100%)
    #Layout3 = ""
    # When the song changes, should the menu be scrolled so that the currently
    # played file is visible?
    #FollowPlayedFile = yes
    # What to do if the interface was started and the server is already playing
    # something from the playlist? If CanStartInPlaylist is set to 'yes', the
    # interface will switch to the playlist. When set to 'no' it will start
    # from the last directory.
    #CanStartInPlaylist = yes
    # Executing external commands (1 - 10) invoked with key commands (F1 - F10
    # by default).
    # Some arguments are substituted before executing:
    # %f - file path
    # %i - title made from tags
    # %S - start block mark (in seconds)
    # %E - end block mark (in seconds)
    # Data from tags can also be substituted:
    # %t - title
    # %a - album
    # %r - artist
    # %n - track
    # %m - time of the file (in seconds)
    # The parameters above apply to the currently selected file. If you change
    # them to capital letters, they are taken from the file currently playing.
    # Programs are run using execv(), not a shell, so you can't do things like
    # redirecting the output to a file. The command string is split using blank
    # characters as separators; the first element is the command to be executed
    # and the rest are its parameters, so if you use "echo Playing: %I" we run
    # program 'echo' (from $PATH) with 2 parameters: the string 'Playing:' and
    # the title of the file currently playing. Even if the title contains
    # spaces, it's still one parameter and it's safe if it contains `rm -rf /`.
    # Examples: ExecCommand1 = "cp %f /mnt/usb_drive"
    # ExecCommand2 = "/home/joe/now_playing %I"
    #ExecCommand1 =
    #ExecCommand2 =
    #ExecCommand3 =
    #ExecCommand4 =
    #ExecCommand5 =
    #ExecCommand6 =
    #ExecCommand7 =
    #ExecCommand8 =
    #ExecCommand9 =
    #ExecCommand10 =
    # Display the cursor in the line with the selected file. Some braille
    # readers (the Handy Tech modular series ZMU 737, for example) use the
    # cursor to focus and can make use of it to present the file line even
    # when other fields are changing.
    #UseCursorSelection = no
    # Set the terminal title when running under xterm.
    #SetXtermTitle = yes
    # Set the terminal title when running under screen.
    #SetScreenTitle = yes
    # Display full paths instead of just file names in the playlist.
    #PlaylistFullPaths = yes
    # The following setting describes how block markers are displayed in
    # the play time progress bar. Its value is a string of exactly three
    # characters. The first character is displayed in a position which
    # corresponds to the time marked as the start of a block and the last
    # character to the time marked as the end of the block. The middle
    # character is displayed instead if both the start and the end of the block
    # would fall in the same position (within the resolution of the interface).
    # You can turn off the displaying of these block marker positions by using
    # three space characters.
    #BlockDecorators = "`\"'"
    # How long (in seconds) to leave a message displayed on the screen.
    # Setting this to a high value allows you to scroll through the messages
    # using the 'hide_message' key. Setting it to zero means you'll have to
    # be quick to see any message at all. Any new messages will be queued up
    # and displayed after the current message's linger time expires.
    #MessageLingerTime = 3
    # Does MOC display a prefix on delayed messages indicating
    # the number of queued messages still to be displayed?
    #PrefixQueuedMessages = yes
    # String to append to the queued message count if any
    # error messages are still waiting to be displayed.
    #ErrorMessagesQueued = "!"
    # Self-describing ModPlug options (with 'yes' or 'no' values).
    #ModPlug_Oversampling = yes
    #ModPlug_NoiseReduction = yes
    #ModPlug_Reverb = no
    #ModPlug_MegaBass = no
    #ModPlug_Surround = no
    # ModPlug resampling mode.
    # Valid values are:
    # FIR - 8 tap fir filter (extremely high quality)
    # SPLINE - Cubic spline interpolation (high quality)
    # LINEAR - Linear interpolation (fast, good quality)
    # NEAREST - No interpolation (very fast, extremely bad sound quality)
    #ModPlug_ResamplingMode = FIR
    # Other self-describing ModPlug audio characteristic options.
    # (Note that the 32 bit sample size seems to be buggy.)
    #ModPlug_Channels = 2 # 1 or 2 channels
    #ModPlug_Bits = 16 # 8, 16 or 32 bits
    #ModPlug_Frequency = 44100 # 11025, 22050, 44100 or 48000 Hz
    #ModPlug_ReverbDepth = 0 # 0 (quiet) to 100 (loud)
    #ModPlug_ReverbDelay = 0 # Delay in ms (usually 40-200ms)
    #ModPlug_BassAmount = 0 # 0 (quiet) to 100 (loud).
    #ModPlug_BassRange = 10 # Cutoff in Hz (10-100).
    #ModPlug_SurroundDepth = 0 # Surround level 0(quiet)-100(heavy).
    #ModPlug_SurroundDelay = 0 # Surround delay in ms, usually 5-40ms.
    #ModPlug_LoopCount = 0 # 0 (never), n (times) or -1 (forever)
    # Self-describing TiMidity audio characteristic options.
    #TiMidity_Rate = 44100 # Between 8000 and 48000
    #TiMidity_Bits = 16 # 8 or 16
    #TiMidity_Channels = 2 # 1 or 2
    #TiMidity_Volume = 100 # 0 to 800
    # You can setup a TiMidity-Config-File here.
    # Leave it unset to use library defaults (/etc/timidity.cfg mostly).
    # Setting it to 'yes' also uses the library defaults.
    # Set it to 'no' if you don't have any configuration file.
    # Otherwise set it to the name of a specific file.
    #TiMidity_Config =
    # Self-describing SidPlay2 audio characteristic options.
    #SidPlay2_DefaultSongLength = 180 # If not in database (in seconds)
    #SidPlay2_MinimumSongLength = 0 # Play at least n (in seconds)
    #SidPlay2_Frequency = 44100 # 4000 to 48000
    #SidPlay2_Bits = 16 # 8 or 16
    #SidPlay2_Optimisation = 0 # 0 (worst quality) to 2 (best quality)
    # Set path to a HVSC-compatible database (if not set, database is disabled).
    #SidPlay2_Database =
    # SidPlay2 playback Mode:
    # "M": Mono (best for many SIDs)
    # "S": Stereo
    # "L"/"R": Left / Right
    #SidPlay2_PlayMode = "M"
    # Use start-song information from SID ('yes') or start at first song
    # ('no'). Songs before the start-song won't be played. (Note that this
    # option previously took the values 1 and 0; these are now deprecated
    # in favour of 'yes' and 'no'.)
    #SidPlay2_StartAtStart = yes
    # Play sub-tunes. (Note that this option previously took the values 1
    # and 0; these are now deprecated in favour of 'yes' and 'no'.)
    #SidPlay2_PlaySubTunes = yes
    # Run the OnSongChange command when a new song starts playing.
    # Specify the full path (i.e. no leading '~') of an executable to run.
    # Arguments will be passed, and you can use the following escapes:
    # %a artist
    # %r album
    # %f filename
    # %t title
    # %n track
    # %d file duration in XX:YY form
    # %D file duration, number of seconds
    # No pipes/redirects can be used directly, but writing a shell script
    # can do the job.
    # Example: OnSongChange = "/home/jack/.moc/myscript %a %r"
    #OnSongChange =
    # If RepeatSongChange is 'yes' then MOC will execute the command every time
    # a song starts playing regardless of whether or not it is just repeating.
    # Otherwise the command will only be executed when a different song is
    # started.
    #RepeatSongChange = no
    # Run the OnStop command (full path, no arguments) when MOC changes state
    # to stopped (i.e., when user stopped playing or changes a song).
    #OnStop = "/home/jack/.moc/myscript_on_stop"
    # This option determines which song to play after finishing all the songs
    # in the queue. Setting this to 'yes' causes MOC to play the song which
    # follows the song being played before queue playing started. If set to
    # 'no', MOC will play the song following the last song in the queue if it
    # is in the playlist. The default is 'yes' because this is the way other
    # players usually behave. (Note that this option previously took the
    # values 1 and 0; these are now deprecated in favour of 'yes' and 'no'.)
    #QueueNextSongReturn = yes
    I read wiki but didn't find anything useful. Thanks for any info.
    Last edited by Shark (2014-12-17 12:31:30)

    bleach wrote:
    i see these
    URxvt*background: #171717
    URxvt*foreground: #B2B2B2
    URxvt*color0: #171717
    URxvt*color1: #3D3D3D
    URxvt*color2: #ffffff
    are not commented out
    3d3d3d is for red but you have a blackish and color2 is for green but you have it white the rest should be the default colors. it uses the same colors only it changes the vairiant of the color you choice there or normally moc uses colors such as green blue and such which will call your console colors for those respective fields I know moc has /user/share/moc/themes/ that you can edit or make your own for instance copy one and edit it. I think htop uses the same color count which is 8 but with so green will be white when you use urxvt. 8 for normal colors 16 for bright dark and urxvt is 256 which is 16 but can use any of the 256 colors for 16.
    just to clarify you have commented out your colors 4-15 and your green and red is weird, and htop aswell as moc is 8 bit. moc theme_yellow_red is default for background so it will use urxvts background
    Haahaha, that is simple. And it works!!!
    I didn't bother with commenting that because i thought they are not applied. Anyway, thanks man. My urxvt terminal si grateful to you and your thorough explanation. SOLVED!

  • [SOLVED] urxvt + screen + zsh, title is not displayed correctly

    I use urxvt and screen inside it. The screen's  title is set up to display the current program and the window number. However after changing from bash to zsh, it always display "zsh" instead of "vim" or "top" which is currently running.
    my screenrc:
    # This is an example for the global screenrc file.
    # You may want to install this file as /usr/local/etc/screenrc.
    # Check config.h for the exact location.
    # Flaws of termcap and standard settings are done here.
    startup_message off
    #defflow on # will force screen to process ^S/^Q
    deflogin on
    #autodetach off
    vbell on
    vbell_msg " Wuff ---- Wuff!! "
    # all termcap entries are now duplicated as terminfo entries.
    # only difference should be the slightly modified syntax, and check for
    # terminfo entries, that are already corected in the database.
    # G0 we have a SEMI-GRAPHICS-CHARACTER-MODE
    # WS this sequence resizes our window.
    # cs this sequence changes the scrollregion
    # hs@ we have no hardware statusline. screen will only believe that
    # there is a hardware status line if hs,ts,fs,ds are all set.
    # ts to statusline
    # fs from statusline
    # ds delete statusline
    # al add one line
    # AL add multiple lines
    # dl delete one line
    # DL delete multiple lines
    # ic insert one char (space)
    # IC insert multiple chars
    # nx terminal uses xon/xoff
    termcap facit|vt100|xterm LP:G0
    terminfo facit|vt100|xterm LP:G0
    #the vt100 description does not mention "dl". *sigh*
    termcap vt100 dl=5\E[M
    terminfo vt100 dl=5\E[M
    #facit's "al" / "dl" are buggy if the current / last line
    #contain attributes...
    termcap facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%d;%dr:ic@
    terminfo facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%p1%d;%p2%dr:ic@
    #make sun termcap/info better
    termcap sun 'up=^K:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:IC=\E[%d@:WS=1000\E[8;%d;%dt'
    terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC:IC=\E[%p1%d@:WS=\E[8;%p1%d;%p2%dt$<1000>'
    #xterm understands both im/ic and doesn't have a status line.
    #Note: Do not specify im and ic in the real termcap/info file as
    #some programs (e.g. vi) will (no,no, may (jw)) not work anymore.
    termcap xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
    terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
    # Long time I had this in my private screenrc file. But many people
    # seem to want it (jw):
    # we do not want the width to change to 80 characters on startup:
    # on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:
    termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
    terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
    # Do not use xterms alternate window buffer.
    # This one would not add lines to the scrollback buffer.
    #termcap xterm|xterms|xs ti=\E7\E[?47l
    #terminfo xterm|xterms|xs ti=\E7\E[?47l
    #make hp700 termcap/info better
    termcap hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
    terminfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
    #wyse-75-42 must have defflow control (xo = "terminal uses xon/xoff")
    #(nowadays: nx = padding doesn't work, have to use xon/off)
    #essential to have it here, as this is a slow terminal.
    termcap wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
    terminfo wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
    #remove some stupid / dangerous key bindings
    bind ^k
    #bind L
    bind ^\
    #make them better
    bind \\ quit
    bind K kill
    bind I login on
    bind O login off
    bind } history
    # Modified Liberty, Display the status on the gnome terminal title
    #hardstatus string "[screen %n%?: %t%?] %h"
    termcapinfo xterm*|rxvt*|urxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
    hardstatus string "[screen: %w] %h"
    # scrollback buffer size
    defscrollback 5000
    Solved by adding this to .zshrc
    case $TERM in
    xterm*|rxvt*|screen*)
    precmd() { print -Pn "\e]0;%m:%~\a" }
    preexec () { print -Pn "\e]0;$1\a" }
    esac
    Last edited by helloworld1 (2011-04-12 16:25:53)

    I have
    defhstatus "^Et"
    in my .screenrc. Maybe there's something you like even better, e.g. there's also "^EH" which I used to use. Just checkout what can be done with defhstatus, you'll find what you want.

  • [Solved] URXVT cannot display Japanese Characters

    Solved:
    I had a typo in my locale.conf, setting to an invalid locale - apparently that did it.
    Thanks for the help!
    Hi everybody!
    I just now re-installed Arch because I switched hard-drives (to an SSD) and everything seems to be working again, apart from one thing:
    urxvt doesn't display Japanese Characters, just questionmarks instead when using ls and garbage characters otherwise.
    I literally copied and pasted my ~/.Xresources from my old install, so I'm not quite sure what went wrong.
    This is said file:
    Urxvt.urgentOnBell: True
    urxvt*cursorBlink: false
    !urxvt*internalBorder: 0
    !urxvt*externalBorder: 0
    URxvt*.depth: 32
    URxvt*.background: [85]#000000
    ! URxvt.scrollstyle: plain
    URxvt.scrollBar: false
    URxvt.foreground: grey
    ! red
    URxvt.color1: #CC0000
    URxvt.color9: #B33838
    ! blue
    URxvt.color4: #3465A4
    URxvt.color12: #729FCF
    ! yellow
    Urxvt.color3: #b48363
    URxvt.color11: #d49b4e
    !URxvt.font: 8x13
    urxvt*font: xft:DejaVu Sans Mono:size=8:antialas=true,xft:Kochi Gothic:size=8
    This is what fc-list has to say:
    % fc-list | grep "Kochi\|DejaVuSansMono"
    /usr/share/fonts/TTF/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
    /usr/share/fonts/TTF/kochi-mincho-subst.ttf: Kochi Mincho,æ±é¢¨ææ:style=Regular,æ¨æº
    /usr/share/fonts/TTF/kochi-gothic-subst.ttf: Kochi Gothic,æ±é¢¨ã´ã·ãã¯:style=Regular,æ¨æº
    /usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
    /usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
    /usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
    I already tried re-installing the fonts and I also tried out alternative fonts, but nothing seems to work.
    All the other settings from the ~/.Xresources file are applied perfectly, so I'm not quite sure where to look for the error.
    My browser (dwb) displays japanese characters just fine.
    Any help is greatly appreciated
    Edit: I just realized that urxvt seems to completely ignore the fonts line - I had that problem once before, when I used the AMD Catalyst driver and not the open source one.
    I now have an Nvidia card and started using the propietary driver - maybe that has something to do with it?
    Last edited by lorizean (2013-12-02 13:16:14)

    Works here:
    URxvt*depth: 32
    URxvt*buffered: true
    URxvt*termName: rxvt-256color
    URxvt.font: xft:Terminus:pixelsize=12:antialias=false
    urxvt.imLocale: pl_PL.ISO8859-2
    What's the output of 'localectl'?

  • [SOLVED] urxvt/console spanish characters

    i didn't bother with this "issue" i have, because rarely i type something in spanish (my native language) in urxvt, but lately i had to use msn a lot, (yeah i hate it too, but here people use that... and facebook) so, i have to use a lot the "n" and "a,e,i,o,u" characters, the thing is, i have no problem in X apps typing those characters as you can see, but in console and urxvt i can see the "a,e,i,o,u" characters, but i cannot type them, for example, if a text file has them, i can see them in vim, but im not able to type them, but the "n" character i cannot see neither in console nor urxvt, cant see it and cannot type it, only a "?" when it is displayed...
    /etc/rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="es_AR.utf8"
    HARDWARECLOCK="localtime"
    USEDIRECTISA="no"
    TIMEZONE="America/Argentina/Buenos_Aires"
    KEYMAP="es"
    CONSOLEFONT=""
    CONSOLEMAP="es"
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(acpi-cpufreq mii r8169 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd !snd-pcsp snd-hda-intel soundcore r8180 uvcvideo joydev cups usblp)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="aleyscha"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    wlan0="wlan0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.0.255"
    INTERFACES=(wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.1.1"
    ROUTES=(gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(Link)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng network netfs crond @hal @cpufreq @alsa @gpm @sensors @wicd @bitlbee)
    locale -a output:
    [aleyscha@aleyscha 90 ~ 09:35]$ locale -a
    C
    POSIX
    en_US
    en_US.iso88591
    en_US.utf8
    es_AR
    es_AR.iso88591
    es_AR.utf8
    .bashrc:
    PS1='\033[?17;0;127c[\u@\h \# \W \A]\$ '
    # stop blinking cursor in console
    #if [ $TERM = 'linux' -a $SHELL = '/bin/bash' ] ; then
    # PS1='\033[?17;0;40c[\u@\h \# \W \A]\$ '
    #else PS1='[\u@\h \# \W \A]\$ '
    #fi
    ### Paths ###
    PATH=$PATH:${HOME}/bin
    export CDPATH=.:/sda4/Video:/sda4/Audio/Music:/sda4/Movies:/sda4/downloads
    export PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
    export LC_ALL=C
    export PAGER=less
    export EDITOR=vim
    export HISTCONTROL="ignoredups"
    export MOZ_DISABLE_PANGO=1
    HISTFILE=~/.history
    HISTSIZE=4000
    SAVEHIST=2000
    ### autocorrects cd misspellings, 'cd /sur/src/linus' >> 'cd /usr/src/linux' ###
    shopt -s cdspell
    ### Aliases ###
    alias hi="history"
    alias mountsdd="sudo mount /dev/sdd1 /sdd1"
    alias lsl="ls -l --group-directories-first --color=auto -F" #ls -l --group-directories-first --time-style=+"%Y-%m-%d %H:%M" --color=auto -F
    alias ls="ls --group-directories-first --color=auto -F" #ls --group-directories-first --time-style=+"%Y-%m-%d %H:%M" --color=auto -F
    alias pacman="sudo pacman"
    alias y="yaourt -Syu --aur"
    alias yy="yes | yaourt -Syu --aur"
    alias x="startx"
    alias get_log="sudo tail -f /var/log/everything.log"
    alias root="sudo su"
    alias Reboot="sudo reboot"
    alias Shutdown="sudo shutdown -h now"
    alias cp="cp -vi"
    alias mv="mv -vi"
    alias du="du -h"
    alias df="df -h"
    alias isoinfo="isoinfo -d -i"
    alias log_everything="sudo tail -f /var/log/everything.log"
    alias isolist="isoinfo -f -i"
    alias mocp="mocp -T orpheus"
    alias lsdev="ls /dev | grep sd"
    alias lsuuid="ls -l /dev/disk/by-uuid/"
    alias sync="rsync -r -n -t -p -o -g -v --progress --delete -l"
    alias gmail="elinks www.gmail.com"
    alias getlive="GetLive --config-file .getliverc"
    alias irssi="irssi -n lean2501"
    alias Wget="wget -P /sda4/downloads"
    alias compilei686="gcc -march=athlon -O2 -pipe -fomit-frame-pointer"
    alias compile="gcc -O2 -Wall -pedantic"
    alias diskcheck="e2fsck -v"
    alias colem32="~/bin/colem/colem32"
    alias vgb="~/bin/vgb/vgb"
    alias vgba="~/bin/vgba/vgba32"
    alias ines="~/bin/ines/ines32"
    alias clamclean="clamscan --recursive --infected --bell --remove /sda4/downloads/"
    alias cdo="eject /dev/cdrom"
    alias cdc="eject -t /dev/cdrom"
    alias mx="chmod a+x"
    alias 000="chmod 000"
    alias 644="chmod 644"
    alias 755="chmod 755"
    alias resreset="xrandr --size 1024x600"
    alias :q="exit"
    alias pebrot="pebrot 2> /dev/null"
    alias mplayfb="mplayer -zoom -x 1024 -y 600"
    alias cplay="cplay /sda4/Audio/Music/"
    alias strace="strace -e trace=file"
    alias vifm="vifm ~ /sda4/downloads/"
    alias doom="chocolate-doom -iwad /sda4/bin/remakes/ID/DOOM.WAD"
    alias doom2="chocolate-doom -iwad /sda4/bin/remakes/ID/DOOM2.WAD"
    alias heretic="chocolate-heretic -iwad /sda4/bin/remakes/ID/HERETIC.WAD"
    alias hexen="chocolate-hexen -iwad /sda4/bin/remakes/ID/HEXEN.WAD"
    ### Functions ###
    function aurget {
    cd ~/bin/arch_packages
    wget "http://aur.archlinux.org/packages/$1/$1.tar.gz" -O - | tar xzf -
    cd $1
    # mkmv - creates a new directory and moves the file into it, in 1 step
    # Usage: mkmv <file> <directory>
    mkmv() {
    mkdir "$2"
    mv "$1" "$2"
    # nh - run command detached from terminal and without output
    # Usage: nh <command>
    nh() {
    nohup "$@" &>/dev/null &
    ### Bash Completion ###
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi
    ### Screen Function Retach/list :: s ###
    function s {
    if [[ $1 ]]; then
    screen -r $1
    else
    screen -ls
    fi
    ### Screen Function Init_w/title / Init :: S ###
    function S {
    if [[ $1 ]]; then
    screen -S $1
    else
    screen -ls
    fi
    ### Screen Function Mirror/List :: sx ###
    function sx {
    if [[ $1 ]]; then
    screen -x $1
    else
    screen -ls
    fi
    ### Screen Function Mirror in terminal :: scr ###
    function scr {
    #case $TERM in
    # xterm*|rxvt*)
    if screen -ls | grep -q Main; then
    screen -xr Main
    else
    screen -S Main
    fi
    #esac
    ### dtach function ###
    function detach {
    if [ -S /tmp/$1.dtach ]; then
    dtach -a /tmp/$1.dtach
    else
    dtach -c /tmp/$1.dtach $1
    fi
    ### Extract Archives ###
    extract () {
    if [ -f $1 ] ; then
    case $1 in
    *.tar.bz2) tar xjvf $1 ;;
    *.tar.gz) tar xzvf $1 ;;
    *.bz2) bzip2 -d $1 ;;
    *.rar) unrar2dir $1 ;;
    *.gz) gunzip $1 ;;
    *.tar) tar xf $1 ;;
    *.tbz2) tar xjf $1 ;;
    *.tgz) tar xzf $1 ;;
    *.zip) unzip2dir $1 ;;
    *.Z) uncompress $1 ;;
    *.7z) 7z x $1 ;;
    *.ace) unace x $1 ;;
    *) echo "'$1' cannot be extracted via extract()" ;;
    esac
    else
    echo "'$1' is not a valid file"
    fi
    #bu - Back Up a file. Usage "bu filename.txt"
    bu () { cp $1 ${1}-`date +%Y%m%d%H%M`.backup ; }
    if [ "$TERM" = "linux" ]; then
    echo -en "\e]P0222222" #black
    echo -en "\e]P8222222" #darkgrey
    echo -en "\e]P1803232" #darkred
    echo -en "\e]P9982b2b" #red
    echo -en "\e]P25b762f" #darkgreen
    echo -en "\e]PA89b83f" #green
    echo -en "\e]P3aa9943" #brown
    echo -en "\e]PBefef60" #yellow
    echo -en "\e]P4324c80" #darkblue
    echo -en "\e]PC2b4f98" #blue
    echo -en "\e]P5706c9a" #darkmagenta
    echo -en "\e]PD826ab1" #magenta
    echo -en "\e]P692b19e" #darkcyan
    echo -en "\e]PEa1cdcd" #cyan
    echo -en "\e]P7ffffff" #lightgrey
    echo -en "\e]PFdedede" #white
    clear #for background artifacting
    fi
    thanks for read!
    Last edited by leo2501 (2009-05-07 10:45:29)

    well... problem solved... the secret was...
    in /etc/rc.conf
    LOCALE="es_AR.utf8"
    HARDWARECLOCK="localtime"
    USEDIRECTISA="no"
    TIMEZONE="America/Argentina/Buenos_Aires"
    KEYMAP="es"
    CONSOLEFONT=""
    CONSOLEMAP=""
    USECOLOR="yes"
    in .bashrc
    export LC_ALL=en_US.utf8 #for arch to show all interactive messages in english instead of spanish (argentina)
    or in .profile
    export LC_MESSAGES=en_US.utf8
    now i can see and type spanish chars in urxvt

  • [Solved]urxvt does not search the font for emojis while gnome-terminal

    Hi, I'm using urxvt and am having some problems setting up fonts. These are my URxvt parameters specifying the fonts
    URxvt*font: xft:Inconsolata-dz for Powerline:style=Semibold:pixelsize=14:antialias=true:hinting=slight, \
    xft:PowerlineSymbols:pixelsize=14:antialias=true:hinting=slight, \
    xft:Symbola:pixelsize=14:antialias=true:hinting=slight
    Now, the emojis from Symbola does not appear and it only appears as a box
    The same thing when opened in Gnome-terminal properly displays the emojis
    Also, I have tried starting urxvt with the following options
    urxvt -fn "xft:Symbola"
    and it works but as you see Symbola is not a font for your terminal.
    What am I doing wrong here? I've check my previous lines and it is right. Do you guys have any ideas? Much appreciated. I have also tried with other posts stating that Urxvt cannot display symbols properly and have tried them all. If I've missed any please let me know. The strange thing is that it works for Gnome-terminal and Urxvt with only Symbola fonts
    Last edited by decryptedepsilon (2014-07-12 02:40:24)

    bch24 wrote:
    Make sure the System Locale is set to utf-8 locale.
    This sometimes is the issue.
    Many thanks for your reply, I've checked the system locale is proper. I think I have found the solution.
    I think the official rxvt-unicode faq and documentation here states that rxvt-unicode drops pixels while showing some fonts because different fonts use different height and width. In this particular case, Symbola font is too wide and the default letterSpace does not allow it to display correct. If -letsp parameter is set to 4, it is displaying but with about a half pixel missing
    The specific parameters for .Xresources
    URxvt*font: xft:Inconsolata-dz for Powerline,xft:Symbola
    URxvt*letterSpace: 4
    And this gives this which technically solves the issue
    The documentation clearly states the following
    All of this requires that fonts do not lie about character sizes, however: Xft fonts often draw glyphs larger than their acclaimed bounding box, and rxvt-unicode has no way of detecting this (the correct way is to ask for the character bounding box, which unfortunately is wrong in these cases).
    I guess the first thing one should do is to check the documentation thoroughly of the official project page rather than searching countless forums where people have discussed stuff based on trial and error. I guess that's a classic rookie mistake and I feel very good that I'm moving past the rookie phase

  • [SOLVED] qtconfig unable to set GUI Style to GTK+

    Hi there. I'm running Openbox 3.4.7.2-4 with qt 4.5.3-3 and gtk-rezlooks-engine 0.6-8.
    When I run qtconfig and set the GUI style to GTK+, it gives the error QGtkStyle cannot be used together with the GTK_Qt engine. This makes no sense because I don't even have the gtk-qt-engine package installed.
    I read the post here http://wiki.archlinux.org/index.php/Uni … #QGtkStyle and added
    export GTK2_RC_FILES="`pwd`/.gtkrc-2.0"
    to my .xinitrc with no luck.
    You can see my .xinitrc at http://pastebin.org/54730
    Thanks
    Last edited by zozobra (2009-11-19 22:05:18)

    hmmm, Openbox here,
    and this is how mine all looks
    and here is my autostart.sh
    export OOO_FORCE_DESKTOP=gnome
    export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
    You can see VLC and Openoffcice behaving badly and behaving differently to each other.
    qtconfig fails to help. I have tried all the tips I have found.
    SOLVED my problem by removing trolltech.conf and reinstalling qt package. qtconfig works great now.
    Last edited by tawan (2010-03-04 09:42:39)

Maybe you are looking for

  • How to change message text encoding in multiple e-mail messages?

    Hello! I'm newcomer in AppleScript. I have imported a lot of email messages from mbox. The problem is that some of messages are displayed in correct russian encoding (KOI8-R) but other messages displayed with incorrect encoding. So i need manually se

  • Upload File in servlet

    hi , i upload a file in jsp and in the servlet i want to read the contents of the file not store it. can u provide me with a simple basic code to do this. i dont want to use any 3rd party classes for this purpose. THanks

  • Text messages and OS 3

    Hi there, can anyone tell me if my text messages will be wiped if I upgrade to OS3. I have some important texts on my phone that I can't lose. I was also wondering if there are any applications I can use where I can save the texts. I tried syphone an

  • Old Iphone, no SIM, tried to upgrade now bricked

    I searched here for this exact issue but found nothing that matched, if it has been asked and answered, my apologies. Got my 3G up and running. Old phone had SIM removed for new. I tried to upgrade the old Iphone to 2.0 and it is now bricked. 911 ser

  • Create Service Contract using BAPI_SLSTRANSACT_CREATEMULTI

    Hi, In my requirement, I have to create a Service Contract from flat file by using BAPI - BAPI_SLSTRANSACT_CREATEMULTI and data which are comming from flat files are, <b>Serial number, Sold-to party, Ship-to party, Installation date, Contract start d