[solved] DWM and Volti tray icon problem....

I have a problem with the tray icon of dwm.
I set up Faenza dark as icon theme, and all the tray appear white (correctly). Only the volti icons appear black and  I not understand why.
Everyone can help me?
Thanks.
Last edited by monotiz (2011-03-03 11:53:49)

monotiz wrote:
I have a problem with the tray icon of dwm.
I set up Faenza dark as icon theme, and all the tray appear white (correctly). Only the volti icons appear black and  I not understand why.
Everyone can help me?
Thanks.
What you use for system tray in dwm?

Similar Messages

  • [Solved] Dwm and notify-send

    Hello. I've recently changed my WM from Awesome to DWM and I have a problem with it. Namely, notify-send doesn't work. It doesn't show any popup  or error message. It worked well in Awesome. How to fix it?
    Last edited by changs (2009-05-25 16:53:21)

    I believe awesome uses it's own notification library, "naughty". I haven't used dwm to know how notify-send works, but maybe that's the problem?

  • [SOLVED] Dwm and slim problem.

    i installed dwm and slim in my arch and now i cant go back to the terminal to do changes, it puts me on the log in (slim) and i cant close it, i want to do changes in ~/xinitrc.
    Please help me.
    Thanks.
    Last edited by Iason (2010-09-13 07:47:02)

    Alt-F2
    If that doesn't work, Alt-F3
    If that doesn't work, Alt-F4
    If that doesn't work try again but with Ctrl-Alt-F2, etc.
    If that doesn't work come back here.
    edit: *shakes fist at jasonwryan* *sticks out tongue at thayer*
    Last edited by fsckd (2010-09-12 21:47:51)

  • JPopup and System Tray icon

    Hi there,
    I have a problem with my appl. May ý ask you?
    I made a jpopup for using both menu in window and in system tray icon.
    I used
    trayIcon.addMouseListener(new MouseAdapter() {
            public void mouseReleased(MouseEvent e) {
                if (e.isPopupTrigger()) {
                    jpopup.setLocation(e.getX(), e.getY());
                    jpopup.setInvoker(jpopup);
                    jpopup.setVisible(true);
            });showing jpopup on trayicon.
    But it is not closing itself. To close it, i have to push any menuitem on it.
    Normally popup must close itself if we click mouse on anywhere of screen. But mine is not closing? How can fix this?

    regerybets wrote:
    I red but couldnt find any solution.There is no solution. To get the behavior you desire you need to use trayicon.setPopupMenu(...) . But that method only takes a java.awt.PopupMenu , not a javax.swing.JPopupMenu . The code you posted is a workaround for using a JPopupMenu on a tray icon. Consequently, the workaround has a few limitations that you wont be able to fix.
    EDIT
    Well I came up with a workaround for the workaround. I was wondering what to call the new class when I thought "JTrayIcon" sounds ok. Curious, I googled for the name and eventually came across this [blog entry|http://weblogs.java.net/blog/alexfromsun/archive/2008/02/jtrayicon_updat.html] which references [this class|https://swinghelper.dev.java.net/source/browse/swinghelper/src/java/org/jdesktop/swinghelper/tray/JXTrayIcon.java?view=markup] called JXTrayIcon.
    Turns out this class uses the same solution I came up with. An zero-sized-focused dialog is used to detect when to close the popup menu. When the dialog looses focus (by clicking on the desktop for example), the java popup mechanism automatically closes the JPopupMenu. So instead of posting my solution (which is exactly the same) I'll simply reference you to JXTrayIcon and the blog.

  • Muine should use xine-lib (and a tray icon)

    The tray icon is built by default, but not installed.
    And please build muine with the xine-lib backend.
    gStreamer is nice, but too slow (the gap between tracks is too long), uses too much cpu power and gives awful pops when starting/stopping/pauzing
    here's my pkgbuild:
    #$Id: PKGBUILD,v 1.2 2005/06/13 09:50:15 jgc Exp $
    #Maintainer: Jan de Groot <[email protected]>
    #Contributor: Ben Mazer <[email protected]>
    pkgname=muine
    pkgver=0.8.3
    pkgrel=3
    pkgdesc="a music app written in C#"
    url="http://muine.gooeylinux.org"
    depends=('gtk-sharp-2' 'libid3tag' 'flac' 'libvorbis' 'faad2' 'dbus-sharp>=0.33' 'xine-lib')
    makedepends=('intltool')
    install=muine.install
    source=(http://muine.gooeylinux.org/$pkgname-$pkgver.tar.gz)
    md5sums=('4e21eeb8e809bebf1e13540e44a6259d')
    build() {
    [ "$GNOMEDIR" = "" ] && . /etc/profile.d/gnome.sh
    [ "$MONO_PATH" = "" ] && . /etc/profile.d/mono.sh
    # get rid of .wapi errors in fakeroot
    mkdir -p $startdir/pkg/weird
    export MONO_SHARED_DIR=$startdir/pkg/weird
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/opt/gnome --enable-xine
    make || return 1
    make DESTDIR=$startdir/pkg GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 install
    mkdir -d $startdir/pkg/opt/gnome/lib/muine/plugins
    cp $startdir/src/$pkgname-$pkgver/plugins/TrayIcon.* $startdir/pkg/opt/gnome/lib/muine/plugins
    # housecleaning
    rm -rf $startdir/pkg/weird

    phrakture wrote:that's exactly the point though - with the voting feature of the AUR, the maintainer could easilly tell "hmm, the xine backend is much more popular"
    People are a bit lazy, they often forget to vote
    I think contacting the maintainer directly, or discussing it in the forums is better
    just my 2 cents
    phrakture wrote:the AUR only holds PKGBUILDs anyway, so adding 100 of them like that would be about 20-30K... no big deal, space is cheap 8)
    true but they'd have to be synced with the 'official' version all of the time ... well, ideally
    phrakture wrote:I have no idea - never touched gstreamer before, nor muine - I use mpd for audio and xine for video... does aplay count too? heh
    I fell in love with the 'album' play feature (yes I'm one of those guy's)

  • [Solved] DWM and extra key's.

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

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

  • Jtree Select node and change leafs icon problem

    Hi All,
    i create a tree and implement a TreeSelectionListener:
    my mission is whenever i select a node i need to change the icon of this node (for now.later i will have to find if it have childrens).
    import java.awt.Color;
    import java.awt.Component;
    import java.util.Enumeration;
    import java.util.NoSuchElementException;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.swing.JTree;
    import javax.swing.event.TreeExpansionEvent;
    import javax.swing.event.TreeExpansionListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreeNode;
    import javax.swing.tree.TreePath;
    public class TreeView{
         DefaultMutableTreeNode top;
         JTree tree ;
         Color frameColor;
         public static ImageIcon NoTSelIcon;
         public static ImageIcon SelIcon;
        public static String[] name= new String[8];
         public TreeView(Color BackColor) {
              // TODO Auto-generated constructor stub
            top =  new DefaultMutableTreeNode("Diagnostics");
            this.frameColor=BackColor;
             SelIcon = createImageIcon("../Resource/Images/Select.gif");
             if (SelIcon == null)
                 System.err.println("Tutorial icon missing; using default.");
             NoTSelIcon = createImageIcon("../Resource/Images/NotSelc.gif");
               if (NoTSelIcon == null)
                 System.err.println("Tutorial icon missing; using default.");
         public Component createTreeComponents(){
                //Create the nodes.
                 createNodes(top);
            //Create a tree that allows one selection at a time.
            tree = new JTree(top);
            //TREE LISTENERS
            //Treeselction listener
            Handler hObject = new Handler();
            tree.addTreeSelectionListener(hObject);
           //Tree expand/collapse listener
            HandlerExpansionListener hObjectExpan = new HandlerExpansionListener();
            tree.addTreeExpansionListener(hObjectExpan);
    //       tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
            //set tree background
            tree.setBackground(frameColor);
             tree.setCellRenderer(new OverrideTreeCellRenderer(frameColor,SelIcon,NoTSelIcon));
            return tree;
          private void createNodes(DefaultMutableTreeNode top) {
                 DefaultMutableTreeNode category = null;
                 DefaultMutableTreeNode SubCategory = null;
                 DefaultMutableTreeNode SubCategoryBasee = null;
                 DefaultMutableTreeNode SubSubCategoryBasee = null;
                 category = new DefaultMutableTreeNode("Dfe");
                 top.add(category);
                 //Sub test visible
                 SubCategory = new DefaultMutableTreeNode("Test Visible");
                 category.add(SubCategory);
                 SubCategory.add(new DefaultMutableTreeNode("Son 1"));
                 SubCategory.add(new DefaultMutableTreeNode("Son 2"));
                 SubSubCategoryBasee = new DefaultMutableTreeNode("Test Base");
                 SubSubCategoryBasee.add(new DefaultMutableTreeNode("Grandson 1"));
                 SubSubCategoryBasee.add(new DefaultMutableTreeNode("Grandson 2"));
                 SubCategory.add(SubSubCategoryBasee);
          class Handler implements TreeSelectionListener {
                   public void valueChanged(TreeSelectionEvent arg0) {
                        // TODO Auto-generated method stub
                        System.out.println("treeSelect event ");
                        TreePath trph;
                        trph=arg0.getNewLeadSelectionPath();
                        int count=trph.getPathCount();
                        DefaultMutableTreeNode Selnode = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                        String Name = (String)Selnode.getUserObject();
                        setSelected(Selnode,true);
                        int number_ofnodes=getNodeCountBelow((TreeModel)tree.getModel() , Selnode, false);
                        System.out.println("The Number of nodes under "+Name+"="+number_ofnodes);
                        tree.setCellRenderer(new IconRenderer(SelIcon,NoTSelIcon,frameColor));
          class HandlerExpansionListener implements TreeExpansionListener {
                   public void valueChanged(TreeSelectionEvent arg0) {
                        // TODO Auto-generated method stub
                        DefaultMutableTreeNode node = (DefaultMutableTreeNode)  tree.getLastSelectedPathComponent();
                        if (node == null) return;
                      }     // The inner class
                   public void treeCollapsed(TreeExpansionEvent arg0) {
                        // TODO Auto-generated method stub
                        System.out.println("treeCollapsed event ");
                   public void treeExpanded(TreeExpansionEvent arg0) {
                        // TODO Auto-generated method stub
                        System.out.println("treeExpanded event ");
          /** Returns an ImageIcon, or null if the path was invalid. */
             protected static ImageIcon createImageIcon(String path) {
                  //ImageIcon imcon= new ImageIcon(path);
                  //return imcon;
                 java.net.URL imgURL = TreeView.class.getResource(path);
                 if (imgURL != null) {
                     return new ImageIcon(imgURL);
                 } else {
                     System.err.println("Couldn't find file: " + path);
                     return null;
             DefaultMutableTreeNode newnode;
             public void setSelected(DefaultMutableTreeNode Selnode ,boolean isSelected)
                    Enumeration Enchilds=Selnode.children();//ENUMRATE ALL CHILDS FOR THIS NODE
                 if (Enchilds != null)
                      while (Enchilds.hasMoreElements())
                           newnode=(DefaultMutableTreeNode)Enchilds.nextElement();
                           String NameSel = (String)newnode.getUserObject();
                           setSelected(newnode,isSelected);
             //GETTING THE TREE DEPTH
             public int getNodeCountBelow(TreeModel model, Object node, boolean includeInitialNode)
                 int n = includeInitialNode ? 1 : 0;
                 for (int i = 0; i < model.getChildCount(node); i ++)
                     n += getNodeCountBelow(model, model.getChild(node, i), true);
                 return n;
    import java.awt.Color;
    import java.awt.Component;
    import java.util.Enumeration;
    import java.util.NoSuchElementException;
    import javax.swing.Icon;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    public class IconRenderer extends DefaultTreeCellRenderer {
         private static final long serialVersionUID = 1L;
         Icon SelectedIcon;
         Icon NotSelectedIcon;
         Color BackgroundColor;
         boolean Selected=false;
         boolean Leaf=false;
         boolean IsItaChild=false;
         DefaultMutableTreeNode SelctedNode=null;
        public IconRenderer(Icon SelIcon,Icon NoTSelIcon,Color Bacground) {
             SelectedIcon = SelIcon;
             NotSelectedIcon = NoTSelIcon;
             BackgroundColor=Bacground;
             setBackgroundNonSelectionColor(BackgroundColor);
        public Component getTreeCellRendererComponent(JTree tree,Object value,boolean sel,boolean expanded,
                                                        boolean leaf,int row,boolean hasFocus)
             super.getTreeCellRendererComponent(tree, value, sel,expanded, leaf, row,hasFocus);
             Selected=sel;
             Leaf=leaf;
             DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
             String s2 = (String)node.getUserObject();
       return this;
    }my problem is :
    when i select a node the the method "getTreeCellRendererComponent"
    start to run on the entire tree from buttom to top and than from top to buttom.
    for me it waste of time because if has say 100 nodes it wont botthers me.
    but i have 20000 nodes and more its take a time.
    and for all this nodes i have to make compares.
    is there a way to force the DefaultTreeCellRenderer to not run the entire tree???
    Thanks

    You need to make sure that your TreeModel interprets your group nodes to be non-leaf nodes (one of the methods in the TreeModel interface is called isLeaf). If you are using a DefaultTreeModel with DefaultMutableTreeNode objects, you can use the askAllowsChildren property of DefaultTreeModel and the allowsChildren property of DefaultMutableTreeNode to control this. See the API for more details:
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/tree/DefaultTreeModel.html
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/tree/DefaultMutableTreeNode.html

  • [Solved] $LANG and zsh prompt color problems

    Hi,
    I recently discovered, trying to use Newsbeuter, that, in X, certain parts of my profile aren't set. Until now it only seemed to be $LANG, which is empty if I echo it from urxvt in XMonad, but yields the correct setting if I do the same in a tty.
    To make things worse now, my zsh seems to be acting up. I have differently colored prompts for my normal user and root. But since a few days ago, the root colors aren't applied unless I source .zshrc again after sudo-ing.
    I updated a lot recently and it's gotten hard to track these issues, especially the $LANG one, to a specific update. The only thing I know is that my desktop, running Kdemod, doesn't have these problems.
    I'm using Slim and XMonad. Neither issue is limited to a certain terminal.
    Most of my configs can be found in my GitHub dotfiles repository. If anything's missing to get a clear picture, ask for it.
    My rc.conf can be found here [Gist].
    Last edited by count-corrupt (2010-08-22 13:33:06)

    jac wrote:
    I finally went through the new sudoers file and got mine to work, see this thread for details. Using that, and using a workaround for libetc, your prompt works for me.
    You appear not to use libetc, but if you do and don't also have root set up to use libetc, you will need to create a link to/from ~/.zshrc from/to ~/.config/zshrc
    I actually just solved it in another way. Your original point, that sudo changed it's default behavior was the key. In the official zsh documentation somewhere it says that all settings that are wanted for root should be put into /root/.zshrc. I just did that and it works.
    Your solution works too by the way. Just enabling
    Defaults env_keep += "HOME"
    does the trick and also (logically) re-enables other things that I hadn't even realized were gone yet like syntax highlighting in vim. I guess I should read into the nature of said privilige escalation problems. Maybe there's a way to selectively keep parts of HOME.
    So thank you very much for the help.

  • [SOLVED]dwm and Diablo II?

    Hi all,
    Quick question--well maybe?
    Decided to plunge into the world of tiling wm's and have so far decided on dwm.  So far really like it and it helps out my old T21 Thinkpad.  I do play some games on the laptop when I'm out of town but Diablo II in wine doesn't seem to work properly.  I've searched and googled to death and haven't really found a definitive answer.  It just seems to resize the screen and then freezes.
    Edit: To tell the truth, it doesn't really freeze.  I can still bring up another terminal or something else but the resolution is all messed up.
    Last edited by bgc1954 (2008-11-19 05:50:25)

    1)  Yes, I run both e17 and pekwm on this laptop.  It works in both other wm's.
    2)  Haven't tried running it from terminal yet.  I'll try that and see what happens, though.
    3)  No changes made other than installing dwm.
    Edit: well, here's what spits out when run from terminal:
    [brian@archlaptop ~]$ wine 'c:\\Program Files\\Diablo II\\Diablo II.exe'
    [brian@archlaptop ~]$ fixme:win:EnumDisplayDevicesW ((null),0,0x33ebfc,0x00000000), stub!
    fixme:xrandr:X11DRV_XRandR_SetCurrentMode Cannot change screen BPP from 16 to 8
    fixme:d3d:IWineD3DDeviceImpl_CreateSwapChain The app requests more than one back buffer, this can't be supported properly. Please configure the application to use double buffering(=1 back buffer) if possible
    fixme:xrandr:X11DRV_XRandR_SetCurrentMode Cannot change screen BPP from 16 to 8
    fixme:d3d:IWineD3DDeviceImpl_CreateSwapChain The app requests more than one back buffer, this can't be supported properly. Please configure the application to use double buffering(=1 back buffer) if possible
    err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x132200): Want to change the window parameters of HWND 0x20028, but another style is stored for restoration afterwards
    err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x32 @0! (XRandR)
    And,  I'll try what thayer suggests, thanks.   Yeh, I tried setting float before running the script I use and didn't help.  I'll try the config.h route next.
    Last edited by bgc1954 (2008-11-19 05:13:51)

  • [SOLVED] urxvt and Git/SVN commit problem

    I have a problem where SVN and Git cant see that the EDITOR variable is set on my system when I go to make a commit, they both error out because the EDITOR variable (as well as other variables are blank).  This is the error that I get from SVN:
    ┌─(vendion@Tyre Fri, 02 Sep 11)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(08:48)──┘
    └─(/srv/http/juice38)─> sudo svn ci
    svn: Commit failed (details follow):
    svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
    svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
    ┌─(vendion@Tyre Fri, 02 Sep 11)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(08:48)──┘
    └─(/srv/http/juice38)─> echo $EDITOR
    vim
    Git acts the same way but with its own error message (sorry don't have an example of this currently), is there a way to fix this so that Git and SVN will see that I do have an EDITOR set and use it with out having to change terminals (works fine in xterm...)
    Last edited by vendion (2011-09-02 16:08:48)

    Sorry over looked that, when I run sudo to check the EDITOR variable it also has vim set
    ┌─(vendion@Tyre Fri, 02 Sep 11)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(09:42)──┘
    └─(/home/vendion/Projects/TickIt)─> sudo echo $EDITOR
    Password:
    vim

  • [SOLVED] sudo and "command not found" problems

    Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
    sudo echo
    It just goes
    sudo: echo: command not found
    And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
    Please, help me!
    Last edited by mrpedroxx (2008-06-14 13:23:49)

    sudo -V outputs this
    Sudo version 1.6.9p15
    $PATH outputs
    bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
    pacman -Q firefox outputs
    firefox 2.0.0.7-1
    Yeah, maybe I should update it anyway
    And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd

  • Tilting, Volume Buttons and Sound Effects icon problem.

    Every time I tilt my iPad while using it on a flat surface the volume button is contacted and the Sound Effects icon appears.  This is a very poor design in my opinion.  It drives me crazy!!  Any workarounds?

        knothead997cdp - I know that with the iPhone, they say there is an app for everything, but causing you headaches isn't one of them! Judging from the multiple issues you are describing, the master reset is definitely the best course of action to take. You may always stop by at your closest Apple Store for a second opinion. In all honesty, it just sounds like the update went corrupt somewhere. Starting clean should take care of it!
    Let us know how it goes. If you have any additional questions, please do not hesitate to reach out to us!
    Thank you knothead997cdp, take care!
    NicandroN_VZW
    Follow us on Twitter @vzwsupport

  • [SOLVED] SPA122 and Siemens Gigaset CLI problem

    Hi, I'm trying to configure my SPA122 to be used with a couple of Gigaset cordless, it's almost all working fine except the CLI that it's not displayed.
    This is my ATA version:
    Model:
    SPA122, LAN, 2 FXS
    Hardware Version:
    1.0.0
    Boot Version:
    1.0.1 (Oct 6 2011 - 20:04:00)
    Firmware Version:
    1.3.2 (014) May 9 2013
    Recovery Firmware:
    1.0.2 (001)
    WAN MAC Address:
    88:75:56:07:66:66
    Host Name:
    SPA122
    Domain Name:
    (none)
    Serial Number:
    CCQ164105A3
    Current Time:
    Thu, 04 Jul 2013 17:30:32
    Could someone point me in the right direction?
    Thanks in advance,
    Andrea

    Solved,
    I tryed some configuration until found the right working:
    Caller ID Method:   
    Bellcore(N.Amer,China)DTMF(Finland,Sweden)DTMF(Denmark)ETSI DTMFETSI DTMF With PRETSI DTMF After RingETSI FSKETSI FSK With PR(UK)DTMF(Denmark) With PR
    Caller ID FSK Standard:   
    bell 202v.23
    BTW, I'm in Italy, I don't know if it works in others country.
    Regards,
    Andrea

  • Openbox + trayer = teeny tiny tray icons

    I have Debian on this particular laptop (my other laptop is an arch box).  The arch laptop has a lower resolution screen, so this particular issue isn't one.  Anyway, I run Openbox on both with trayer and tint2.  Also, the Debian laptop uses most of the config files from the arch setup so as far as openbox is concerned, there aren't too many debian specific changes. 
    My problem is that no matter how big I make trayer height-wise, the tray icons are tiny.  I can't seem to find a way to make them bigger.  I have liferea running, and the tray icon is supposed to tell me how many new articles there are.  Unfortunately, the number displays so small that I can't read it.  It's like 2 or three pt! 
    I have changed the height value in trayer, which gives me a big grey bar with tiny icons.  Is there a way to enlarge the icons so they useful?
    Thanks
    JTS

    @djszapi:  Yes.  Thank you.  I actually did try [man trayer] first and there is nothing about icon size.  Even putting heighttype to request does nothing because the icons are simply too small.  Thanks for the suggestion though.
    @bandito:  I am considering it, but I have been quite satisfied with trayer up until this high resolution monitor has rendered the icons too small for my tired eyes.  Still, a tray is useless if you can't see whats in it, so it looks like tint2's tray will be activated after all!
    Thanks
    JTS

  • Simple Tray Icon Tool

    I wrote a simple and general tray icon tool, which can be used for general notifications. You can get it from my github.
    When started it waits for command on the standard input. Three commands are accepted:
    icon <file>: sets the icon from file
    tooltip <text>: sets the tooltip text
    hide: hides the icon altogether
    Application examples:
    1. Xmonad layout icons: I tried bmpanel with xmonad (going for a bit more eyecandy than xmobar), but then I loose the status info of xmonad, particulary the layout info (active window and workspaces are shown nicely using ewmh compatibility). With this tool I can define my pretty printer as
    ppLayout = \x -> ("icon " ++ layoutIconPath ++ x ++ ".png")
    everything else empty, and pipe the layout to trayIcon.
    2. Battery monitor: A bit of parsing of the acpi output
    #!/bin/bash
    DIR=`dirname $0`
    while true; do
    acpiOutput=(`acpi`)
    status=${acpiOutput[2]}
    status=${status:0:-1}
    level=${acpiOutput[3]}
    level=${level:0:-1}
    timeRemaining=${acpiOutput[4]}
    if [[ $status == Charging ]]; then
    icon=$DIR/icons/battery-0.png
    else
    icon=$DIR/icons/battery-${level}.png
    fi
    echo icon $icon
    echo tooltip $status, ${level}%, $timeRemaining
    sleep 30
    done | trayIcon
    3. Mail checking
    #!/bin/bash
    DIR=`dirname $0`
    while sleep 30; do $DIR/imap.py; done | trayIcon
    where imap.py is this script adapted for producing the trayIcon commands.
    I hope you find it useful and come up with more applications.
    PS: If you are intereseted I can share the icons I use.

    On the one hand, if you don't specify an icon nothing will be shown (even if a tooltip is specified). On the other hand, if stdin is closed the program terminates, so using echo is not appropriate. Try this "interactive session":
    $ trayIcon
    icon /usr/share/icons/hicolor/16x16/apps/firefox.png
    tooltip test

Maybe you are looking for

  • Username 'disappeared' from System Preferences List

    System is a MAC Mini with 8GB of memory and 250GB SSD with a 4TB Pegasus R4 subsystem.  It is running Mavericks 10.9.4 and Server 3.1.2.  A month or so ago one of its non-admin users disappeared from the System Preferences User list and from the serv

  • Wifi signal but no internet

    About 3 days ago the wifi started to be very weak in my room until it just stopped connecting. The Macbook picks up the wifi signal, but when I try to connect it says "a connection timeout occurred". If I bring the laptop about 10 feet closer to the

  • [ HELP ] FOR statement

    Hello Guys Can you please tell me whether this Matlab code whether correct or not?? this code use to calculate all distances from A to J points on the map ( has longitude and latitude ), the starting point coordinates ( Lat and Long ) is 3.682043 and

  • Query to translate one string column by referring to another 2 table

    I have 3 table which is 1)RATIO_HISTORY ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + RATIO_ID + RATIO_CRITERIA +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  • Integral iSight not compatible with iMovie

    Just found this article in the Apple Knowledge Base. It says that the integral iSight in the new iMac G5 will not work with iMovie. So much for having a $150 iSight camera built into your iMac as it is an iSight in name only, not functionality. http: