From 4824542ceabf21df2f162603279e85e80120531e Mon Sep 17 00:00:00 2001 From: David Mandelberg Date: Fri, 1 Nov 2024 18:38:12 -0400 Subject: [PATCH] Switch to the official system-monitor extension I don't like it as much, but the unofficial one was removed from Debian. The package name is the same. --- .../gnome-system-monitor-set-thermal.desktop | 5 -- .../conf.d/gnome-shell-00.yaml | 87 +------------------ .local/bin/gnome-system-monitor-set-thermal | 41 --------- 3 files changed, 3 insertions(+), 130 deletions(-) delete mode 100644 .config/autostart/gnome-system-monitor-set-thermal.desktop delete mode 100755 .local/bin/gnome-system-monitor-set-thermal diff --git a/.config/autostart/gnome-system-monitor-set-thermal.desktop b/.config/autostart/gnome-system-monitor-set-thermal.desktop deleted file mode 100644 index fc9a45c..0000000 --- a/.config/autostart/gnome-system-monitor-set-thermal.desktop +++ /dev/null @@ -1,5 +0,0 @@ -[Desktop Entry] -Name=gnome-system-monitor-set-thermal -Exec=sh -c "exec ~/.local/bin/gnome-system-monitor-set-thermal" -Terminal=false -Type=Application diff --git a/.config/dconf-load-yaml/conf.d/gnome-shell-00.yaml b/.config/dconf-load-yaml/conf.d/gnome-shell-00.yaml index d0821ca..7048aa9 100644 --- a/.config/dconf-load-yaml/conf.d/gnome-shell-00.yaml +++ b/.config/dconf-load-yaml/conf.d/gnome-shell-00.yaml @@ -23,11 +23,13 @@ - key: command-history reset: false - key: enabled-extensions + # TODO(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086595): + # Switch back to a better system-monitor with graphs. value: >- ['caffeine@patapon.info', 'dash-to-panel@jderose9.github.com', 'no-overview@fthx', - 'system-monitor@paradoxxx.zero.gmail.com', + 'system-monitor@gnome-shell-extensions.gcampax.github.com', 'ubuntu-appindicators@ubuntu.com', 'wsmatrix@martin.zurowietz.de'] - key: favorite-apps @@ -136,89 +138,6 @@ value: "'NOTHING'" - key: show-window-previews value: "false" - - dir: system-monitor - children: - - key: background - value: "'#1f1f1fff'" - - key: cpu-display - value: "true" - - key: cpu-graph-width - value: "60" - - key: cpu-individual-cores - value: "false" - - key: cpu-refresh-time - value: "500" - - key: cpu-show-menu - value: "true" - - key: cpu-show-text - value: "false" - - key: cpu-style - value: "'graph'" - - key: disk-display - value: "true" - - key: disk-graph-width - value: "60" - - key: disk-read-color - value: "'#0000ffff'" - - key: disk-refresh-time - value: "500" - - key: disk-show-text - value: "false" - - key: disk-style - value: "'graph'" - - key: disk-usage-style - value: "'bar'" - - key: disk-write-color - value: "'#ff0000ff'" - - key: freq-display - value: "false" - - key: freq-show-menu - value: "true" - - key: icon-display - value: "false" - - key: memory-graph-width - value: "60" - - key: memory-refresh-time - value: "500" - - key: memory-show-text - value: "false" - - key: move-clock - value: "false" - - key: net-collisions-color - value: "'#ff7fffff'" - - key: net-down-color - value: "'#7f7fffff'" - - key: net-downerrors-color - value: "'#ff7fffff'" - - key: net-graph-width - value: "60" - - key: net-refresh-time - value: "500" - - key: net-show-text - value: "false" - - key: net-up-color - value: "'#ff7f7fff'" - - key: net-uperrors-color - value: "'#ff7fffff'" - - key: show-tooltip - value: "true" - - key: swap-display - value: "true" - - key: swap-graph-width - value: "60" - - key: swap-refresh-time - value: "500" - - key: swap-show-text - value: "false" - - key: thermal-display - value: "true" - - key: thermal-sensor-file - # See ~/.local/bin/gnome-system-monitor-set-thermal - reset: false - - key: thermal-show-text - value: "false" - - key: thermal-style - value: "'digit'" - dir: wsmatrix children: - key: multi-monitor diff --git a/.local/bin/gnome-system-monitor-set-thermal b/.local/bin/gnome-system-monitor-set-thermal deleted file mode 100755 index fe694e1..0000000 --- a/.local/bin/gnome-system-monitor-set-thermal +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -set -e -shopt -s nullglob - - -find_input_file() { - # Intel CPU - for label in /sys/devices/platform/coretemp.0/hwmon/hwmon*/temp*_label; do - if [[ "$(cat "$label")" = "Package id 0" ]]; then - echo "${label%_label}_input" - return 0 - fi - done - - return 1 -} - - -input_file="$(find_input_file)" -if ! [[ -r "$input_file" ]]; then - echo "ERROR: File not readable: ${input_file}" >&2 - exit 1 -fi -dconf write /org/gnome/shell/extensions/system-monitor/thermal-sensor-file \ - "'${input_file}'"