Update Conky positioning

This commit is contained in:
2021-12-30 22:44:50 +02:00
parent f3925fe250
commit 680b6c4ddb
3 changed files with 38 additions and 37 deletions

View File

@@ -46,7 +46,7 @@ awful.rules.rules = {
{ {
rule_any = { rule_any = {
name = { name = {
"GLava", "GLava"
}, },
}, },
properties = { properties = {
@@ -59,11 +59,11 @@ awful.rules.rules = {
placement = awful.placement.maximize placement = awful.placement.maximize
} }
}, },
-- Widgets -- Conky Position
{ {
rule_any = { rule_any = {
class = { name = {
"Conky", "conky (eirene)",
}, },
}, },
properties = { properties = {
@@ -72,8 +72,7 @@ awful.rules.rules = {
skip_taskbar = true, skip_taskbar = true,
titlebars_enabled = false, titlebars_enabled = false,
requests_no_titlebar = true, requests_no_titlebar = true,
focusable = false, focusable = false
placement = awful.placement.maximize }
} }
},
} }

View File

@@ -1,6 +1,6 @@
-- Conky, a system monitor https://github.com/brndnmtthws/conky -- Conky, a system monitor https://github.com/brndnmtthws/conky
conky.config = { conky.config = {
background = true, background = false,
use_xft = true, use_xft = true,
font = 'Meslo LGS NF:size=12', font = 'Meslo LGS NF:size=12',
xftalpha = 0.8, xftalpha = 0.8,
@@ -25,7 +25,7 @@ conky.config = {
default_color = '#d8dee9', default_color = '#d8dee9',
default_shade_color = 'grey', default_shade_color = 'grey',
default_outline_color = 'black', default_outline_color = 'black',
alignment = 'top_left', alignment = 'middle_left',
gap_x = 0, gap_x = 0,
gap_y = 0, gap_y = 0,
no_buffers = true, no_buffers = true,
@@ -38,15 +38,6 @@ conky.config = {
} }
conky.text = [[ conky.text = [[
${offset 300} < PF371A40 > ────────────────────── ${offset 300} < PF371A40 > ──────────────────────
${offset 300} ┬ ${offset 300} ┬
${offset 300} ┌─────── < $nodename > ───────┘ ${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 > ┴──────────── $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 440} 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} 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} ├ TITLE < ${exec playerctl metadata title} >
${offset 410} ├ ARTIST < ${exec playerctl metadata artist} > ${offset 410} ├ ARTIST < ${exec playerctl metadata artist} >
${offset 410} └ ALBUM < ${exec playerctl metadata album} > ${offset 410} └ ALBUM < ${exec playerctl metadata album} >
]] ]]

View File

@@ -4,7 +4,7 @@ conky.config = {
use_xft = true, use_xft = true,
font = 'Meslo LGS NF:size=12', font = 'Meslo LGS NF:size=12',
xftalpha = 0.8, xftalpha = 0.8,
update_interval = 1, update_interval = 5,
update_interval_on_battery = 15, update_interval_on_battery = 15,
total_run_times = 0, total_run_times = 0,
own_window = true, own_window = true,
@@ -25,7 +25,7 @@ conky.config = {
default_color = '#d8dee9', default_color = '#d8dee9',
default_shade_color = 'grey', default_shade_color = 'grey',
default_outline_color = 'black', default_outline_color = 'black',
alignment = 'top_left', alignment = 'middle_left',
gap_x = 0, gap_x = 0,
gap_y = 0, gap_y = 0,
no_buffers = true, no_buffers = true,
@@ -38,21 +38,6 @@ conky.config = {
} }
conky.text = [[ conky.text = [[
${offset 1640}────────────────────── LOCALE < $LANG > ${offset 1640}────────────────────── LOCALE < $LANG >
@@ -88,4 +73,15 @@ ${offset 1440} └ < /mnt/storage ${fs_used /mnt/storage}
${offset 1510}─────────────────── BAT < $battery > ${offset 1510}─────────────────── BAT < $battery >
]] ]]