You are not logged in.
I don't know exactly, but most probably this is a locale setting.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Beats me.. It works on my desktop but it's hard telling what's on there..lol I use it basically for testing grounds on things before I add to laptop.
I figured out the '--->' issue was just a c/p error with nano... Here's the output now.
[n1x4@LongBow ~][15:22:46]
EDIT: Well, it didn't add the little circles with ?s in them... but it has those for the └─■ and ┌─.
Last edited by n1x4 (2012-02-27 20:29:35)
||github||
Offline
Offline
That would be scratchpad.
Arch64/DWM || My Dropbox referral link
Offline
Exactly "nicknamed" scratchy by JokerBoy for extra cool factor. (Reminds me of the Itchy & Scratchy Show, too)
Offline
It's made by lolilolicon. I just updated it for dwm 6.0 and fixed a bug which affects multi monitor setups.
Arch64/DWM || My Dropbox referral link
Offline
Thanks for that Onyros and jokerboy! :-)
Offline
Offline
Offline
Please resize your image to fit with the guidelines: http://wiki.archlinux.org/index.php/For … s_and_Code
Offline
dwm-6.0
statuscolors, push, cycle, attachaside, bstack, gaplessgrid, pertag, noborder
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";
#define NUMCOLORS 9
static const char colors[NUMCOLORS][ColLast][9] = {
// border foreground background
{ "#292929", "#888888", "#151515" }, // 0 = normal (grey on black)
{ "#fad07a", "#e8e8d3", "#151515" }, // 1 = selected (white on black)
{ "#cf6a4c", "#151515", "#fad07a" }, // 2 = urgent (black on yellow)
{ "#292929", "#cf6a4c", "#151515" }, // 3 = red
{ "#292929", "#99ad6a", "#151515" }, // 4 = green
{ "#292929", "#fad07a", "#151515" }, // 5 = yellow
{ "#292929", "#8197bf", "#151515" }, // 6 = blue
{ "#292929", "#8787af", "#151515" }, // 7 = magenta
{ "#292929", "#668799", "#151515" }, // 8 = cyan
};
static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "feh" , NULL, NULL, 0, True, -1 },
{ "Xfd", NULL, NULL, 0, True, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
#include "bstack.c"
#include "gaplessgrid.c"
static const Layout layouts[] = {
/* symbol arrange function */
{ "[T]", tile }, /* first entry is default */
{ "[F]", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
{ "[b]", bstack },
{ "[G]", gaplessgrid },
};
/* 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", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
static const char *termcmd[] = { "urxvt", NULL };
static const char *volupcmd[] = { "amixer", "-q", "set", "Master", "5%+", NULL };
static const char *voldncmd[] = { "amixer", "-q", "set", "Master", "5%-", NULL };
static const char *mpctog[] = { "ncmpcpp", "toggle", NULL };
static const char *mpcstop[] = { "ncmpcpp", "stop", NULL };
static const char *mpcprev[] = { "ncmpcpp", "prev", NULL };
static const char *mpcnext[] = { "ncmpcpp", "next", NULL };
#include "push.c"
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_Insert, spawn, {.v = mpctog } },
{ MODKEY, XK_Delete, spawn, {.v = mpcstop } },
{ MODKEY, XK_Home, spawn, {.v = mpcprev } },
{ MODKEY, XK_End, spawn, {.v = mpcnext } },
{ MODKEY, XK_Prior, spawn, {.v = volupcmd } },
{ MODKEY, XK_Next, spawn, {.v = voldncmd } },
{ MODKEY, XK_o, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ControlMask, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, pushdown, {0} },
{ MODKEY|ShiftMask, XK_k, pushup, {0} },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.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_b, setlayout, {.v = &layouts[3]} },
{ MODKEY, XK_g, setlayout, {.v = &layouts[3]} },
{ 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 } },
{ MODKEY, XK_p, cycle, {.i = -1 } },
{ MODKEY, XK_n, cycle, {.i = +1 } },
{ MODKEY|ShiftMask, XK_p, tagcycle, {.i = -1 } },
{ MODKEY|ShiftMask, XK_n, tagcycle, {.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 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} },
};
Is there a way of fixing urxvt gaps when resizehints = True?
Solution on the wiki is out of date. Spoke to thestinger (maintainer of rxvt-unicode-patched) on #archlinux and he says that the layoutgaps patched was sent upstream to the community package a while ago.
All configs @ https://github.com/w0ng
Offline
^i stole it off of pbrisbin
updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA
dwm-statusbar from jasonwryan's and dzen2's website
#!/bin/bash
# Status bar for dwm (see http://jasonwryan.com/)
# colors: \x01 grey; \x02 white; \x04 red; \x05 green; \x06 yellow;
# \x07 blue; \x08 magenta; \x09 cyan
print_song_info() {
song_info="$(ncmpcpp --now-playing '{{{{%a - }%t}}|{%f}}' | head -c 60)"
if [[ ! $song_info ]]; then
song_info="Not playing"
fi
echo -e "\x08þ ${song_info}\x01"
}
print_mem_used() {
mem_used="$(free -m | awk '/buffers\/cache/ {print $3}')"
echo -e "${mem_used}M"
}
print_last_msg() {
last_msg="$(cat ~/.irssi_pipe)"
echo -e "\x06ú ${last_msg}\x01"
}
print_gmail_unread() {
gmail_unread="$(find ~/.maildir/gmail/inbox/new -type f | wc -l)"
echo -e "\x06ë $gmail_unread\x01 GM"
}
print_mq_unread() {
mq_unread="$(find ~/.maildir/mq/inbox/new -type f | wc -l)"
echo -e "\x06ë $mq_unread\x01 MQ"
}
print_volume() {
volume="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
echo -e "\x09Þ ${volume}%\x01"
}
print_datetime() {
datetime="$(date "+%I:%M:%S %p")"
echo -e "\x02ð $datetime\x01"
}
# network (see: http://dzen.geekmode.org/dwiki/doku.php?id=dzen:network-meter)
# cpu (see:https://bbs.archlinux.org/viewtopic.php?pid=661641#p661641)
rx_old=$(cat /sys/class/net/eth0/statistics/rx_bytes)
tx_old=$(cat /sys/class/net/eth0/statistics/tx_bytes)
while true; do
# get new cpu idle and total usage
eval $(awk '/^cpu /{print "cpu_idle_now=" $5 \
"; cpu_total_now=" $2+$3+$4+$5 }' /proc/stat)
cpu_interval=$((cpu_total_now-${cpu_total_old:-0}))
# calculate cpu usage (%)
let cpu_used="100 * ($cpu_interval - ($cpu_idle_now-${cpu_idle_old:-0})) \
/ $cpu_interval"
# get new rx/tx counts
rx_now=$(cat /sys/class/net/eth0/statistics/rx_bytes)
tx_now=$(cat /sys/class/net/eth0/statistics/tx_bytes)
# calculate the rate (K) and total (M)
let rx_rate=($rx_now-$rx_old)/1024
let tx_rate=($tx_now-$tx_old)/1024
let rx_total=$rx_now/1048576
let tx_total=$tx_now/1048576
# output vars
print_cpu_used() { echo -e "\x07÷ ${cpu_used}%\x01"; }
print_rx_rate() { echo -e "\x05á ${rx_rate}K\x01"; }
print_rx_total() { echo -e "${rx_total}M"; }
print_tx_rate() { echo -e "\x04ß ${tx_rate}K\x01"; }
print_tx_total() { echo -e "${tx_total}M"; }
# Pipe to status bar, not indented due to printing extra spaces/tabs
xsetroot -name "[ $(print_song_info) ]\
[ $(print_cpu_used) $(print_mem_used) ]\
[ $(print_rx_rate) $(print_rx_total) $(print_tx_rate) $(print_tx_total) ]\
[ $(print_last_msg) ]\
[ $(print_gmail_unread) $(print_mq_unread) ]\
[ $(print_volume) ]\
[ $(print_datetime) ]"
# reset old rates
rx_old=$rx_now
tx_old=$tx_now
cpu_idle_old=$cpu_idle_now
cpu_total_old=$cpu_total_now
# loop stats every 1 second
sleep 1
done
All configs @ https://github.com/w0ng
Offline
^i stole it off of pbrisbin
updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA
dwm-statusbar from jasonwryan's and dzen2's website
I like your config w0ng. Thanks for sharing your stuff.
Offline
updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA
Can you share a patch for xbm icons?
Offline
@OK100
I don't think there is one for the whole statusbar (only seen the xbm layout patch in the DWM Hackers Unite! thread).
I used Lokaltag's method to embed it into Terminus.
Cumbersome. Only works for a single font and a single fontsize.
Please let us know if there is an xbm statusbar patch out there somewhere.
All configs @ https://github.com/w0ng
Offline
Clean:
Messy:
Config and dotfiles linked to on my home page. It's basically zenburn overdrive in terms of colours and dwm patched with pertag and scratchpad.
Linux history: Fluxbuntu (openbox) > Debian (LXDE) > Debian (awesome) > Arch Linux (awesome) > Arch Linux (dwm). I'd like to try out xmonad at some point.
Last edited by Biowaste (2012-03-27 16:24:52)
Offline
Offline
Repatched dwm last night so i wanted to share desktop. It is pretty much the same always: i use same GTK theme that is edited to match my terminal and dwm colors. I find that his color scheme is looking fantastic when you use f.lux. Dwm patches i use:
- center floating;
- bstack;
- gapless grid;
- no title client on bar (maybe there is better way to do it and this was created with help from #dwm folks @irc.oftc);
- no mouse follow focus;
- status bar on all monitors;
- fix NetActiveWindow clients;
- attach normally;
- panel padding;
...
It is nothing new but i like it so much that i havent changed it for more than 9 months
Still searching for one patch that will do what i want and make dwm really great.
Offline
FInally got this 7in chinese no-name mini-netbook set up. They truly are a real POS but it works and using lightwieght programs it's not that bad.. Fit's in my pocket too...hah 333Mhz ArmV5 cpu and 102mb mem. It came with a 2g NAND but /usr and /var was filling it up pretty quick so I created a symlink to a 4g SD.
DWM
Dillo browser
urxvt
and all the other good tools to have for these things.
||github||
Offline
FInally got this 7in chinese no-name mini-netbook set up. They truly are a real POS but it works and using lightwieght programs it's not that bad.. Fit's in my pocket too...hah 333Mhz ArmV5 cpu and 102mb mem. It came with a 2g NAND but /usr and /var was filling it up pretty quick so I created a symlink to a 4g SD.
DWM
Dillo browser
urxvt
and all the other good tools to have for these things.
Looks really nice. Who needs an ipad
What did it cost?
Offline
Lol.. Yea, not an apple fan AT ALL! When they first came out I beleive they were around $89 USD or so on ebay but I got this one for $50. It's not blazing fast or anything and compiling take quite a while (dwm took about 3-4 minutes and dillo took about an hour). Something else to mess around with I reckon
||github||
Offline
@n1x4: 7inch is the size of whole netbook or only screen?
Offline