You are not logged in.
Simple Openbox, conky, tint2:
Anyone know how to center the calendar? Tried everything I could find, nothing worked. Here's the expression I used:
${font dejavu sans mono:size=8.5}${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color #f57900}'"$DJS"'$color'/} ${font}
Works for me with the following (note the $alignc before the execpi statement):
${font dejavu sans mono:size=8.5}$alignc${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color #f57900}'"$DJS"'$color'/} ${font}
*EDIT* I just realized that this messes up the last week of the month with regards to the day of the week. You'll either need to figure out a way of aligning the last line on the left, or else hope someone knows a better solution.
*EDIT #2* I fell back on simply inserting a horizontal offset in order to move the calendar into the correct location. You'll need to play with the offset to get it more or less correct, but here's the code:
${font dejavu sans mono:size=8.5}${offset 25}${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color #f57900}'"$DJS"'$color'/} ${font}
Last edited by lswest (2012-01-02 14:40:15)
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
Awesome!
Last edited by fb0x (2012-01-02 12:44:47)
Offline
Active:
InActive:
conkyrc here
The theme is Atolm-gtk3
Window manager theme is axiomd
The Icons are Faenza-Darkest
Cursors theme is Macbuntu
Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog
Offline
Offline
Shinryuu wrote:Updated dwm to 6.0, also I'm equipped with a new ThinkPad.
Clean
http://dl.dropbox.com/u/32164608/Screenshots/screens/plain_.pngBusy
http://dl.dropbox.com/u/32164608/Screenshots/screens/busy_.pngVery Nice. Configs PLZ
Thanks! If you want xft support for dzen be sure to install dzen2-svn or compile your own with that support enabled. I patched dwm with pertag2, xbm layout icons, urgentcolor and bottom padding for conky patches. You can find pertag2, xbm and urgentcolor patches from ok100's github page and bottom padding from here. Xbm icons are from sm4tik's set. Oh right I use fbpanel-dwm from AUR in order to use systray with my setup.
in .xinitrc (to launch dzen+conky)
...
(sleep 1 && conky | dzen2 -fn 'Sazanami Mincho-8' -bg "#060606" -fg "#EBEBEB" -x 800 -y 0 -h 14 -ta r) &
(sleep 1 && conky -c /home/shn/.conkyrc2 | dzen2 -fn 'Sazanami Mincho-8' -bg "#060606" -fg "#EBEBEB" -x 0 -y 752 -h 16 -ta c) &
...
.conkyrc
update_interval 30.0
TEXT
^fg(\#cc880a)^i(/home/shn/.xbm/clock.xbm) ^fg(\#9d9d9d)${time %H:%M}
.conkyrc2
update_interval 2.0
TEXT
^fg(\#859900)^i(/home/shn/.xbm/bat_full_02.xbm) ^fg(\#9d9d9d)${battery BAT1} ^fg(\#cc880a)^i(/home/shn/.xbm/house.xbm) ^fg(\#cecece)${uptime} ^fg(\#385e6b)^i(/home/shn/.xbm/jar3.xbm) ^fg(\#cecece)${fs_used /} ^fg(\#859900)(${fs_size /}) ^fg(\#385e6b)^i(/home/shn/.xbm/shelf.xbm) ^fg(\#cecece)${fs_used /home} ^fg(\#859900)(${fs_size /home}) ^fg(\#cc880a)^i(/home/shn/.xbm/cpu.xbm) ^fg(\#9d9d9d)${cpu 0}% ^fg(\#a90e50)(${freq_g 0} GHz) ^fg(\#cc880a)^i(/home/shn/.xbm/cpu.xbm) ^fg(\#9d9d9d)${cpu 1}% ^fg(\#a90e50)(${freq_g 1} GHz) ^fg(\#cc880a)^i(/home/shn/.xbm/dish.xbm) ^fg(\#cecece)${addr ppp0} ^fg(\#385e6b)^i(/home/shn/.xbm/net_up_03.xbm) ^fg(\#cecece)${upspeed ppp0} ^fg(\#a90e50)^i(/home/shn/.xbm/net_down_03.xbm) ^fg(\#cecece)${downspeed ppp0}
config.h
/* See LICENSE file for copyright and license details. */
#include "im-grid.c"
/* appearance */
static const char font[] = "-*-fixed-medium-r-*-*-12-*-*-*-*-*-*-*";
static const unsigned int borderpx = 1;
static const unsigned int snap = 2;
static const Bool showbar = True;
static const Bool topbar = True;
static Bool useicons = True;
static const int marginbottom = 15;
static const char normbordercolor[] = "#040404";
static const char normbgcolor[] = "#040404";
static const char normfgcolor[] = "#ebebeb";
static const char selbordercolor[] = "#040404";
static const char selbgcolor[] = "#040404";
static const char selfgcolor[] = "#e04613";
static const char urgbordercolor[] = "#802635";
static const char urgfgcolor[] = "#020202";
static const char urgbgcolor[] = "#B3354C";
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 1 << 2, True, -1 },
{ "orage", NULL, NULL, 0, True, -1 },
{ "Chromium", NULL, NULL, 1 << 1, False, -1 },
{ "dwb", NULL, NULL, 0, False, -1 },
{ "Pidgin", NULL, NULL, 1 << 1, True, -1 },
{ "URxvt", NULL, NULL, 0, False, -1 },
{ "Pcmanfm", NULL, NULL, 0, True, -1 },
{ "medit", NULL, NULL, 0, True, -1 },
{ "winecfg", NULL, NULL, 0, True, -1 },
{ "MPlayer", NULL, NULL, 0, True, -1 },
{ "Feh", NULL, NULL, 0, True, -1 },
{ "Gpicview", NULL, NULL, 0, True, -1 },
};
/* layout(s) */
static const int nmaster = 1;
static const float mfact = 0.52;
static const Bool resizehints = False;
static const Layout layouts[] = {
// icon symbol arrange function
{ "/home/shn/.xbm/tile.xbm", "1", tile },
{ "/home/shn/.xbm/float.xbm", "2", NULL }, // no layout function means floating behavior
{ "/home/shn/.xbm/monocle.xbm", "3", monocle },
{ "/home/shn/.xbm/grid.xbm", "4", imgrid },
{ "/home/shn/.xbm/bstack.xbm", "5", bstack },
};
/* tagging */
static const Tag tags[] = {
/* name layout mfact nmaster */
{ "term", &layouts[0], -1, -1 },
{ "www", &layouts[1], -1, -1 },
{ "gimp", &layouts[1], -1, -1 },
{ "random", &layouts[1], -1, -1 },
};
/* key definitions */
#define MODKEY Mod1Mask
#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[] = { "urxvt", NULL };
static const char *firecmd[] = { "dwb", NULL };
static const char *filecmd[] = { "thunar", NULL };
static const char *gimpcmd[] = { "gimp", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_1, spawn, {.v = firecmd } },
{ MODKEY, XK_3, spawn, {.v = filecmd } },
{ MODKEY, XK_4, spawn, {.v = gimpcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_a, incnmaster, {.i = +1 } },
{ MODKEY, XK_z, 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_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 } },
TAGKEYS( XK_F1, 0)
TAGKEYS( XK_F2, 1)
TAGKEYS( XK_F3, 2)
TAGKEYS( XK_F4, 3)
TAGKEYS( XK_F5, 4)
TAGKEYS( XK_F6, 5)
TAGKEYS( XK_F7, 6)
TAGKEYS( XK_F8, 7)
TAGKEYS( XK_F9, 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} },
};
Offline
Thanks Shinryuu, for posting your lovely setup. The only thing I really want on my dwm now is notification icons, but wasn't really happy with trayer, so thanks for recommending fbpanel. Also, do you know of any way of displaying Japanese on the dwm bar? I can get it displaying fine in dzen2-svn, but I don't think the dwm bar supports xft. Do you know of any patch for that?
Offline
Do you know of any way of displaying Japanese on the dwm bar? I can get it displaying fine in dzen2-svn, but I don't think the dwm bar supports xft. Do you know of any patch for that?
There is pango patch: https://gist.github.com/1377652
It's for dwm 5.9 so you may have to modify it.
Offline
Good to see another wmii user in 2012. That's a nice font in your terminal by the way; what's it called?
Terminal font is:
-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*
wmii font is:
export WMII_FONT='xft:Sans-8'
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
I'm back to using Arch again after 6 months of absence. Several things happened during this period, major one being DWM 6.0!
Offline
I'm back to using Arch again after 6 months of absence. Several things happened during this period, major one being DWM 6.0!
Somewhat dirty
https://lh6.googleusercontent.com/-R_p0MoHPaII/TwHs9RhXx0I/AAAAAAAABjY/8V4TO-DVviQ/s175/2012-01-02-123950_1366x768_scrot.png
mind sharing what font you're using?
Offline
@sboysel
dwm: -*-clean-medium-r-*-*-12-*-*-*-*-*-*-*
urxvt: xft:monaco
Offline
Offline
Thanks Shinryuu, for posting your lovely setup. The only thing I really want on my dwm now is notification icons, but wasn't really happy with trayer, so thanks for recommending fbpanel. Also, do you know of any way of displaying Japanese on the dwm bar? I can get it displaying fine in dzen2-svn, but I don't think the dwm bar supports xft. Do you know of any patch for that?
No problem. It seems I was a bit late to reply to your question, but it's nice we have other nice willed people to tell the secrets of the universe in the forums! I've used pango patch with dwm 5.9 but I haven't tried it with dwm 6.0 yet. When you start "fbpanel", you can start it with "fbpanel --configure" to get a gtk2 themed dialog to place your tray better. Also be sure to remove "unnecessary" lines from fbpanel's congiruration file which is in ".config/fbpanel/" dir, because it might prevent your systray from starting.
.config/fbpanel/default (copied and modified from OK100's config)
Global {
edge = top
allign = right
margin = 48
widthtype = request
width = 86
height = 14
transparent = true
tintcolor = #040404
alpha = 255
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 0
roundcorners = false
roundcornersradius = 7
layer = above
MaxElemHeight = 14
setlayer = false
}
Plugin {
type = tray
}
Reki wrote:Do you know of any way of displaying Japanese on the dwm bar? I can get it displaying fine in dzen2-svn, but I don't think the dwm bar supports xft. Do you know of any patch for that?
There is pango patch: https://gist.github.com/1377652
It's for dwm 5.9 so you may have to modify it.
Thanks OK100
Offline
deleted
Last edited by nathrakh (2016-03-26 11:27:47)
Offline
Offline
Hi, Can I ask for the font?
Offline
nathrakh wrote:Hi, Can I ask for the font?
Terminal font is Tamsyn. Window title font is Sans bold (which I'll change now).. Other fonts on the desktop are/should be DejaVu Sans Book..
edit:
I also applied an Icon theme now; Awoken (Dark). It's pretty badass.
e2: here we go. changed axe theme to axe rounded, looks little smoother. also changed most fonts to tamsyn, which I'll probably regret very soon. :3
http://dl.dropbox.com/u/55300697/deskto … _scrot.png
Last edited by nathrakh (2012-01-03 02:29:01)
Offline
Hi guys.
Clean:
http://i.imgur.com/9IqOP.pngDirty:
http://i.imgur.com/JzIl8.pngOpenbox, Tint2, Conky, gVim (antialiasing turned OFF, no-decor)
Where did you get that wallpaper? It looks like the "Makepkg not War" wallpaper but without any text.
The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github
Offline
Reki wrote:Do you know of any way of displaying Japanese on the dwm bar? I can get it displaying fine in dzen2-svn, but I don't think the dwm bar supports xft. Do you know of any patch for that?
There is pango patch: https://gist.github.com/1377652
It's for dwm 5.9 so you may have to modify it.
Thanks for this, time to get working.
No problem. It seems I was a bit late to reply to your question, but it's nice we have other nice willed people to tell the secrets of the universe in the forums! I've used pango patch with dwm 5.9 but I haven't tried it with dwm 6.0 yet. When you start "fbpanel", you can start it with "fbpanel --configure" to get a gtk2 themed dialog to place your tray better. Also be sure to remove "unnecessary" lines from fbpanel's congiruration file which is in ".config/fbpanel/" dir, because it might prevent your systray from starting.
-snip-
I see, thanks for that tip. I've been tinkering around with fbpanel, and it certainly does fit the dwm bar better. I don't know if I'm blind though, but I can't see any option to change its background color. Again, thank you very much Shinryuu and OK100 for sharing your configs, they're really helpful.
EDIT: I really was blind, you could adjust the transparency and alpha settings. xD
Last edited by Reki (2012-01-03 08:07:25)
Offline
I'm back to using Arch again after 6 months of absence. Several things happened during this period, major one being DWM 6.0!
Somewhat dirty
https://lh6.googleusercontent.com/-R_p0MoHPaII/TwHs9RhXx0I/AAAAAAAABjY/8V4TO-DVviQ/s175/2012-01-02-123950_1366x768_scrot.png
You can share your config.h and the patches that you use?
Thanks!
Offline
dsdeiz wrote:nathrakh wrote:Hi, Can I ask for the font?
Terminal font is Tamsyn. Window title font is Sans bold (which I'll change now).. Other fonts on the desktop are/should be DejaVu Sans Book..
Awesome, thanks! Which size is it by the way (the Tamsyn font)?
Mine for January:
Offline
I guess the first monitor can be clean and the second the dirty one.
DWM, ncmpcpp, irssi, htop, snow script from reddit, conky and icons from my extended lime(.se) font.
And people who can speak Swedish may find something fanny, it´s because I have been struggle with a lot of versions, and this one happens to work.
Last edited by kaptenen (2012-01-03 11:55:42)
Offline
patches (@ github):
- pertag2
- scratchpad-stay
- xbm layout icons
- urgentcolor
- monocle no borders
- im-grid
- push
- tilemovemouse
- togglefullscreen
Last edited by OK100 (2012-01-03 14:28:30)
Offline