فهرست منبع

Fix conky render

Andrew Swistak 6 سال پیش
والد
کامیت
963fd0adb4
3فایلهای تغییر یافته به همراه39 افزوده شده و 24 حذف شده
  1. 5 2
      config/awesome/rc.lua
  2. 32 20
      config/conky/conkyrc
  3. 2 2
      config/conky/conkyrings.lua

+ 5 - 2
config/awesome/rc.lua

@@ -45,7 +45,7 @@ end
 -- }}}
 -- }}}
 
 
 awful.spawn('compton')
 awful.spawn('compton')
---awful.spawn_with_shell(os.getenv('HOME') .. '/.conkyinit --restart >/dev/null 2>&1')
+awful.spawn(os.getenv('HOME') .. '/.conkyinit --restart >/dev/null 2>&1')
 
 
 -- {{{ Variable definitions
 -- {{{ Variable definitions
 -- Themes define colours, icons, font and wallpapers.
 -- Themes define colours, icons, font and wallpapers.
@@ -414,11 +414,14 @@ awful.rules.rules = {
     properties = { border = 0 } },
     properties = { border = 0 } },
   { rule = { class = "Conky" },
   { rule = { class = "Conky" },
     properties = {
     properties = {
-      border_with = 0,
       floating = true,
       floating = true,
       sticky = true,
       sticky = true,
       ontop = false,
       ontop = false,
+      skip_taskbar = true,
+      below = true,
       focusable = false,
       focusable = false,
+      titlebars_enabled = false,
+      border_with = 0,
       size_hints = {"program_position", "program_size"}
       size_hints = {"program_position", "program_size"}
   }}
   }}
 }
 }

+ 32 - 20
config/conky/conkyrc

@@ -8,15 +8,16 @@ conky.config = {
 
 
 -- -- Window specifications -- #
 -- -- Window specifications -- #
 	own_window = true,
 	own_window = true,
-	own_window_type = 'desktop',
+	own_window_type = 'override',
 	own_window_hints = 'below,skip_taskbar,skip_pager,undecorated',
 	own_window_hints = 'below,skip_taskbar,skip_pager,undecorated',
+  own_window_transparent = true,
 
 
-	minimum_width = 200, minimum_height = 800,
+	minimum_width = 200,
 	maximum_width = 200,
 	maximum_width = 200,
 
 
 	alignment = 'top_right',
 	alignment = 'top_right',
 	gap_x = 0,
 	gap_x = 0,
-	gap_y = 25,
+	gap_y = 0,
 
 
 -- -- Text settings -- #
 -- -- Text settings -- #
 	use_xft = true,
 	use_xft = true,
@@ -36,21 +37,32 @@ conky.config = {
 };
 };
 
 
 conky.text = [[
 conky.text = [[
-${voffset 81}${goto 75}${font Ds\-Digital:size=20}${color2}${time %I}${color3}${time %M}
-
-${goto 75}${color1}${font Nu:size=9}Uptime:
-${goto 75}${font Nu:size=9}${uptime_short}
-${voffset 40}${font snap:size=7}${goto 40}${color}CPU
-${voffset 5}${goto 52}${color3}${execi 10 sensors coretemp-isa-0000 | grep Physical | cut -c 18-21}°C
-${goto 52}${color2}${freq_g 1}GHz
-${voffset -35}${goto 138}${color}MEM
-${voffset 5}${goto 109}${color3}${swap}
-${goto 109}${color2}${mem}
-${voffset 60}${goto 40}${color}NET
-${voffset -40}${goto 52}${color2}${downspeedf wlp3s0}
-${goto 52}${color3}${upspeedf wlp3s0}
-${voffset 10}${goto 138}${color}HDD
-${voffset -40}${goto 108}${color2}${fs_free /home}
-${goto 60}${goto 108}${color3}${fs_free /}
-${color1}${voffset 45}${goto 55}${font Nu:size=9}${execi 3600 uname -r}
+${voffset 81}${offset 69}${font Ds\-Digital:size=20}${color2}${time %I}${color3}${time %M}
+
+#Uptime
+${offset 72}${color1}${font Sans:size=9}Uptime:
+${offset 72}${font Sans:size=9}${uptime_short}
+
+# CPU
+${voffset 22}${offset 35}${font Sans:size=7}${color}CPU
+${voffset 5}${offset 52}${color3}${execi 10 sensors coretemp-isa-0000 | grep Package | cut -c 17-18}°C
+${offset 52}${color2}${freq_g 1}GHz
+
+# Mem
+${voffset -52}${offset 135}${color}MEM
+${voffset 5}${offset 105}${color3}${swap}
+${offset 105}${color2}${mem}
+
+# Network
+${voffset 40}${offset 38}${color}NET
+${voffset -42}${offset 50}${color2}${downspeedf wlp3s0}
+${offset 50}${color3}${upspeedf wlp3s0}
+
+# Disk Space
+${voffset -6}${offset 135}${color}HDD
+${voffset -42}${offset 103}${color2}${fs_free /home}
+${offset 60}${goto 108}${color3}${fs_free /}
+
+# Kernel Release
+${voffset 45}${offset 35}${color1}${font Sans:size=9}${execi 3600 uname -r}
 ]];
 ]];

+ 2 - 2
config/conky/conkyrings.lua

@@ -164,7 +164,7 @@ settings_table = {
     {
     {
         name='upspeedf',
         name='upspeedf',
         arg='wlp3s0',
         arg='wlp3s0',
-        max=750,
+        max=10000,
         bg_colour=ring_background_color,
         bg_colour=ring_background_color,
         bg_alpha=ring_background_alpha,
         bg_alpha=ring_background_alpha,
         fg_colour=ring_foreground_color2,
         fg_colour=ring_foreground_color2,
@@ -179,7 +179,7 @@ settings_table = {
     {
     {
         name='downspeedf',
         name='downspeedf',
         arg='wlp3s0',
         arg='wlp3s0',
-        max=4000,
+        max=20000,
         bg_colour=ring_background_color,
         bg_colour=ring_background_color,
         bg_alpha=ring_background_alpha,
         bg_alpha=ring_background_alpha,
         fg_colour=ring_foreground_color,
         fg_colour=ring_foreground_color,