Adding cpu to awesome
This commit is contained in:
parent
2c45b82785
commit
7b173db93d
|
@ -20,7 +20,7 @@
|
||||||
;; my splits
|
;; my splits
|
||||||
(local rules (require "rules"))
|
(local rules (require "rules"))
|
||||||
(local keybindings (require "keybindings"))
|
(local keybindings (require "keybindings"))
|
||||||
;; (local notifications (require "notifications"))
|
;; (local notifications (require "notifications")) ||#
|
||||||
|
|
||||||
;; Error handling
|
;; Error handling
|
||||||
;; Check if awesome encountered an error during startup and fell back to
|
;; Check if awesome encountered an error during startup and fell back to
|
||||||
|
@ -306,7 +306,7 @@
|
||||||
3 s.batteryspace
|
3 s.batteryspace
|
||||||
:layout wibox.layout.fixed.horizontal}))
|
:layout wibox.layout.fixed.horizontal}))
|
||||||
|
|
||||||
(set s.cputext (awful.widget.watch "cat /proc/loadavg | awk '{print $1}'" 10))
|
(set s.cputext (awful.widget.watch "cpu" 10))
|
||||||
(set s.cpuicon (wibox.widget.textbox " "))
|
(set s.cpuicon (wibox.widget.textbox " "))
|
||||||
(set s.cpuspace (wibox.widget.textbox " "))
|
(set s.cpuspace (wibox.widget.textbox " "))
|
||||||
|
|
||||||
|
|
14
picom.conf
14
picom.conf
|
@ -38,10 +38,10 @@ shadow = true;
|
||||||
|
|
||||||
# The blur radius for shadows, in pixels. (defaults to 12)
|
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||||
# shadow-radius = 12
|
# shadow-radius = 12
|
||||||
shadow-radius = 9;
|
shadow-radius = 13;
|
||||||
|
|
||||||
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||||
shadow-opacity = .75
|
shadow-opacity = .65
|
||||||
|
|
||||||
# The left offset for shadows, in pixels. (defaults to -15)
|
# The left offset for shadows, in pixels. (defaults to -15)
|
||||||
# shadow-offset-x = -15
|
# shadow-offset-x = -15
|
||||||
|
@ -91,14 +91,14 @@ shadow-exclude = [
|
||||||
"name = 'Notification'",
|
"name = 'Notification'",
|
||||||
"class_g = 'Conky'",
|
"class_g = 'Conky'",
|
||||||
# "class_g = 'firefox'",
|
# "class_g = 'firefox'",
|
||||||
"class_g = 'Alacritty'",
|
# "class_g = 'Alacritty'",
|
||||||
"class_g ?= 'Notify-osd'",
|
"class_g ?= 'Notify-osd'",
|
||||||
"class_g = 'Cairo-clock'",
|
"class_g = 'Cairo-clock'",
|
||||||
"class_g = 'qutebrowser'",
|
# "class_g = 'qutebrowser'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'qutebrowser'",
|
# "class_g = 'qutebrowser'",
|
||||||
"class_g = 'mpv'",
|
# "class_g = 'mpv'",
|
||||||
"class_g = 'microsoft teams - insiders'",
|
# "class_g = 'microsoft teams - insiders'",
|
||||||
# "class_g = 'Polybar'",
|
# "class_g = 'Polybar'",
|
||||||
# "class_g = 'Rofi'",
|
# "class_g = 'Rofi'",
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
config_version: 2
|
config_version: 2
|
||||||
settings:
|
settings:
|
||||||
content.notifications:
|
content.notifications:
|
||||||
https://www.facebook.com: false
|
https://jelly.cochrun.xyz: true
|
||||||
|
|
|
@ -13,7 +13,7 @@ import glob
|
||||||
|
|
||||||
## This is here so configs done via the GUI are still loaded.
|
## This is here so configs done via the GUI are still loaded.
|
||||||
## Remove it to not load settings done via the GUI.
|
## Remove it to not load settings done via the GUI.
|
||||||
# config.load_autoconfig()
|
config.load_autoconfig()
|
||||||
|
|
||||||
## Aliases for commands. The keys of the given dictionary are the
|
## Aliases for commands. The keys of the given dictionary are the
|
||||||
## aliases, while the values are the commands they map to.
|
## aliases, while the values are the commands they map to.
|
||||||
|
@ -1038,7 +1038,7 @@ c.content.headers.do_not_track = True
|
||||||
|
|
||||||
## Enable host blocking.
|
## Enable host blocking.
|
||||||
## Type: Bool
|
## Type: Bool
|
||||||
c.content.host_blocking.enabled = False
|
# c.content.host_blocking.enabled = true
|
||||||
|
|
||||||
## List of URLs of lists which contain hosts to block. The file can be
|
## List of URLs of lists which contain hosts to block. The file can be
|
||||||
## in one of the following formats: - An `/etc/hosts`-like file - One
|
## in one of the following formats: - An `/etc/hosts`-like file - One
|
||||||
|
@ -1813,7 +1813,7 @@ c.statusbar.padding = {"top": 1, "bottom": 1, "left": 0, "right": 2}
|
||||||
## - always: Always show the statusbar.
|
## - always: Always show the statusbar.
|
||||||
## - never: Always hide the statusbar.
|
## - never: Always hide the statusbar.
|
||||||
## - in-mode: Show the statusbar when in modes other than normal mode.
|
## - in-mode: Show the statusbar when in modes other than normal mode.
|
||||||
c.statusbar.show = "in-mode"
|
c.statusbar.show = "always"
|
||||||
|
|
||||||
## List of widgets displayed in the statusbar.
|
## List of widgets displayed in the statusbar.
|
||||||
## Type: List of String
|
## Type: List of String
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[FileDialog]
|
[FileDialog]
|
||||||
history=file:///home/chris/Videos, file:///home/chris, file:///home/chris/Downloads, file:///home/chris/Downloads/Takeout/Contacts/All Contacts, file:///home/chris/Pictures/Newsletter, file:///home/chris/org
|
history=file:///home/chris, file:///home/chris/Downloads, file:///home/chris/Downloads/Takeout/Contacts/All Contacts, file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera
|
||||||
lastVisited=file:///home/chris/org
|
lastVisited=file:///home/chris/storage/digikam/Photos/Camera/Camera
|
||||||
qtVersion=5.15.2
|
qtVersion=5.15.2
|
||||||
shortcuts=file:, file:///home/chris
|
shortcuts=file:, file:///home/chris
|
||||||
sidebarWidth=116
|
sidebarWidth=116
|
||||||
|
|
3
scripts/cpu
Executable file
3
scripts/cpu
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
|
||||||
|
<(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)
|
Loading…
Reference in a new issue