SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#2 Re: WM/DE Talk » The great #! forums DWM thread » 2014-08-04 23:26:03

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

#3 Re: WM/DE Talk » The great #! forums DWM thread » 2014-08-02 19:56:03

Maybe try running it as a shell command so the shell fills in the variable each time you run the command, e.g.

static Key keys[] = {
    /* modifier    key    function    argument */
    ...
    { MODKEY,      XK_9,  spawn,      SHCMD("9menu -popup -teleport -file $HOME/.9menurc -bg #101010 -fg #AEA888 -font -*-ohsnap-medium-r-normal-*-14-*-*-*-*-*-*-*") },
    ...
};

You just put it in the keys array, you don't define it as a static command in the section above that in config.h

#4 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-17 22:27:34

The keycodes need to be changed like this for dwm to recognise them:
        output of `xev'                       input for config.h
        =============                     ================
        XF86Eject                        --> XF86XK_Eject
        XF86AudioRaiseVolume  --> XF86XK_AudioRaiseVolume

#6 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-17 03:08:15

No problem  smile
I've added a screenshot too.

#7 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-17 02:25:14

static const char normbordercolor[] = "#000000";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#222222";
static const char selfgcolor[] = "#22bbee";

#8 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-16 22:28:00

yourusername ALL=NOPASSWD: /usr/sbin/pm-hibernate, /usr/sbin/pm-suspend, /bin/killall nm-applet

#9 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-15 22:53:13

# Turn Super/Windows key into XF86Launch1
xmodmap -e "keycode 133 = XF86Launch1"

#10 Re: WM/DE Talk » The great #! forums DWM thread » 2014-07-12 19:43:56

...
exec ck-launch-session dbus-launch dwm

#11 Re: Feedback & Suggestions » copy code to clipboard » 2014-07-11 21:26:49

An easy way to select text:
  - Left-click once where you want to start selection
  - Go to where you want to end selection
  - Hold <shift> and left click once to choose the end point of selection

#12 Re: Help & Support (Crunchbang 11 "Waldorf") » Anyway to reduce RAM usage? » 2013-06-08 19:30:09

Also, be aware that the kernel will adapt how it runs depending on how much ram you have.
In other words, the exact same applications will use less ram (according to top/free/htop) if you have less total ram available.
In the eyes of the kernel, unused ram is wasted ram.

11% used looks pretty good to me, as you have lots of stuff running.

#13 Re: Tips, Tricks & Scripts » How to - Mount removeable devices from the command line the easy way » 2013-05-26 09:24:32

Yep, should be no problem in /media or /mnt if that's your preference.
Check out 'man mount' for more options.

#14 Tips, Tricks & Scripts » How to - Mount removeable devices from the command line the easy way » 2013-05-26 08:42:43

Loomx
Replies: 2
/dev/sdb1    /home/jonny/USB    auto    rw,user,noauto,noatime,fmask=133    0    0

#15 Re: Help & Support (Crunchbang 11 "Waldorf") » configuring PS1 » 2013-05-19 08:38:15

PS1='\[\033[0;34m\]\u \[\033[0;33m\]\w \[\033[m\]'  # blue=34 red=31 green=32

#19 Re: Tips, Tricks & Scripts » Using if and else » 2013-04-21 09:48:45

Another thing - with your 'case' statements, think about what would happen if you entered something unexpected.
It might not matter, depending on the context, but it is good practice to put a 'catch-all' at the end of the options, e.g.

case $answer in;
    yes)
        do something ;;
    no)
        do something else ;;
    *)
        echo error message ;;
esac

Nice work!

#20 Re: Tips, Tricks & Scripts » Using if and else » 2013-04-20 19:51:35

Good explanation, Nadir.

To me, the second example is the easiest to understand. The only thing if would add is to send the output to /dev/null as we are only interested in whether the command works or not.

#!/usr/bin/env bash
if  ping -w 5 google.com >/dev/null 2>&1
then
        echo "network works" 
else
        echo "network down"
fi

As a note, you don't need bash for this, so it could just start with "#!/bin/sh"

#22 Re: Tips, Tricks & Scripts » The Great #! forums dmenu hacking thread » 2013-04-14 03:17:30

input="$( printf "" | $HOME/bin/dm.sh -p "Search file:" )"

#25 Re: Help & Support (Testing/Unstable) » Help! Dual-Booting OSX and #! Waldorf. » 2013-04-11 19:05:36

AFAIK there is no way to boot a Mac from a USB stick - I've tried myself many ways, so if you do find that it can be done, let us know how!

Otherwise, I would recommend burning a cd or DVD and installing with that.
My other advice would be to remember to install Grub to the partition you put Linux on ( e.g. /dev/sda4 ) NOT to the master boot record ( /dev/sda )
Good luck.

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo