[SOLVED] Dzen2 shadows
So I've got dzen set up with two bars on the top so that I can have a part of it left aligned and part right aligned.
The problem is that with xcompmgr running it causes a shadow along the edge of the two bars;
Finally, here is the part of my script that starts my dzen, printRight and printLeft are variables containing my code.
#Print all and pipe into dzen
conky -c $CONKYFILE -u $INTERVAL | printRight | dzen2 -x $X_POS_R -y $Y_POS -w $WIDTH_R -h $HEIGHT -fn $FONT -ta 'r' -bg $DZEN_BG -fg $DZEN_FG -p -e '' &
conky -c $CONKYFILE -u $INTERVAL | printLeft | dzen2 -x $X_POS_L -y $Y_POS -w $WIDTH_L -h $HEIGHT -fn $FONT -ta 'l' -bg $DZEN_BG -fg $DZEN_FG -p -e ''
Anyone have any tricks on how to get rid of the shadow on dzen?
Last edited by jbritton (2012-02-03 01:58:51)
Ok I didn't find the script but here's how to do it:
Set the _NET_WM_WINDOW_TYPE of the dzenpanel to _NET_WM_WINDOW_TYPE_DOCK, unfortunately it doesn't do this itself. You need to run
xprop -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DOCK
and click on the dzen bar. To use this in a script either use xdotool to automatically do this or get the xwin-id with
xwininfo -name "dzen title" | sed -n 2p | awk {'print $4'}
and specify it using xprops' -id option.
Example:
xprop -id "$(xwininfo -name "dzen title" | sed -n 2p | awk {'print $4'})" -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DOCK
This works for me, but as you have two dzen-panels the xwininfo name might be different or give two ids.
Finally run xcompmgr with the -C option, now it shouldn't draw a shadow on it.
Similar Messages
-
[SOLVED] dzen2 click areas in slave not working
Hi,
I am using dzen2 from official repos with openbox. I do not seem to be able to use clickable areas in slave windows. Moreover, if multiple lines are specified, the title click area does not respond
This works
(echo "^ca(1, echo 'TITLE')TITLE^ca()") | dzen2 -p -l 5
This doesn't
(echo "^ca(1, echo 'TITLE')TITLE^ca()"; echo -e "one\ntwo\nthree") | dzen2 -p -l 5
neither does this.
(echo "TITLE"; echo "^ca(1, echo 'SLAVE')SLAVE^ca()") | dzen2 -p -l 5
What am I doing wrong?
Last edited by easysid (2014-02-04 17:14:06)Using dzen2-git from AUR solves this issue. Can anyone else please confirm this so that the wiki can be updated?
-
[Solved] Dzen2 , Clock , Date.
Hello.
I was using DWM before and he has an option to in .xinitrc to viev clock on it's bar.
And now I'm using XMonad and I want to see clock on dzen2 bar.
When I type:
date | dzen2
nothing happen's.
And When I type:
date | dmenu
I see normal clock on dmenu.
What should I do to see clock on dzen2?
Last edited by SpeedVin (2009-08-24 07:36:36)Ashren wrote:
SimpleDate will give you a popup showing the date and time. Is that what you want? SimpleDate is not a layout but an action.
You can integrate a dzen2 statusbar into XMonad showing workspaces and whatnot. Can you post you xmonad.hs here?
Yeah just like in DWM
I can hide/viev bar .
Here is my config:
9 -- Imports
10 import XMonad.Actions.SimpleDate
11 import XMonad hiding (Tall)
12 import XMonad.Hooks.DynamicLog
13 import XMonad.Hooks.UrgencyHook
14 import XMonad.Hooks.ManageDocks
15 import XMonad.Hooks.ManageHelpers
16 import XMonad.Hooks.XPropManage
17 import XMonad.Layout.Tabbed
18 import XMonad.Layout.DecorationMadness
19 import XMonad.Layout.ResizableTile
20 import XMonad.Layout.Reflect
21 import XMonad.Layout.HintedTile
22 import XMonad.Layout.PerWorkspace
23 import XMonad.Layout.NoBorders
24 import XMonad.Layout.ThreeColumns
25 import XMonad.Layout.Grid
26 import XMonad.Layout.IM
27 import XMonad.Actions.WindowGo
28 import XMonad.Util.Run
29 import qualified Data.Map as M
30 import qualified XMonad.StackSet as W
31 import Data.Ratio
32 import System.IO
33 import System.Exit
34
35 import Graphics.X11.Xlib
36 import Graphics.X11.Xlib.Extras
37 import Foreign.C.Types (CLong)
38
39 -- Main
40 main = do
41 d <- spawnPipe myStatusBar
42 spawn myOtherBar
43 xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig
44 { terminal = myTerminal
45 , workspaces = myWorkspaces
46 , borderWidth = myBorderWidth
47 , normalBorderColor = myNormalBorderColor
48 , focusedBorderColor = myFocusedBorderColor
49 , layoutHook = myLayout
50 , manageHook = myManageHook
51 , keys = myKeys
52 }
53
54 -- Options
55 myBorderWidth = 0
56 myTerminal = "urxvtc"
57 myNormalBorderColor = "#303030"
58 myFocusedBorderColor = "#ff0000"
59 myWorkspaces = ["1-irssi", "2-web" ,"3-im", "4", "5", "6", "7", "8", "9-term"]
60
61 -- Menu and Dialog Hook
62 getProp a w = withDisplay $ \dpy -> io $ getWindowProperty32 dpy a w
63
64 checkAtom name value = ask >>= \w -> liftX $ do
65 a <- getAtom name
66 val <- getAtom value
67 mbr <- getProp a w
68 case mbr of
69 Just [r] -> return $ elem (fromIntegral r) [val]
70 _ -> return False
71
72 checkMenu = checkAtom "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_MENU"
73 checkDialog = checkAtom "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_DIALOG"
74
75 manageMenus = checkMenu --> doFloat
76 manageDialogs = checkDialog --> doFloat
77
78 -- Window Management
79 myManageHook = composeAll . concat $
80 [ [(className =? m <&&> role =? "roster") --> (ask >>= doF . W.sink) | m <- myIMs ]
81 , [className =? m --> doShift "3-im" | m <- myIMs ]
82 , [className =? w --> doShift "2-web" | w <- myWebs ]
83 , [title =? i --> doShift "1-irssi" | i <- myIRC ]
84 , [className =? f --> doFloat | f <- myFloats ]
85 , [className =? c --> doCenterFloat | c <- myCFloats]
86 ]
87 where
88 role = stringProperty "WM_WINDOW_ROLE"
89 myIMs = ["Gajim.py", "Pidgin"]
90 myWebs = ["Navigator", "Shiretoko", "Firefox"]
91 myIRC = ["irssi", "weechat"]
92 myFloats = ["VirtualBox"]
93 myCFloats = ["Gajim.py", "Pidgin", "Zenity"]
94
95 -- Layouts
96 myLayout = avoidStruts $ onWorkspace "3-im" imLayout $ tiled ||| Mirror tiled ||| hintedTile Tall ||| hintedTile Wide ||| imLayout |||
97 where
98 tiled = ResizableTall nmaster delta ratio []
99 hintedTile = HintedTile nmaster delta ratio TopLeft
100 imLayout = reflectHoriz $ withIM (1%10) (Role "roster") Grid
101 nmaster = 1
102 delta = 3 % 100
103 ratio = 1 % 2
104
105 -- LogHook
106 myLogHook h = dynamicLogWithPP $ defaultPP
107 { ppCurrent = dzenColor "#303030" "#909090" . pad
108 , ppHidden = dzenColor "#909090" "" . pad
109 , ppHiddenNoWindows = dzenColor "#606060" "" . pad
110 , ppLayout = dzenColor "#909090" "" . pad
111 , ppUrgent = wrap (dzenColor "#ff0000" "" "{") (dzenColor "#ff0000" "" "}") . pad
112 , ppTitle = wrap "^fg(#909090)[ " " ]^fg()" . shorten 40
113 , ppWsSep = ""
114 , ppSep = " "
115 , ppOutput = hPutStrLn h
116 }
117 -- Key Bindings
118 myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
119 [ ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)
120 , ((modMask, xK_o ), date)
121 , ((modMask, xK_p ), spawn "sh /home/user/u.sh") -- %! program launcher
122 , ((modMask .|. shiftMask, xK_w ), spawn "uzbl") -- %! open web client,
123 , ((modMask .|. shiftMask, xK_m ), spawn "urxvtc -e mutt") -- %! open mail client
124 , ((modMask .|. shiftMask, xK_i ), spawn "urxvtc -e irssi") -- %! open IRC client
125 , ((modMask, xK_a ), spawn "msearch all") -- %! Search current playlist via dmenu
126 , ((modMask, xK_o ), date) -- %! Viev Simple date in dzen2.
127 , ((modMask, xK_w ), kill) -- %! Close current window
128 , ((modMask, xK_n ), refresh) -- %! Resize viewed windows to the correct size
129 , ((modMask, xK_space ), sendMessage NextLayout) -- %! Rotate through the available layout algorithms
130 , ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf) -- %! Reset the layouts on the current workspace to defaul
131 , ((modMask, xK_Tab ), windows W.focusDown) -- %! Move focus to the next window
132 , ((modMask .|. shiftMask, xK_Tab ), windows W.focusUp) -- %! Move focus to the previous window
133 , ((modMask, xK_j ), windows W.focusDown) -- %! Move focus to the next window
134 , ((modMask, xK_k ), windows W.focusUp) -- %! Move focus to the previous window
135 , ((modMask, xK_m ), windows W.focusMaster) -- %! Move focus to the master window
136 , ((modMask, xK_Return), windows W.swapMaster) -- %! Swap the focused window with the master window
137 , ((modMask .|. shiftMask, xK_j ), windows W.swapDown) -- %! Swap the focused window with the next window
138 , ((modMask .|. shiftMask, xK_k ), windows W.swapUp) -- %! Swap the focused window with the previous window
139 , ((modMask, xK_h ), sendMessage Shrink) -- %! Shrink the master area
140 , ((modMask, xK_l ), sendMessage Expand) -- %! Expand the master area
141 , ((modMask, xK_u ), sendMessage MirrorShrink) -- %! Shrink the selected pane vertically
142 , ((modMask, xK_i ), sendMessage MirrorExpand) -- %! Expand the selected pane vertically
143 , ((modMask, xK_t ), withFocused $ windows . W.sink) -- %! Push window back into tiling
144 , ((modMask, xK_comma ), sendMessage (IncMasterN 1)) -- %! Increment the number of windows in the master area
145 , ((modMask, xK_period), sendMessage (IncMasterN (-1))) -- %! Decrement the number of windows in the master area
146 --, ((modMask, xK_q ), restart "xmonad" True) -- %! Restart xmonad
147 , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- %! Quit xmonad
148 ]
149 ++
150 [ ((m .|. modMask, k), windows $ f i)
151 | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9] -- %! Switch to workspace N
152 , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)] -- %! Move client to workspace N
153 ]
154
155 ---
Last edited by SpeedVin (2009-08-24 06:05:23) -
[solved]dzen2 configuration issue
I want split the groups + windows in the right side of the dzen bar and the time and "system tray" to the left.
my first idea was to have two dzen2 processes running, one align to the right and one to the left, but looking through the wiki I found ^p(_RIGHT) and ^p(_LEFT), great! but it doesn't work.
here is my code:
append(){
txt=$*$text
while true; do
append "^p(_LEFT)"\
`ratpoison -c groups -c windows | sed -e 's\^[0-9][*]\^fg(#FF00FF)\' -e 's\^[0-9][-]\^fg(#A800A8)\' -e 's\^[0-9][+]\^fg(#000054)\'`\
"^p(_RIGHT)"\
`date | awk '{print $4}'`
echo "$txt"
sleep 1
done | dzen2
other question, how could I have the sed output in only one line? the function append just does that, take the break lines out, and how could I use outside variables with sed? it would be easier to change the colors because i didn't found a good color set(any sugestions?)
Last edited by hack.augusto (2009-02-05 00:37:57)The command ^p(_RIGHT) aligns the following text to the right, but in somewhat strange manner:
the first letter you type after this commmand occurs right of the right edge of the screen, so of course it isn't visible.
So to get the expected behaviour you have to do following:
Be W the width of the text you want to have right aligned in pixels, type
^p(_RIGHT)^p(-W)textyouwannadisplay
So ^p(KEYWORD) is to understand as a switch that jumps to the position KEYWORD.
Hope that will help someone.
EDIT: This may concern only the actual svn-version
Last edited by stalphonzo (2011-12-21 08:34:14) -
[Solved] Compton + Shadow + Hangout Chrome App
When using "compton," I am getting a shadow box around the chrome app which vanishes when I kill compton. I need to do a shadow-exclude for the window but how the heck do I figure out what the window information I need to add do the compton.conf for it to be excluded?
Last edited by flamusdiu (2014-10-15 12:10:48)Have you tried clicking on the window using the xprop command?
Last edited by orschiro (2014-10-14 05:33:18) -
[SOLVED] Dzen2 artifacts since last update
Hello,
I'm having a problem with Dzen2: since the last update to version 0.8.5-4 it shows artifacts (or whatever else it is; not looking good at any rate)
I have two dzens: one is always on showing unread mail, battery, date and time:
(notice vertical lines after "5" and "twenty";
the other I can turn on and off and it shows various diagnostics:
(notice "black holes", that's one of the versions of the error),
(black and white rectangles, that's another one).
I haven't changed anything in the feeding scripts since long before the las update.
This is the small one (the first screenshot): http://pokazywarka.pl/dl3tnj/;
this is the big one (the second and third screenshots): http://pokazywarka.pl/se2h2x-2/.
Could anyone help me, please?
Last edited by caminoix (2010-01-27 09:58:06)The issue comes up on my computer too but enabling the XFT option in the dzen2's configuration fixes the problem. The package linked does this by default.
But I'm interested in this bug because I don't think this is dzen2's bug. It worked very nicely until the update of X.
In fact I can reproduce this with the stock dzen2 from the community repo:
dzen2 -bg '#404000' -fg '#777777' -h 16 -sa c -e '' -ta l -fn '-*-dejavu sans mono-medium-r-normal-*-11-*-*-*-*-*-*-*' -tw 1350
and the first line of the input:
aaaaaaaaaaaaaaaaaaaaa aaaaaa tal aaaaaaaaa
the garbage begins after the "tal" part until the next "aaa..." section. Interestingly changing the "tal" string makes the problem go away.
I'm using an ATI card with the open source drivers, not sure it matters though.
Anyways, as I've said using Xft makes the problem go away, but still it shouldn't work this way. -
[SOLVED]Lose Conky window shadows...
I have Xfce set to display shadows under windows, which looks great until I run Conky. Any tips on how I can get rid of Conky's shadow and keep the rest?
Last edited by crisnoh (2008-05-04 20:16:06)You most likely can solve this with the correct combination of the own_window and own_window_type parameters in your .conkyrc file. While I don't use XFCE I believe this problem is the same under most compositors. Try the following to solve the problem:
own_window yes
own_window_transparent yes
own_window_type desktop
If this doesn't work, you might try using "override" for the own_window_type.
Good luck,
j -
[SOLVED] Xmonad and two dzen2 bars
Solved, thanks!
Last edited by camphor (2010-03-02 07:01:35)Here is the relevant part of my xmonad.hs; these two bars load next to each other
-- dzen config
sBarCmd = "dzen2 -fn '-*-times-medium-r-*-*-*-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 500 -ta l"
topBarCmd = "conky -c /home/ishikawa/.conkyrc | dzen2 -fn '-*-times-medium-r-*-*-*-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 498 -x 500 -ta r" -
Aperture to export photos either TIFF or JPEG files, highlight and shadow transition has obvious faults, this problem solved!?
What problem?
You will have to be _a lot_ more specific if you'd like responsible feedback.
I export thousands of TIFF and JPG files a week with no obvious faults.
(Sent from my magic glass.) -
[SOLVED] Compton drawing ugly Notify-OSD shadow
I have Openbox installed in my machine. For compositing I installed compton-git from AUR and everything is working fine. The problem is that I cannot prevent compton from drawing a shadow to the notification window (notify-osd). Here's a screenshot:
http://i.imgur.com/3oHHJis.png
and this is my ~/.compton.conf file:
# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = false;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
# shadow-opacity = 0.7;
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
shadow-exclude = [ "n:e:Notification", "name = 'Notification'", "class_g = 'Conky'" ];
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = false;
# Opacity
menu-opacity = 0.9;
inactive-opacity = 0.9;
frame-opacity = 1.0;
inactive-opacity-override = false;
alpha-step = 0.06;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
blur-background-fixed = false;
# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.1;
fade-out-step = 0.1;
# no-fading-openclose = true;
# Other
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = false;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = false;
sw-opti = false;
unredir-if-possible = false;
focus-exclude = [ ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
# Window type settings
wintypes:
tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
How can I fix this? I tried with the shadow-exclude value, but it didn't work.
Regards.
Edit: I was playing around with the configuration file and found that the option 'clear-shadow = false' makes the trick, but now the shadow rendered behind notify-osd is too dark, check here. Is there any way to add an exception rule to the notification window?
Edit 2: The problem gets solved by adding the following exclusion rule to the 'shadow-exclude' variable:
"class_g ?= 'Notify-osd'"
Including quotes.
Last edited by AurosGamma (2013-02-23 17:04:31)valr wrote:
Stupid question: are you sure that the window name of the notification is "Notification" ?
Have you checked with xwininfo ?
If all seems correct, you could ask on IRC in the chan #compton
That's the problem, I'm not sure about that. And I'm not sure how I should use xwininfo to get the values for notify-osd, and how should I put those values in the config file. I searched for documentation and found nothing. I'll try to ask in the IRC channel and report back.
Best regards. -
[SOLVED] What's the significance of 14871 (in /etc/shadow)?
In the /etc/shadow shipped with the filesystem package, we have lines like this:
systemd-resolve:x:14871::::::
where the third field is always set to 14871, which is " the date of last password change, expressed as the number of days since Jan 1, 1970."
$ date -d '1970-01-01 +14871 days' -u
Sun Sep 19 00:00:00 UTC 2010
...so what's the significance of this day?
Last edited by lolilolicon (2014-06-28 12:38:05)<kicks lolilolicon's jaw under the bed while whistling innocently>
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309 -
[Solved] clicks on dzen2 panel no longer responding
Got a strange little problem here and some sleuthing/advice is requested. All was well with my dzen2 and herbstluftwm set up until recently - suddenly clicks on my dzen2 panel don't work. Nothing happens. I can still switch from tag to tag (herbstluftwm for tab) using the superkey+tag index.
What happened prior to this problem that I recollect was:
a) An upgrade from kernel 3.16.1-1 to 3.16.2-1. Of course lots of things came with the kernel upgrade, but when I downgrade to the older kernel, the problem persists. So it couldn't be the kernel upgrade, but it could still possibly be due to an application that also got upgraded with the kernel.
b) I was trying to get my Logitech G510s to work on Arch. I tried the gnome15 application which first required the installation of
python2-uinput, python-virtkey, lg4l-gnome15 and python2-keyring. The actual installation of gnome15 then pulled in a lot of python libraries and a huge part of the gnome de as well. The keyboard's bells and whistles started working with this setup but it had the side effect of locking the system on the first cold boot, and only booted on the first warm boot after that. So I had to uninstall, and did so using a combination of yaourt -Rs <application/library> calls.
I then tried setting up the keyboard using g15daemon and g15stats without much success so I uninstalled them as well.
Which is when I discovered my dzen2 panel wasn't responding to any clicks. Subsequent reinstalls of both herbstluftwm and dzen2, as well as an upgrade of dzen2 that dropped a few days later were also of no help.
So, if any one has any experience with this kind of problem (I'm hoping of a 'been there, fixed that' kind) or any suggestions as to what I might investigate further, kindly let me know.
Last edited by kinleyd (2015-01-13 16:05:17)Weird problem. I edited herbstluftwm's panel.sh and replaced this:
if [ ! -z "$dzen2_svn" ] ; then
echo -n "^ca(1,herbstclient focus_monitor $monitor && "'herbstclient use "'${i:1}'") '"${i:1} ^ca()"
else
echo -n " ${i:1} "
fi
with just this, as I am using dzen2-git I ignored the check for dzen2_svn, but used the instructions originally intended for dzen2_svn:
echo -n "^ca(1,herbstclient focus_monitor $monitor && "'herbstclient use "'${i:1}'") '"${i:1} ^ca()"
I haven't figured out what changed such that the script that worked perfectly before doesn't after playing with g15daemon and gnome15, but at least this hack works.
Last edited by kinleyd (2015-01-13 16:14:43) -
[SOLVED] dwm + dzen2 + conky-cli misconfigured
I have been trying to pipe conky status to dzen2 and it is doing my head in.
My .xinitrc
#!/bin/sh
# ~/.xinitrc
setxkbmap -option terminate:ctrl_alt_bksp &
eval `cat ~/.fehbg` &
numlockx &
xscreensaver -no-splash &
# Dzen & conky
conky | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' &
# Start dwm
exec ck-launch-session ~/Scripts/dwm-start
.conkyrc
background no
out_to_console yes
update_interval 2
total_run_times 0
use_spacer none
double_buffer yes
TEXT
${if_existing /sys/class/power_supply/BAT0/present}^fg(#999999)BAT^fg()${battery_percent}%${else}AC${endif} * CPU ${cpu cpu1}% RAM ${memperc}% * / ${fs_used_perc /}% /home ${fs_used_perc /home}% * PKG ${execpi 900 ~/Scripts/pacman-up.pl} * ${if_existing /proc/net/route ra0}Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s ${else} ${if_existing /proc/net/route eth0} Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s${endif} ${endif}* ${time %I:%M%P}
Start dwm script
conky | while read line; do
xsetroot -name "$line";
done | while true; do
dwm > /dev/null; done;
Could anyone point me at what I am doing wrong? I have tried following examples in the forums, including this one and this one -- but I either end up with dwm 5.7.2 in the corner, or conky prints out the ^fg etc...
Any help would be appreciated at this point...
Last edited by jasonwryan (2009-11-20 06:11:51)Thanks for the suggestions Skanky. The broken line in conky was a copy/paste error into the browser - it is a single line conky (I've edited the OP to reflect that).
I think it is a problem with the way conky-cli and dzen work together. If I run:
echo "testing" | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p
it prints as expected.
Similarly, if I comment the conky | dzen2 line in .xinintrc and just run conky-cli from the start script it works...
Trying to get then to work together, however, is another matter.
/edit
Some progress: it seems that it is being drawn - if I Mod-Shift-q the dwm status bar briefly disappears and I can see conky momentarily. I tried starting conky | dzen2 after dwm but that didn't work.
I have also added some options, which seem to have helped, my .xinintrc entry now looks like:
conky | dzen2 -x '500' -e '' -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p &
Last edited by jasonwryan (2009-11-19 16:57:13) -
[solved]cannot load font dzen2
hello. I was able to apply space for a bottom gap for DWM. I am trying to get dzen2 and conky to show up at the bottom. I have conky-cli installed as well.
error: dzen: error, cannot load font: '-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'
here is my $HOME/.bin/dzconky (i did chmod a+x it)
#! /bin/sh
FG='#aaaaaa'
BG='#1a1a1a'
FONT='-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'
conky | dzen2 -e '' -ta c -fg $FG -bg $BG -fn $FONT -x 0 -y 1008
also will this work to load dzen2 at startup?
this is in my xinitrc
#dzconky
sh /home/hei/.bin/dzconky&
Last edited by cirnOS (2011-09-10 23:26:31)karol wrote:
Do you have that font? maybe you need to run
xset +fp /usr/share/fonts/local
for all the apps to see it.
Ah that worked. However now it seems the dzen bar appears on the top where my DWM bar is.
edit: here is my conkyrc in case that helps, it appears changing the x and y doesn't change much.
background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer none
# colors
default_color eab93d
own_window_colour 000000
#background yes
#update_interval 2
#use_spacer none
TEXT
^fg(\#1863b9)^i(/home/hei/.dzen2/xbm8x8/info_01.xbm)
^fg(\#b9b9b9)${uptime_short} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/cpu.xbm) ^fg(\#b9b9b9)CPU=${cpu cpu0}% ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /}${color} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /tmp} ^fg(\#cc880a)^i(/home/hei/.dzen2/xbm8x8/usb.xbm) ^fg(\#b9b9b9)${fs_free /home} ^fg(brown)^i(/home/hei/.dzen2/xbm8x8/net_down_03.xbm) ^fg(\#b9b9b9)${downspeed ppp0} ^fg(\#1863b9)^i(/home/hei/.dzen2/xbm8x8/net_up_03.xbm) ^fg(\#a5a5a5)${upspeed ppp0}
Last edited by cirnOS (2011-09-10 20:15:15) -
[SOLVED] XMonad + dzen2
I have been staring at this for the last day and I can't figure out why it isn't working. I cannot for the life of me get topBarCmd or botBarCmd to show up; I pretty much copied these configs from one of my working systems, and just edited them for a different monitor size.
Relevant XMonad section:
-- dzen config
sBarCmd = "dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -ta l"
topBarCmd = "conky -c ~/.conkyrc | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -x 841 -ta r"
botBarCmd = "conky -c ~/.conky_bottom_dzen | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -y 1034 -w 1680 -ta c"
sBarCmd shows, but the other two don't. Any ideas?
Last edited by lifeafter2am (2009-08-10 21:49:15)Well yeah, I know that.
Here is the whole config though.
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
import qualified XMonad.StackSet as W
-- layouts
import XMonad.Layout
import XMonad.Layout.IM
import XMonad.Layout.ToggleLayouts
import XMonad.Layout.Reflect
import XMonad.Layout.Combo
import XMonad.Layout.Grid
import XMonad.Layout.ResizableTile
import Data.Ratio ((%))
import XMonad.Layout.Gaps
-- layout definitions
customLayout = gaps [(D,16)] $ avoidStruts $ ResizableTall 2 (3/100) (1/2) [] ||| withIM (1%7) (ClassName "Buddy List") Grid ||| layoutHook defaultConfig
-- Workspaces
myWorkspaces = ["1:term","2:www","3:art","4:irc","5:media","6:im","7","8","9"]
-- Window rules
myManageHook = composeAll
[className =? "wicd-client" --> doFloat
,className =? "xine" --> doFloat
-- icons directory
myBitmapsDir = "/home/ishikawa/.dzen"
-- main config
main = do
dzenSbar <- spawnPipe sBarCmd
dzenConkyTop <- spawnPipe topBarCmd
dzenConkyBot <- spawnPipe botBarCmd
spawn "xcompmgr"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> manageHook defaultConfig
, terminal = "urxvt"
, workspaces = myWorkspaces
, borderWidth = 0
, normalBorderColor = "#000000"
, focusedBorderColor = "#3399ff"
, layoutHook = customLayout
, logHook = dynamicLogWithPP $ myDzenPP dzenSbar
, modMask = mod4Mask -- Rebind Mod to the Windows key
} `additionalKeys`
([ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock")
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s")
, ((0, xK_Print), spawn "scrot")
, ((mod4Mask, xK_a), sendMessage MirrorShrink)
, ((mod4Mask, xK_z), sendMessage MirrorExpand)
++
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
[((m .|. mod4Mask, k), windows $ f i)
| (i, k) <- zip (myWorkspaces) [xK_1 .. xK_9]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]])
-- dzen config
sBarCmd = "dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -ta l"
topBarCmd = "conky -c /home/ishikawa/.conkyrc | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -w 840 -x 841 -ta r"
botBarCmd = "conky -c ~/.conky_bottom_dzen | dzen2 -fn '-*-times-*-r-*-*-12-*-*-*-*-*-*-*' -bg '#000000' -fg '#ffffff' -h 16 -y 1034 -w 1680 -ta c"
myDzenPP dzenSbar = defaultPP
{ ppCurrent = wrap "^p()[^fg(#346855)" "^fg()]^p()"
, ppUrgent = wrap "!^fg(purple)^p()" "^fg()^p()"
, ppVisible = wrap "^p()[^fg()" "^fg()]^p()"
, ppTitle = wrap "^fg(#346855)< ^fg(#3a6b7a)" "^fg(#346855) >^fg()" . shorten 90
, ppSep = " : "
, ppWsSep = " : "
, ppLayout = dzenColor "#346855" "#000000" .
(\x -> case x of
"Tall" -> "^i(" ++ myBitmapsDir ++ "/tall.xbm)"
"Mirror Tall" -> "^i(" ++ myBitmapsDir ++ "/mtall.xbm)"
"Full" -> "^i(" ++ myBitmapsDir ++ "/full.xbm)"
"ResizableTall" -> "^i(" ++ myBitmapsDir ++ "/resizableGrid.xbm)"
"IM Grid" -> "^i(" ++ myBitmapsDir ++ "/im-layout.xbm)"
_ -> x
, ppOutput = hPutStrLn dzenSbar
Here are my conky's if they help too:
conkyrc:
# Set to yes if you want Conky to be forked in the background
background no
out_to_console yes
# Update interval in seconds
update_interval 1
color1 ef89bb
TEXT
^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/cpu.xbm) ^fg(#346855)${cpu cpu1}% ^fg(#7ebdfc) ^i(/home/ishikawa/.dzen/cpu.xbm) ^fg(#346855)${cpu cpu2}% @ $freq_g GHz ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/mem.xbm) ^fg(#346855)$mem/$memmax ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/net_down.xbm) ^fg(#346855)${downspeed eth1}/${totaldown eth1} ^fg(#7ebdfc)^i(/home/ishikawa/.dzen/net_up.xbm) ^fg(#346855)${upspeed eth1}/${totalup eth1} ^fg(#7ebdfc)| ^i(/home/ishikawa/.dzen/clock.xbm) ^fg(#346855)${time} ^fg(#7ebdfc)|
conky_bottom_dzen:
# Set to yes if you want Conky to be forked in the background
background no
out_to_console yes
# Update interval in seconds
update_interval 1
# MPD host/port
mpd_host localhost
mpd_port 6600
TEXT
^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/net_up_03.xbm) ^fg(#346855)$uptime ^fg(#3a6b7a)| ^fg(#1994d1) ^i(/home/ishikawa/.dzen/arch.xbm) ^fg(#346855)${texeci 1500 perl /home/ishikawa/scripts/xyne-update-checker.pl} ^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/diskette.xbm) ^fg(#346855)${fs_used sda4}/${fs_size sda4} ^fg(#3a6b7a)|^fg(#3a6b7a)| ^i(/home/ishikawa/.dzen/note.xbm) ^fg(#346855)$mpd_status : ${mpd_smart 50} ($mpd_elapsed / $mpd_length) ^fg(#3a6b7a)||
As I said, this config works on two other systems, so I am stumped as to why it won't work on this one.
Maybe you are looking for
-
Power Mac G5 Hard Drive Dead?
So the other day I tried to format my internal hard drive using my leopard server install disk that I bought for my power mac but I got the error Resource Busy. Then I used my Tiger install disk to format the drive and got the error Input/Output erro
-
Messages are in to be delivered status
Many messages are in to be delivered status in the adapter engine message monitoring Can any body help regarding this
-
Can't get group messages from iphone user
I use to be able to get group messages from an iPhone user when I was using my Razr Maxx but switched to an iPhone for a couple months, then back to the Razr Maxx and now I can't get group messages from my iPhone users. I'm using the same text messag
-
Reversal of the Physical Inventory Postings
Dear All, I hv posted the qty difference thru' MI07 in period 02' 09. Now Finance says that this is required to be posted in 01' 09. I tried reversing the PI docs thru MI02 but the system didn't permit me as the difference is already posted and the w
-
I can't surf on windows server 2008
Hi everyone, i have an issue and i hope someone can help me. I have my hands on a windows server 2008 machine (hp g6 something) configured by don't know who. The issue is this, i simply can't use software to go online. Ie x86 don't load pages, remote