32ddbb24bcbbbc74abf303eafa23ef375fdee2a1

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Add powerprofiles to waybar

Diff

  1diff --git a/dot_config/waybar/config-bottom.jsonc.tmpl b/dot_config/waybar/config-bottom.jsonc.tmpl
  2index dfd49d615a71f936f569b25170eb5d8db34532d5..802943dc1b90791712e581f5eab368e4fff0cfd5 100644
  3--- a/dot_config/waybar/config-bottom.jsonc.tmpl
  4+++ b/dot_config/waybar/config-bottom.jsonc.tmpl
  5@@ -5,12 +5,14 @@
  6 	"position": "bottom",
  7 	"reload_style_on_change": true,
  8 	"modules-right": [
  9-		"custom/arrow_left_end_alt",
 10+		"custom/arrow_left_end",
 11 		"network#tailscale",
 12-		"custom/arrow_left_alt",
 13-		"network",
 14 		"custom/arrow_left",
 15+		"network",
 16+		"custom/arrow_left_alt",
 17 		"temperature",
 18+		"custom/arrow_left",
 19+		"power-profiles-daemon",
 20 		"custom/arrow_left_alt",
 21 		"cpu",
 22 		"custom/arrow_left",
 23@@ -18,6 +20,17 @@
 24 		"custom/arrow_left_alt",
 25 		"tray"
 26 	],
 27+	"power-profiles-daemon": {
 28+		"format": "{icon}",
 29+		"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
 30+		"tooltip": true,
 31+		"format-icons": {
 32+			"default": "",
 33+			"performance": "",
 34+			"balanced": "",
 35+			"power-saver": ""
 36+		}
 37+	},
 38 	"cpu": {
 39 		"interval": 1,
 40 		"tooltip": false,
 41diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
 42index 65ed00a8ec75027db52e6e06f00369a424c2030f..1c0d2be5e6946dde62c8afc91c2dbe485646f1e0 100644
 43--- a/dot_config/waybar/style.css
 44+++ b/dot_config/waybar/style.css
 45@@ -70,34 +70,49 @@
 46 #disk,
 47 #user,
 48 #custom-crypto,
 49+#power-profiles-daemon,
 50 #mpris {
 51 	padding-left: 8pt;
 52 	padding-right: 8pt;
 53 	color: @fg;
 54 }
 55 
 56-#network,
 57 #cpu,
 58 #battery,
 59 #privacy,
 60 #clock.date,
 61 #tray,
 62 #custom-crypto,
 63+#temperature,
 64+#network.tailscale,
 65 #pulseaudio {
 66 	background: @bg;
 67 }
 68 
 69 #backlight,
 70+#network,
 71 #memory,
 72-#temperature,
 73 #language,
 74 #clock.time,
 75-#network.tailscale,
 76 #mpris,
 77+#power-profiles-daemon,
 78 #pulseaudio.mic {
 79 	background: @bg_alt;
 80 }
 81 
 82+
 83+#power-profiles-daemon.performance {
 84+    color: @yellow;
 85+}
 86+
 87+#power-profiles-daemon.balanced {
 88+}
 89+
 90+#power-profiles-daemon.power-saver {
 91+    color: @green;
 92+}
 93+
 94+
 95 #memory.critical,
 96 #cpu.critical,
 97 #temperature.critical,
 98@@ -128,11 +143,11 @@
 99 	background: @bg;
100 	border: 1pt solid @fg2;
101 }
102+
103 #workspaces button:hover {
104 	background: @bg2;
105 }
106 
107-
108 #workspaces button.visible {
109 	color: @bg;
110 	background: @fg2;