From f3ad0134a87c34a8489be711ccd2a17090bad05d Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 30 Dec 2021 22:44:50 +0200 Subject: [PATCH] Update Conky positioning --- .config/awesome/rules/init.lua | 13 ++++++------- .config/conky/conky_left.conf | 32 +++++++++++++++++++------------- .config/conky/conky_right.conf | 30 +++++++++++++----------------- 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/.config/awesome/rules/init.lua b/.config/awesome/rules/init.lua index 06e1e2f..62f0ad5 100755 --- a/.config/awesome/rules/init.lua +++ b/.config/awesome/rules/init.lua @@ -46,7 +46,7 @@ awful.rules.rules = { { rule_any = { name = { - "GLava", + "GLava" }, }, properties = { @@ -59,11 +59,11 @@ awful.rules.rules = { placement = awful.placement.maximize } }, - -- Widgets + -- Conky Position { rule_any = { - class = { - "Conky", + name = { + "conky (eirene)", }, }, properties = { @@ -72,8 +72,7 @@ awful.rules.rules = { skip_taskbar = true, titlebars_enabled = false, requests_no_titlebar = true, - focusable = false, - placement = awful.placement.maximize + focusable = false } - }, + } } \ No newline at end of file diff --git a/.config/conky/conky_left.conf b/.config/conky/conky_left.conf index 5bcc3d3..6a13219 100755 --- a/.config/conky/conky_left.conf +++ b/.config/conky/conky_left.conf @@ -1,6 +1,6 @@ -- Conky, a system monitor https://github.com/brndnmtthws/conky conky.config = { - background = true, + background = false, use_xft = true, font = 'Meslo LGS NF:size=12', xftalpha = 0.8, @@ -25,7 +25,7 @@ conky.config = { default_color = '#d8dee9', default_shade_color = 'grey', default_outline_color = 'black', - alignment = 'top_left', + alignment = 'middle_left', gap_x = 0, gap_y = 0, no_buffers = true, @@ -38,15 +38,6 @@ conky.config = { } conky.text = [[ - - - - - - - - - ${offset 300} < PF371A40 > ────────────────────── ${offset 300} ┬ ${offset 300} ┌─────── < $nodename > ───────┘ @@ -67,8 +58,8 @@ $alignr ${offset -220} < wlp4s0:${if_empty ${exec iwgetid}} Offline$else ${exec $alignr ${offset -100} < eno1:${if_empty ${exec ifconfig eno1 | grep "inet " | awk '{print $2}'}} Offline$else ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┴──────────── -${offset 450} MEM < $mem/$memmax - ${lua_parse format %2.0f $memperc}% ${membar 8,150} > ┬───────────── -${offset 450} SWAP < $swap/$swapmax - ${lua_parse format %2.0f $swapperc}% ${swapbar 8,150} > ┘ +${offset 440} MEM < $mem/$memmax - ${lua_parse format %2.0f $memperc}% ${membar 8,150} > ┬───────────── +${offset 440} SWAP < $swap/$swapmax - ${lua_parse format %2.0f $swapperc}% ${swapbar 8,150} > ┘ @@ -91,4 +82,19 @@ ${offset 410} ├ STATUS < ${exec playerctl status} > ${offset 410} ├ TITLE < ${exec playerctl metadata title} > ${offset 410} ├ ARTIST < ${exec playerctl metadata artist} > ${offset 410} └ ALBUM < ${exec playerctl metadata album} > + + + + + + + + + + + + + + + ]] diff --git a/.config/conky/conky_right.conf b/.config/conky/conky_right.conf index cd46eb2..81ccc0f 100755 --- a/.config/conky/conky_right.conf +++ b/.config/conky/conky_right.conf @@ -4,7 +4,7 @@ conky.config = { use_xft = true, font = 'Meslo LGS NF:size=12', xftalpha = 0.8, - update_interval = 1, + update_interval = 5, update_interval_on_battery = 15, total_run_times = 0, own_window = true, @@ -25,7 +25,7 @@ conky.config = { default_color = '#d8dee9', default_shade_color = 'grey', default_outline_color = 'black', - alignment = 'top_left', + alignment = 'middle_left', gap_x = 0, gap_y = 0, no_buffers = true, @@ -38,21 +38,6 @@ conky.config = { } conky.text = [[ - - - - - - - - - - - - - - - ${offset 1640}────────────────────── LOCALE < $LANG > @@ -88,4 +73,15 @@ ${offset 1440} └ < /mnt/storage ${fs_used /mnt/storage} ${offset 1510}─────────────────── BAT < $battery > + + + + + + + + + + + ]]