From e3739ffbe2f48626cfec3e5c58ae530e24f26c8a Mon Sep 17 00:00:00 2001 From: Lev Babiev Date: Sat, 21 Aug 2021 17:00:51 +0100 Subject: [PATCH] delete obsolote configs --- config/clock-twoline.config | 19 ----- config/sfwbar.css | 135 ---------------------------------- config/temps.config | 84 --------------------- config/usage-vertical.config | 49 ------------ config/weather-twoline.config | 31 -------- 5 files changed, 318 deletions(-) delete mode 100644 config/clock-twoline.config delete mode 100644 config/sfwbar.css delete mode 100644 config/temps.config delete mode 100644 config/usage-vertical.config delete mode 100644 config/weather-twoline.config diff --git a/config/clock-twoline.config b/config/clock-twoline.config deleted file mode 100644 index 620cbc90..00000000 --- a/config/clock-twoline.config +++ /dev/null @@ -1,19 +0,0 @@ -layout { - Clock { - type = grid - style = "frame", - css = "* { -GtkWidget-direction: bottom; }" - children { - Time { - type = label - css = "label { font: 20px Sans; font-weight: 700; min-width: 84px; -GtkWidget-align: 0.5; -GtkWidget-vexpand: true;}" - value = "Extract(Time(),'([0-9]*:[0-9]*)')" - } - Date { - type = label - value = "Extract(Time(),'^([A-Za-z]+\\ [A-Za-z]+[\\ ]+[0-9]+)')" - css = "label { -GtkWidget-align: 0.5; -GtkWidget-vexpand: true; }" - } - } - } -} diff --git a/config/sfwbar.css b/config/sfwbar.css deleted file mode 100644 index 18e8d08a..00000000 --- a/config/sfwbar.css +++ /dev/null @@ -1,135 +0,0 @@ -button#taskbar_normal label, button#taskbar_active label, button#taskbar_normal:hover label { - padding-left: 3px; - padding-top: 0px; - padding-bottom: 0px; -} - -button#taskbar_normal , button#taskbar_active , button#taskbar_normal:hover { - padding-left: 3px; - padding-top: 2px; - padding-bottom: 2px; - background-image: none; - border-radius: 0; - border-image: none; - font: 10px Sans; -} - -button#taskbar_active { - background-color: #bbddff; -} - -button#taskbar_normal:hover { - background-color: #cccccc; -} - -button#pager_normal , button#pager_visible , button#pager_focused { - padding-left: 5px; - padding-right: 5px; - padding-top: 2px; - padding-bottom: 2px; - background-image: none; - border-radius: 0; - border-image: none; - font: 10px Sans; -} - -button#pager_focused { - background-color: #bbddff; -} - -button#pager_preview { - background-image: none; - border-radius: 0; - border-image: none; - border-color: #000000; - border-width: 1px; - color: #777777; - min-width: 160px; - min-height: 90px; -} - -grid#pager { - outline-color: #000000; - outline-style: dashed; - outline-width: 1px; -} - -grid#switcher_active *, grid#switcher_active, grid#switcher_active * * { - background-color: #bbddff; - border-image: none; - border-radius: 5px; - padding: 5px; -} - -grid#switcher_normal *, grid#switcher_normal { - border-image: none; - padding: 5px; -} - -window#switcher { - border-style: solid; - border-width: 1px; - border-color: #000000; - border-radius: 5px; - padding: 5px; -} - -grid#switcher { - border-radius: 5px; - padding: 5px; -} - -progressbar { - padding-left: 1px; - padding-right: 1px; - -GtkWidget-vexpand: true; - -GtkWidget-direction: top; -} - -progress, trough { - border-radius: 0; - border-color: #9c9c9c; -} - -progress { - border-style: outset; - min-width: 8px; -} - -trough { - background-color: #a1a1a1; - border-style: inset; - min-height: 10px; - min-width: 10px; -} - -grid#frame { - border-color: #9c9c9c; - border-style: groove; - border-width: 2px; - padding-top: 1px; -} - -grid#layout { - padding: 1px; - -GtkWidget-direction: right; -} - -label { - font: 10px Sans; - color: #000000; -} - -label#static { - min-width: 35px; - min-height: 11px; - padding-left: 5px; -} - -label#value { - min-width: 42px; - min-height: 11px; - padding-right: 5px; - -GtkWidget-align: 1; -} - diff --git a/config/temps.config b/config/temps.config deleted file mode 100644 index a6273f88..00000000 --- a/config/temps.config +++ /dev/null @@ -1,84 +0,0 @@ -scanner { -# Add up received and transmitted bytes cross all enp* interfaces - "/proc/net/dev" { - flags = "NoGlob" - EthRcvd.add = "enp.*:[\t ]*([0-9]+)" - EthSent.add = "enp.*:(?:[\t ]*[0-9]+){8}[\t ]([0-9]+)" - } - -# Poll motherboard temperature - "/sys/class/hwmon/hwmon2/temp1_input" { - MBTemp.= "([0-9]+)" - } - -# Poll CPU temperature - "/sys/class/hwmon/hwmon1/temp1_input" { - CPUTemp.= "([0-9]+)" - } - -# Poll CPU fan rpm - "/sys/devices/platform/it87*/hwmon/hwmon2/fan2_input" { - CPUFan.= "([0-9]+)" - } - -# Poll MB fan rpm - "/sys/devices/platform/it87*/hwmon/hwmon2/fan1_input" { - MBFan.= "([0-9]+)" - } -} - -layout { - Temps { - type = grid - style = "frame" # add css style for framed grid - css = "* { -GtkWidget-direction: bottom; }" # flow new widgets down from previous widget - children { -# add first label with explicit coordinates - EthLabel { - type = label - style = static - value = "'ETH:'" # for a static string, put text inside both double and single quotes - x = 1, y = 1 - } -# the rest of labels in the column will be placed automatically - CpuLabel { - type = label - style = static - value = "'CPU:'" - } - MbLabel { - type = label - style = static - value = "'M/B:'" - } - FanLabel { - type = label - style = static - value = "'FAN:'" - } -# specify position for the first widget in the second column - EthValue { - type = label - style = value - value = "Str((EthRcvd-EthRcvd.pval)/0.001024/EthRcvd.time,0)+'K/s'" - x = 2, y = 1 - } -# and the rest of the widgets will line up automatically - CpuValue { - type = label - style = value - value = "Str(CPUTemp/1000,1)" - } - MbValue { - type = label - style = value - value = "Str(MBTemp/1000,1)" - } - FanValue { - type = label - style = value - value = "Str(CPUFan,0)" - } - } - } -} diff --git a/config/usage-vertical.config b/config/usage-vertical.config deleted file mode 100644 index 4a87faf2..00000000 --- a/config/usage-vertical.config +++ /dev/null @@ -1,49 +0,0 @@ -scanner { - -# Extract memory usage information - "/proc/meminfo" { - MemTotal. = "^MemTotal:[\t ]*([0-9]+)[\t ]" - MemFree.= "^MemFree:[\t ]*([0-9]+)[\t ]" - MemCache.= "^Cached:[\t ]*([0-9]+)[\t ]" - MemBuff.= "^Buffers:[\t ]*([0-9]+)[\t ]" - } - -# Add up total and used swap capacity across all partitions - "/proc/swaps" { - SwapTotal.add = "[\t ]([0-9]+)" - SwapUsed.add = "[\t ][0-9]+[\t ]([0-9]+)" - } - -# Add up CPU utilization stats across all CPUs - "/proc/stat" { - CpuUser.add = "^cpu [\\t ]*([0-9]+)","flag" - CpuNice.add = "^cpu [\\t ]*[0-9]+ ([0-9]+)" - CpuSystem.add = "^cpu [\\t ]*[0-9]+ [0-9]+ ([0-9]+)" - CpuIdle.add = "^cpu [\\t ]*[0-9]+ [0-9]+ [0-9]+ ([0-9]+)" - } -} - -layout { - # add a sub-grid to house scales - pbars { - type = grid - children { - # add a scale to display CPU utilization - Cpu { - type = scale - css = "progressbar progress { background-color: #0000ff;}" - value = "(CpuUser-CpuUser.pval)/(CpuUser+CpuNice+CpuSystem+CpuIdle-CpuUser.pval-CpuNice.pval-CpuSystem.pval-CpuIdle.pval)" - } - Mem { - type = scale - css = "progressbar progress { background-color: #00ff00;}" - value= "(MemTotal-MemFree-MemCache-MemBuff)/MemTotal" - } - Swap { - type = scale - css = "progressbar progress { background-color: #ff0000;}" - value = "SwapUsed/SwapTotal" - } - } - } -} diff --git a/config/weather-twoline.config b/config/weather-twoline.config deleted file mode 100644 index d5009ea8..00000000 --- a/config/weather-twoline.config +++ /dev/null @@ -1,31 +0,0 @@ -# Parse yr.no weather forecast -scanner { - "wget -O - \"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.8711&lon=0.1587\"" { - WthrTemp = "\"timeseries\".*\"air_temperature\":([0-9\\.]*)" - WthrPrss.= "\"timeseries\".*\"air_pressure_at_sea_level\":([0-9\\.]*)" - WthrWind = "\"timeseries\".*\"wind_speed\":([0-9\\.]*)" - WthrCond = "\"timeseries\".*\"symbol_code\":\"([A-Za-z_]*)\"" - } -} - -layout { - Weather { - type = grid - style = frame - css = "* { -GtkWidget-direction: bottom; }" - children { - Temp { - type = label - freq = 300000 - css = "* { font: 18px Sans; font-weight: 700; min-width: 84px; padding-top: 2px; -GtkWidget-align: 0.5;}" - value = "$WthrTemp.val" - } - Cond { - type = image - freq = 300000 - css = "* { -GtkWidget-icon-size: 28;}" - value = "'/usr/share/sfwbar/icons/weather/svg/'+$WthrCond+'.svg'" - } - } - } -}