You are not logged in.

#1 2013-08-08 18:19:20

AivarasK
Member
From: Lithuania
Registered: 2011-01-29
Posts: 13
Website

conky is frozen in i3bar [SOLVED]

My conky config is not updating.

link to img: http://i.imgur.com/oe4xbxi.png

This is conky:

out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
update_interval 1.0
total_run_times 0

if_up_strictness address
use_spacer left

override_utf8_locale no

cpu_avg_samples 2

TEXT

 [
 { "full_text" : "${exec mocp -Q %artist}" , "color" : "\#ffffff" },
  { "full_text" : "${exec mocp -Q %song}" , "color" : "\#ffffff" },
 { "full_text" : "                   " , "color" : "\#ffffff" },
 { "full_text" : "${fs_free /home}" , "color" : "\#ffffff" },
 { "full_text" : "${fs_free /home/aivaras/hdd}", "color" : "\#ffffff" },
  { "full_text" : "RAM ${memperc}%" , "color" :
    ${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} },
   { "full_text" : "${time %H:%M}" , "color" : "\#ffffff" },
],

This is conky-i3bar, it seams to be producing right output - http://ix.io/78A

#!/bin/sh

echo '{"version":1}'

echo '['

echo '[],'

exec conky -c $HOME/.conkyrc

and i3 config:

set $mod Mod4
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
floating_modifier $mod
bindsym $mod+Return exec gnome-terminal
bindsym $mod+Shift+q kill
bindsym $mod+d exec dmenu_run
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+f fullscreen
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
bindsym $mod+aogonek workspace 1
bindsym $mod+ccaron workspace 2
bindsym $mod+eogonek workspace 3
bindsym $mod+eabovedot workspace 4
bindsym $mod+iogonek workspace 5
bindsym $mod+scaron workspace 6
bindsym $mod+uogonek workspace 7
bindsym $mod+umacron workspace 8
bindsym $mod+doublelowquotemark workspace 9
bindsym $mod+leftdoublequotemark workspace 10
bindsym $mod+Shift+aogonek move container to workspace 1
bindsym $mod+Shift+ccaron move container to workspace 2
bindsym $mod+Shift+eogonek move container to workspace 3
bindsym $mod+Shift+eabovedot move container to workspace 4
bindsym $mod+Shift+iogonek move container to workspace 5
bindsym $mod+Shift+scaron move container to workspace 6
bindsym $mod+Shift+uogonek move container to workspace 7
bindsym $mod+Shift+umacron move container to workspace 8
bindsym $mod+Shift+doublelowquotemark move container to workspace 9
bindsym $mod+Shift+leftdoublequotemark move container to workspace 10

bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

mode "resize" {
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt

        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym XF86AudioPlay exec mocp -G
bindsym XF86AudioStop exec mocp -s
bindsym XF86AudioPrev exec mocp -r
bindsym XF86AudioNext exec mocp -f




bar {
       status_command $HOME/bin/conky-i3bar
		position top
}



assign [class="^Chromium$"] 2
assign [class="^Gnome-terminal$"] 1
assign [class="^Clementine$"] 3




exec feh --bg-scale /usr/share/archlinux/wallpaper/archlinux-simplyblack.png
exec setxkbmap lt
exec wicd-client --tray

exec chromium
exec gnome-terminal
exec gnome-terminal
exec clementine
exec clementine

Any ideas how to fix that? Everything is latest from stable repository.

Last edited by AivarasK (2013-08-08 19:17:58)


Laptop I: DELL Inspiron 15: Intel i3-4005U @ 1.70GHz, 8GB DDR3 1600MHz, Sandisk Plus 256GB SSD + WD Blue 500GB, Archlinux x86_64.
Laptop II: Acer C720: Intel Celeron 2955U @ 1.4GHz, 2GB DDR3, Intel HD, 120GB m.2 SSD, Archlinux x86_64
Server: HP ProLiant G4 DL380: 2x Intel Xeon 3.6GHz, 8GB of EEC ram, 8x 73GB 15K RPM SCSI drives, Archlinux x86_64

Offline

#2 2013-08-08 19:12:30

redstar
Member
Registered: 2013-06-20
Posts: 32

Re: conky is frozen in i3bar [SOLVED]

I don't know if this could be affecting conky's output, but I believe for the TEXT  portion of your conky file, the last "full text" line shouldn't have a comma at the end:

TEXT

 [
 { "full_text" : "${exec mocp -Q %artist}" , "color" : "\#ffffff" },
  { "full_text" : "${exec mocp -Q %song}" , "color" : "\#ffffff" },
 { "full_text" : "                   " , "color" : "\#ffffff" },
 { "full_text" : "${fs_free /home}" , "color" : "\#ffffff" },
 { "full_text" : "${fs_free /home/aivaras/hdd}", "color" : "\#ffffff" },
  { "full_text" : "RAM ${memperc}%" , "color" :
    ${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} },
   { "full_text" : "${time %H:%M}" , "color" : "\#ffffff" }
],

Offline

#3 2013-08-08 19:15:31

AivarasK
Member
From: Lithuania
Registered: 2011-01-29
Posts: 13
Website

Re: conky is frozen in i3bar [SOLVED]

redstar wrote:

I don't know if this could be affecting conky's output, but I believe for the TEXT  portion of your conky file, the last "full text" line shouldn't have a comma at the end:

Oh, thanks!
That works!


Laptop I: DELL Inspiron 15: Intel i3-4005U @ 1.70GHz, 8GB DDR3 1600MHz, Sandisk Plus 256GB SSD + WD Blue 500GB, Archlinux x86_64.
Laptop II: Acer C720: Intel Celeron 2955U @ 1.4GHz, 2GB DDR3, Intel HD, 120GB m.2 SSD, Archlinux x86_64
Server: HP ProLiant G4 DL380: 2x Intel Xeon 3.6GHz, 8GB of EEC ram, 8x 73GB 15K RPM SCSI drives, Archlinux x86_64

Offline

Board footer

Powered by FluxBB