Vertical dzen statusbar? [SOLVED]

this started out as a let's-see-if-it's-possible sort of thing, and now it's driving me mad that I can't figure this out. I'm attempting to make dzen + conky act as a statusbar, positioned vertically on the left side of my screen. my current .xinitrc line is:
conky -c /home/bryant/conkyrc | dzen2 -x '0' -w '60' -h '900' -ta 'l' -bg '#000000' -fg '#00ee00' -y '50' -fn '-*-terminus-*-r-normal-*-*-130-*-*-*-*-*-*'&
my conky config is:
background no
out_to_console yes
background no
out_to_console yes
update_interval 1.0
short_units yes
format_human_readable yes
out_to_x no
TEXT
{${time %a %b %d %Y}
${time %H:%M:%S}}
[RAM: $memperc%]
[CPU: $cpu%]
[disk I/O: ${diskio_write /dev/sda}/${diskio_read /dev/sda}]
[SSD: ${fs_used /}/${fs_size /} (${fs_used_perc /}%)]
${if_existing /proc/net/route wlp1s0}[network: ${wireless_essid wlp1s0} (${wireless_link_qual_perc wlp1s0}%)] $else [network: -- ]$endif
${if_existing /sys/class/power_supply/BAT1}[battery: ${battery_percent BAT1}%,
(${battery_time BAT1})] $else ${if_existing /sys/class/power_supply/ADP1} [AC power] $else [battery: -- ]$endif
I realize that most of this won't fit in a 40-pixel bar, but I'm still working out the formatting. dzen positions itself properly, but it only displays part of the fist line no matter how wide I make it.
Last edited by ParanoidAndroid (2013-07-16 05:19:14)

Sweet. Got it working properly. But a new problem has popped up: xmonad won't reserve space for it, despite using the avoidStruts and manageDocks in the proper way. Here is my xmonad.hs:
import XMonad
import System.Exit
import qualified XMonad.StackSet as W
import qualified Data.Map as M
import XMonad.Util.Run
import XMonad.Actions.CycleWS
import Graphics.X11.ExtraTypes.XF86
import Graphics.X11.Xlib
import XMonad.Prompt
import XMonad.Prompt.Shell
import XMonad.Prompt.XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.UrgencyHook
-- layout
myLayout = avoidStruts (tiled ||| Mirror tiled ||| Full)
where
-- default tiling algorithm partitions the screen into two panes
tiled = Tall nmaster delta ratio
-- The default number of windows in the master pane
nmaster = 1
-- Default proportion of screen occupied by master pane
ratio = 1/2
-- Percent of screen to increment by when resizing panes
delta = 3/100
-- window rules
myManageHook = composeAll
[ className =? "MPlayer" --> doFloat
-- , className =? "Gimp" --> doFloat
, className =? "feh" --> doFloat
, resource =? "desktop_window" --> doIgnore ]
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
[ ((mod4Mask, xK_x ), kill) -- close window
, ((modMask, xK_q), restart "xmonad" True)
, ((mod4Mask, xK_m ), nextWS) -- move to next workspace
, ((mod4Mask, xK_n ), prevWS) -- move to prev workspace
, ((mod4Mask .|. mod1Mask, xK_m ), shiftToNext) -- move window to next workspace
, ((mod4Mask .|. mod1Mask, xK_n ), shiftToPrev) -- move window to prev workspace
, ((mod4Mask, xK_o ), windows W.swapMaster) -- push to master
, ((mod4Mask, xK_i ), windows W.focusMaster)
, ((mod4Mask, xK_h), sendMessage Shrink) -- shrink the master area
, ((modMask, xK_comma ), sendMessage (IncMasterN 1))
, ((modMask, xK_period ), sendMessage (IncMasterN (-1)))
, ((mod4Mask, xK_j ), windows W.focusDown) -- swap the focused window with the next window
, ((mod4Mask, xK_0 ), (setLayout $ XMonad.layoutHook conf)) --Reset layout to workspaces default
, ((mod4Mask, xK_k ), windows W.focusUp) -- swap thefocused window with the previous window
, ((mod4Mask, xK_l ), sendMessage Expand) -- expand the master area
, ((mod4Mask .|. shiftMask, xK_q), io (exitWith ExitSuccess)) -- quit xmonad
, ((0, xK_Print ), spawn "/home/bryant/.scripts/screenshot")
, ((mod4Mask, xK_BackSpace ), spawn "/home/bryant/.scripts/screenlock")
, ((mod4Mask .|. shiftMask, xK_r ), spawn "/home/bryant/.scripts/remind-notify")
, ((mod4Mask, xK_space ), spawn "/home/bryant/.scripts/touchpadtoggle")
, ((mod4Mask, xK_semicolon ), spawn "dmenu_run -b -p Run: -nf green -sb green -nb black -sf black -fn 'Terminus-16' -h 23")
, ((mod4Mask .|. shiftMask, xK_Return), spawn "urxvtc")
, ((mod4Mask .|. shiftMask, xK_3 ), spawn "urxvtc -e calc")
, ((mod4Mask .|. shiftMask, xK_a ), spawn "urxvtc -e mocp")
, ((mod4Mask .|. shiftMask, xK_m ), spawn "urxvtc -e htop")
, ((mod4Mask .|. shiftMask, xK_n ), spawn "urxvtc -e newsbeuter")
, ((mod4Mask .|. shiftMask, xK_c ), spawn "urxvtc -e wyrd")
, ((mod4Mask .|. shiftMask, xK_2 ), spawn "urxvtc -e mutt")
, ((mod4Mask .|. shiftMask, xK_e ), spawn "urxvtc -e vim")
, ((mod4Mask .|. shiftMask, xK_Home ), spawn "urxvtc -e ranger")
, ((mod4Mask .|. shiftMask, xK_p), spawn "urxvtc -e cboard")
, ((mod4Mask .|. shiftMask, xK_g ), spawn "gimp")
, ((mod4Mask .|. shiftMask, xK_d ), spawn "dwb")
, ((mod4Mask .|. shiftMask, xK_l ), spawn "urxvtc -e elinks")
, ((mod4Mask, xK_b ), spawn "sleep 0.5 && xset dpms force off")
, ((mod4Mask, xK_s ), spawn "systemctl suspend")
, ((0, 0x1008FF14 ), spawn "mocp -G")
, ((0, 0x1008FF17 ), spawn "mocp -f")
, ((0, 0x1008FF16 ), spawn "mocp -r")
, ((0, xK_F6 ), spawn "/usr/bin/mute_toggle")
, ((0, xK_F7 ), spawn "/usr/bin/vol_down")
, ((0, xK_F8 ), spawn "/usr/bin/vol_up") ]
myLogHook = dynamicLog
main = do
xmonad $ defaultConfig
-- override settings
terminal = "urxvtc"
, borderWidth = 1
, modMask = mod4Mask
, workspaces = ["1","2","3","4","5","6","7","8","9","10"]
, normalBorderColor = "#000000"
, focusedBorderColor = "#00ee00"
, focusFollowsMouse = False
, layoutHook = myLayout
, manageHook = myManageHook <+> manageDocks
, handleEventHook = docksEventHook
, logHook = myLogHook
, keys = myKeys

Similar Messages

  • [SOLVED] Compiz standalone + dzen statusbar

    I've recently started using compiz standalone.
    Is there a way to prevent windows from going below the statusbar?
    Edit: solved by starting dzen with the -dock option
    Last edited by abiotic (2014-01-24 11:52:56)

    Okay solved the problem now. Here's how I did it:
    First I install compiz-alone-utils-git from AUR.
    Change /etc/slim.conf line (remove dbus-launch):
    login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
    Change ~/.xinitrc:
    exec compiz-alone-session
    The remaining autostart applications put into ~/.config/compiz/autostart.sh:
    # This shell script is run before Compiz launches.
    # Environment variables set here are passed to the Compiz session.
    # Set a background color
    BG=""
    if which hsetroot >/dev/null 2>&1; then
    BG=hsetroot
    else
    if which esetroot >/dev/null 2>&1; then
    BG=esetroot
    else
    if which xsetroot >/dev/null 2>&1; then
    BG=xsetroot
    fi
    fi
    fi
    test -z $BG || $BG -solid "#202020"
    # D-bus
    if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    # Run XDG autostart things. By default don't run anything desktop-specific
    # See xdg-autostart --help more info
    DESKTOP_ENV="COMPIZ"
    if which /usr/bin/xdg-autostart >/dev/null 2>&1; then
    /usr/bin/xdg-autostart $DESKTOP_ENV
    fi
    xrdb -merge ~/.Xresources
    export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'
    nvidia-settings -l
    sh ~/.fehbg &
    xrdb -merge ~/.Xresources &
    volumeicon &
    xfce4-panel &
    conky &
    covergloobus &
    (you can find the skeleton file within /etc/xdg/compiz/autostart.sh)
    The relevant part is the xdg-autostart part within the autostart.sh it seems.
    Commenting it out resurrects the problem.

  • Reference level and scope vertical range

    what is the relation between reference level & scope vertical range?
    Solved!
    Go to Solution.

    Hello Alann,
    The NI High-Speed Digitizers help is very useful in defining these types of terms.
    From the help "Reference levels are high, low, and mid range values that you set to take rise time, fall time, width negative, width positive, duty cycle positive, and duty cycle negative measurements. Reference levels are generally configured in terms of the percentage of the waveform you acquire. By default, the low value is 10% of the waveform, the mid level is 50%, and the high value is 90%."
    Also from the NI High-Speed Digitizers help "Vertical range is the peak-to-peak voltage span that a digitizer can measure at the input connector. Most digitizers have several choices for vertical range."
    The only relation between these two concepts is in the fact that the vertical range defines the maximum peak values of your input signal, which also restricts your high and low reference levels.
    If you haven't installed the NI-Scope driver, but would still want to reference the help file it is available for download here.
    Regards,
    Dan King

  • Little things keep breaking my pages.

    I'm using a template from Muse Themes (Vignette).
    When making minor updates, invariably I break the page. Let's compare.
    Here is a page as it looks on my desktop:
    Here is the same page published to BC:
    Annnnnd here is how it looks on Bluehost.
    Notes:
    Multiple browsers used, with histories and caches cleared - Chrome, Safari, Fox.
    Dark rectangle resized often so as to avoid "width=100%" trap. Also tried it at 100%. Obviously it should not be overlapping the text, nor should the text be reformatting to sidebar width.
    Behavior repeats itself in ALL possible FTP scenarios: Upload to FTP host > Modified files only, Upload to FTP host > All files, and Export to HTML and then upload with Cyberduck (and Overwrite).
    Waiting for server to recache yields nothing.
    Have used with Dreamhost and Bluehost, with CloudFlare on and CloudFlare off.
    Persistent resizing/moving of graphics is the ONLY thing that fixes the problem. The change is typically trivial, a few px one way or the other.
    Today, however, NOTHING is helping the situation. (UPDATE: I was able to resize the rectangle vertically and this solved the problem. If you're thinking this element was smaller than overlapping elements, it wasn't. I always extend this element until it "bumps," or slightly moves, the footer element.)
    This has gone on for months! I've scoured the Adobe forums countless times and tried countless fixes. And now my one ace-in-the-hole, tweaking graphics, is failing me.
    My renewal for Muse Themes is coming up, and I must know if I can continue to use Muse or should cut bait and redo the site in WP.
    Note to Adobe Support: I did send a zip file of my HTML this morning to muse-ts, from my address [email protected] Thanks.
    Message was edited by: Quindaro

    Hello,
    I'm Steve Harris from MuseThemes.com - thanks for notifying me of this problem through the MuseThemes support forum (http://support.musethemes.com).
    This looks like a classic case of "overlapping elements" causing weird layout shifts on publish.  I actually covered a similar issue in a blog post way back in October 2011 (link below, tip #3)
    http://www.muse-themes.com/blogs/news/4232972-top-5-adobe-muse-design-tips-and-tricks
    To summarize the blog post, what I would suggest is to try and group all of your elements in the Muse file.  We took a close look at the code Muse is generating, and it appears that grouping elements (select elements > right click > group) will actually wrap them in a "div" tag, which acts as a container to hold content together.  We've fixed countless situations like this by grouping together blocks of content (images & text) to keep them from shifting on export.
    As a customer of MuseThemes.com, our support team would be happy to have a look at your Muse working file to find a fix.  Feel free to send it our way in the MuseThemes support portal.
    Cheers,
    - Steve

  • Last array element

    Hi
    In run mod, when I add elements in array, I want to see the last element of array automatically.
    How can I do this.(without using vertical scrollbar.)
    Solved!
    Go to Solution.

    In a thousand words or less.  You use property nodes to programatically access objects properties.
    (Yes you have to run it twice to see the result I didn't set a default value)
    Jeff
    Attachments:
    Untitled 4.vi ‏13 KB

  • [SOLVED]dzen clickable areas

    I am using dzen as a status bar in DWM and I want to know how I get the clickable areas to work. I have looked over all the place and I am still confused. Also I am piping conky to dzen.
    Any help would be much appreciated.
    I solved my problem. It just took reading dzen's documentation some more.
    Last edited by xly15 (2012-11-30 21:33:11)

    I am using dzen as a status bar in DWM and I want to know how I get the clickable areas to work. I have looked over all the place and I am still confused. Also I am piping conky to dzen.
    Any help would be much appreciated.
    I solved my problem. It just took reading dzen's documentation some more.
    Last edited by xly15 (2012-11-30 21:33:11)

  • Dzen, conky and wmii statusbar...

    Hi,
    [What I need]
    I'm trying to get a system info statusbar working on my wmii setup.
    [What I've done so far]
    1. Using wmii's statusbar directly is too difficult for me as I don't have enough knowledge about my system to get all the information I need and I a feel *a bit* unconfortable to work with sed and awk.
    2. Then I tried to pipe conky into wmii statusbar but it is not straightforward at all, as the only working way I found, posted on the wmii thread, makes conky write a file and then wmii status bar to continuosly 'cat' that file. This way my hard disk is always active as wmii is always reading conky's output file.
    3. I finally decided not to use wmii's stausbar and "replace" it with conky piped into dzen2. The major problem is that dzen initially displays conky's output correctly but the whole bar disappears as soon as I switch to another workspace.
    Can someone point me to a solution?
    Here's my dzen_conky.sh script:
    #!/bin/bash
    FG='#999999'
    BG='#181818'
    FONT='-xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1'
    conky | dzen2 -ta r -h 12 -y 787 -fg $FG -bg $BG -fn $FONT
    Many thanks!

    rent0n wrote:
    Hi,
    [What I need]
    I'm trying to get a system info statusbar working on my wmii setup.
    [What I've done so far]
    1. Using wmii's statusbar directly is too difficult for me as I don't have enough knowledge about my system to get all the information I need and I a feel *a bit* unconfortable to work with sed and awk.
    2. Then I tried to pipe conky into wmii statusbar but it is not straightforward at all, as the only working way I found, posted on the wmii thread, makes conky write a file and then wmii status bar to continuosly 'cat' that file. This way my hard disk is always active as wmii is always reading conky's output file.
    3. I finally decided not to use wmii's stausbar and "replace" it with conky piped into dzen2. The major problem is that dzen initially displays conky's output correctly but the whole bar disappears as soon as I switch to another workspace.
    Can someone point me to a solution?
    Here's my dzen_conky.sh script:
    #!/bin/bash
    FG='#999999'
    BG='#181818'
    FONT='-xos4-terminus-medium-r-*--12-*-*-*-*-*-iso10646-1'
    conky | dzen2 -ta r -h 12 -y 787 -fg $FG -bg $BG -fn $FONT
    Many thanks!
    hmmm...i think you'll need to add -p at the end of the dzen2 options line..it means persist or something like that.i hope that helps

  • [SOLVED]Clickable Dzen not Functioning

    I've been hunting the past few days trying to make my dzen bar clickable.
    Mainly to switch workspaces in xmonad, and later adding mpd to my dzen bar clicking next stop previous so on.
    I've learn that dzen had add a clickable functionality with the  ^ca().
    There are a few pages about xmonad with dzen clickables.
    Such as
    http://www.arch-ed.dk/wiki/doku.php?id= … workspaces
    And they all follow that format.
    Some have
    myWorkspaces = clickable . (map dzenEscape) $ nWorkspaces 9 ["web", "irc", "com"]
    or
    myWorkspaces = clickable . (map dzenEscape) $ ["1","2","3","4","5"]
    I do have the latest dzen, and I am using xmonad standard version not darcs.
    My xmonad.hs is
    --Imports--
    import XMonad
    --Actions--
    import XMonad.Actions.CycleWindows -- classic alt-tab
    import XMonad.Actions.CycleWS -- cycle thru WS', toggle last WS
    import XMonad.Actions.DwmPromote -- swap master like dwm
    --Hooks--
    import XMonad.Hooks.DynamicLog -- statusbar
    import XMonad.Hooks.EwmhDesktops -- fullscreenEventHook fixes chrome fullscreen
    import XMonad.Hooks.ManageDocks -- dock/tray mgmt
    import XMonad.Hooks.UrgencyHook -- window alert bells
    import XMonad.Hooks.SetWMName -- matlab fix
    --Layouts--
    import XMonad.Layout.Named -- custom layout names
    import XMonad.Layout.NoBorders -- smart borders on solo clients
    --Utils--
    import XMonad.Util.EZConfig -- append key/mouse bindings
    import XMonad.Util.Run(spawnPipe) -- spawnPipe and hPutStrLn
    import System.IO -- hPutStrLn scope
    import qualified XMonad.StackSet as W -- manageHook rules
    main = do
    conky <- spawnPipe myDzenConky -- conky stats on the right
    statuspipe <- spawnPipe myDzenMain --"dzen2 -bg black -fg white -ta l -w 840"
    xmonad $ withUrgencyHook NoUrgencyHook $ defaultConfig
    { modMask = mod4Mask
    , borderWidth = 2
    , normalBorderColor = "#dddddd"
    , focusedBorderColor = "#0000ff"
    -- , handleEventHook = fullscreenEventHook
    , workspaces = myWorkspaces
    , layoutHook = myLayoutHook
    , manageHook = (doF W.swapDown) <+> manageHook defaultConfig --Make new window not be master winodw
    , startupHook= setWMName "LG3D"
    , logHook = dynamicLogWithPP $ defaultPP
    ppCurrent = dzenColor "#3399ff" "#000000" . pad --Current workspace (fore/back)ground colour
    , ppVisible = dzenColor "#888888" "#000000" . pad
    , ppHidden = dzenColor "#dddddd" "#000000" . pad --Unused workspace with apps on it
    , ppHiddenNoWindows = dzenColor "#888888" "#000000" . pad --Unused workspace with no apps on it
    , ppTitle = dzenColor "#FF00FF" "". shorten 700 . dzenEscape --Title of window on current workspace00AA9DC
    , ppOutput = hPutStrLn statuspipe
    `additionalKeysP` myKeys
    -- Tags/Workspaces
    -- clickable workspaces via dzen/xdotool
    myWorkspaces :: [String]
    myWorkspaces = clickable . (map dzenEscape) $ ["1","2","3","4","5","6","7","8","9"]
    where clickable l = [ "^ca(1,xdotool key super+" ++ show (n) ++ ")" ++ ws ++ "^ca()" |
    (i,ws) <- zip [1..] l,
    let n = i ]
    -- Layouts
    -- the default layout is fullscreen with smartborders applied to all
    myLayoutHook = avoidStruts $ smartBorders ( mtiled ||| full ||| tiled )
    where
    full = named "X" $ Full
    mtiled = named "M" $ Mirror tiled
    tiled = named "T" $ Tall 1 (5/100) (2/(1+(toRational(sqrt(5)::Double))))
    -- sets default tile as: Tall nmaster (delta) (golden ratio)
    -- Statusbars
    myDzenMain = "dzen2 -bg black -fg white -ta l -w 1610"
    myDzenConky = "conky -c ~/.conkyrc | dzen2 -bg black -x '1500' -w '110' -ta 'r'"
    -- Key bindings
    myKeys = [ ("M1-<Tab>" , cycleRecentWindows [xK_Alt_L] xK_Tab xK_Tab ) -- classic alt-tab behaviour
    , ("M-b" , sendMessage ToggleStruts ) -- toggle the status bar gap
    , ("M-<Tab>" , toggleWS ) -- toggle last workspace (super-tab)
    , ("M-<Right>" , nextWS ) -- go to next workspace
    , ("M-<Left>" , prevWS ) -- go to prev workspace
    , ("M-S-<Right>", shiftToNext ) -- move client to next workspace
    , ("M-S-<Left>" , shiftToPrev ) -- move client to prev workspace
    , ("M-r" , spawn "xmonad --restart" ) -- restart xmonad w/o recompiling
    , ("M-x" , spawn "chromium" ) -- launch browser
    , ("M-S-x" , spawn "chromium --incognito" ) -- launch private browser
    , ("M-l" , spawn "xscreensaver-command -lock" ) -- lock the screen
    , ("C-M1-<Delete>" , spawn "sudo shutdown -r now" ) -- reboot
    , ("C-M1-<End>" , spawn "sudo shutdown -h now" ) -- poweroff
    , ("<XF86AudioMute>" , spawn "amixer -q sset Master toggle") --Toggle Volume
    , ("<XF86AudioLowerVolume>", spawn "amixer -q sset Master 2- unmute") -- lower volume
    , ("<XF86AudioRaiseVolume>", spawn "amixer -q sset Master 2+ unmute") -- raise volume
    , ("<Print>" , spawn "import -window root `date '+%Y%m%d-%H%M%S'`.png") --Take a Screenshot
    Put no matter who's configuration I try using dzen is not clickable.
    Also my workspaces are always named wierd things like
    ^a(1,xdotool key super+1()1^a()       [for first one]
    ^a(1,xdotool key super+1()1^a()       [for second one]
    Is the character c being escaped?
    If someone could please tell me how to troubleshoot this problem I will be very greatful.
    I've also been searching through the xmonad dzen and xmobar hacking thread.
    And they have the format from the link i provided above, and it works for them no problem.
    Last edited by Jabrick (2011-11-05 22:37:14)

    gotmor wrote:
    Be sure to use the SVN version of dzen2, 0.8.5 doesn't include this feature.
    Run the following command to fetch it:
    svn checkout http://dzen.googlecode.com/svn/trunk/ dzen
    Rob.
    Thank you so much!!
    Wow I feel so stupid, its always these simple things that mess me up
    I read through previous posts I read and only now notice the mention of svn and gadget.
    I guess its because I didn't know anything about svn, revisions and such.
    I feel a lot better now!
    Thank you Rob.

  • My facebook icons won't show in messenger app for my ipad when my screen is vertical but will in horizontal how do I solve this please

    I have messenger for facebook and my images and emojis will only show when my iPad Air screen is horizontal and won't show when horizontal when I message someone how do I solve this please but my emojis still show on my keyboard with the globe icon thank you

    HI,
    Did you ever figure out how to get them back? The same thing happened to me yesterday. I was able to open the file in VLC media player (you can download this app), but the file had been corrupted. It was only the last clip I had recorded, all the others were lost. Even the clip that will play is messed up

  • [SOLVED] Giving Firefox an infinite vertical scroll bar

    I recently reinstalled Arch after having a really difficult time with the move of binaries to /usr/bin
    There's one nagging issue after reinstalling, and I can't seem to find anything about it here. In Firefox, the vertical scrollbar on the right hand side of the screen doesn't meet the edge of the screen like it did before. What I mean is that I have to back up my cursor a pixel or two from the edge of the screen to hit the scroll bar. This behavior is frustrating, because it's so much easier to be able to just throw your cursor to the edge and click.
    I thought that this behavior might be controlled by GTK2 theme, but I haven't been able to find any themes that behave this way. Does anybody have an idea of what's going on here? My window manager is Openbox.
    Last edited by fatjake (2013-06-18 01:19:33)

    I was able to resolve this issue by switching Firefox to the "Littlefox complete theme". Thanks dag!
    https://addons.mozilla.org/en-US/firefo … or-firefox
    So this problem seems to have something to do with the default Firefox theme. This whole issue is one of those things that many people might not outright notice, but once you're aware of it drives you mad. Such a little thing but such a huge effect on usability. Here's another discussion about it if anybody finds it interesting
    https://bugs.launchpad.net/ubuntu/+sour … bug/125734
    Marked as resolved

  • [Solved] I3 WM: date and time in statusbar?

    Hey, just recently switched from xmonad to I3 and so far I really like it (never got around to learn haskell). The only thing still missing is to display at least the current time and maybe also the date in the statusbar. I at least couldn't find anything in the docs or manpage, so maybe there is no way to do that?
    Last edited by JonathanArcher (2010-04-06 19:37:41)

    What does i3-msg bb do?
    I start the script from xinitrc. Here's mine:
    .xinitrc:
    exec i3 --force-xinerama &
    sh startup.sh
    and the startup script:
    i="1"
    feh --bg-scale /media/sdb1/Documents/wall2copia.png
    while [ $i = 1 ]
    do
    DATE=$(date)
    MEMINFO=$(sed -n -e '3d' -e '1,4p' /proc/meminfo | awk '{printf "%d ", $2 }')
    UPTIME=$(uptime | sed 's/.*://; s/,//g')
    QUALITY=$(sed -e '1,2d' /proc/net/wireless | cut -d" " -f6,7)
    UNAME=$(uname -a | cut -d" " -f1,2,3)
    TEMPS=$(sensors | awk '/C/ { print $3}' | xargs | cut -d" " -f1,2,3,4)
    echo "^fg(white)$DATE^fg(grey) | $UNAME | ^fg(white)^i(mem.xbm)^fg(grey) T/F/C $MEMINFO | ^fg(white)^i(net-wifi.xbm) $QUALITY ^fg(grey)| ^fg(white)^i(cpu.xbm)^fg(grey) $UPTIME | ^fg(white)^i(temp.xbm)^fg(grey) $TEMPS"
    sleep 5
    done | dzen2 -x 150 -y 1005 -w 1050 -bg black -fg grey -fn fixed

  • [solved] WMFS statusbar and conky - conky appears on desktop as well.

    Hello guys. I recently got into WMFS. I was able to use conky in the status bar. However, some text shows up on the desktop. I could not find any fix for this issue by searching. Here is a screenshot- http://imageshack.us/photo/my-images/69 … x768s.png/
    and this is my conkyrc- http://pastebin.com/gAJgnu9k
    Would using double buffer or user_space none help?
    EDIT: I just tried out_to_x no and it appears to fix the issue for me.
    Last edited by cirnOS (2011-12-23 01:42:53)

    Mr Green wrote:Please make thread as Solved
    rc.xml
    <keybind key="F1">
    <action name="DesktopLeft">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="F2">
    <action name="DesktopRight">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="F1">
    <action name="Execute">
    <command>feh --bg-scale /root/img.png</command>
    </action>
    </keybind>
    <keybind key="F2">
    <action name="Execute">
    <command>feh --bg-scale /root/img.jpg</command>
    </action>
    </keybind>
    This lines in rc.xml make set different wallpapers on 2 desktops

  • Sapscript, check address,  variable starting vertical position  Solved

    Hello all,
    On the check that we are creating for Accounts Payable payments, vendors that have all four name fields populated are causing the last line of the address on the check to be too close to the MICR line. 
    I want the address to start printing conditionally  at line 55, 56, or 57, depending upon the number of name fields that are populated.  Does anyone have a suggestion on a way to accomplish this?  Currently the address starts printing in line 57.
    This is the address command as it currently exists.
    ADDRESS PARAGRAPH AS            
      NAME       &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&,
      STREET      &REGUH-ZSTRA&     
      POBOX       &REGUH-ZPFAC& CODE
      POSTCODE    &REGUH-ZPSTL&     
      REGION      &REGUH-ZREGI&     
      CITY        &REGUH-ZORT1&     
      COUNTRY     &REGUH-ZLAND&     
      FROMCOUNTRY &T001-LAND1&      
    ENDADDRESS                      
    All answers greatly appreciated.
    Thanks
    Bruce
    Solved!
    This is how I sold my problem.
    1.  Move the address window up two lines.
    2.  Add the following code before the address command. This code could possibly print one or two blank lines before the address command is executed.
    /:   IF &REGUH-ZNME3& = ' ' AND &REGUH-ZNME4& = '
    /:   ELSEIF &REGUH-ZNME4& = ' '                  
    /:   ENDIF                                       
    Bruce
    Message was edited by: Bruce Tjosvold
    Message was edited by: Bruce Tjosvold
    Message was edited by: Bruce Tjosvold

    andre.ramaciotti wrote:And I'm not sure if you should put that & after exec awesome. It works fine here without it.
    No & after entries in .xinitrc . You've commented out the awesome entry.

  • [SOLVED] uzbl-browser and dmenu-vertical

    I recently installed the uzbl-browser, which is just great.  It uses dmenu for bookmarks, and it has been suggested (I can dredge up posts if necessary) that the "patched" version dmenu-vertical will improve the experience by listing the bookmarks vertically (horizontally you can see the first three or so, and then end up scrolling).  Looking in the AUR there are two packages: dmenu-vertical and dmenu-vertical-xft.  I chose the version with XFT support. 
    When I tried to install it, pacman complained that it conflicted with dmenu, which was already installed.  I uninstalled dmenu, which required uninstalling uzbl-browser, installed dmenu-vertical-xft, and then attempted to install uzbl-browser.  When I answered "no" to that installation's suggestion that I replace dmenu-vertical-xft with dmenu, the install aborted.
    So I have reverted to uzbl-browser with vanilla dmenu, but I would like to get it working with the vertical patch.  Has anybody done this, and if so how?
    Thanks - Hy
    Last edited by Hy Ginsberg (2010-04-10 00:10:35)

    Thanks -- just what I needed.  - Hy

  • [SOLVED!] nasty vertical lines on screen after suspend or hibernation

    it's all in the title.. the lines appear while suspending already (thin green or blue lines) and linger on the screen after it's resumed, becoming thick white lines that cover everything).
    - i'm using pm-utils
    - i use kms with an old radeon mobility card, which doesn't seem to be properly configured (see my other thread viewtopic.php?id=113016).
    - the /var/log/pm-suspend.log doesn't provide any useful information. everything looks fine.
    - the system didn't resume from hibernation until i set the resume hook. now it does.
    - suspending/hibernating from the command line or with the lxde menu produces the same result.
    Last edited by v43 (2011-02-17 07:21:07)

    none of these trials solved the problem.
    i uninstalled everything except pm-utils and acpi+acpid, as it where before. btw, do i need acpid?
    now with the vga drivers...
    EDIT:
    - removing kms: didn't work
    - vbetool seems useless
    - trying the new framebuffer Uvesafb i get a black screen (i'll have to use a boot cd to resolve this)
    any suggestion at all??
    Last edited by v43 (2011-02-13 10:57:35)

Maybe you are looking for

  • My ringtones don't vibrate but all other notifications do?

    Hi All, I have an iPhone 3GS.. my text and email notifications all vibrate with their sounds. But my incoming calls do not vibrate with the ringtone. I can even choose the same tone for each, and just the calls do not vibrate... everything else does.

  • "I can't support this architecture" Messege

    I know very little about computers so please bare with me. I Own a copy of Cs5 extended and just DL it, Now I downloaded it but when ever i try to open it i get this messge "You Can not open the Application " Adobe Photoshop CS5" Because it is not su

  • Camera Raw. CS 4, 11.0.2, Mac OS 10.5.8

    Upgrading using the automatic upgrade for Acrobat to 9.4 killed my system and computer (that was from the tech person and Apple working together on trying to find out what happened to my computer). Anyway, I had to completely rebuild and reinstall ev

  • Multu Year purchase orders or overlapping year Pos

    Hi, we are on ECC 6 , EHP4 and implementing funds managment but only BCS part. We will go live on 1st April 2015. We have a scenario, whereiin we issue purchase orders for more than one year that is mostly for 3 years. Now How do I handle this scenar

  • Forum for Netbeans, JavaFX Composer ...

    I don't see a dedicated forum for JavaFX/Netbeans users. At the forums.netbeans.org site there is'nt anything dedicated for JavaFX. Here there is'nt anything dedicated for Netbeans. IMHO a dedicated forum would be valuable. JavaFX seems to be the "fu