aboutsummaryrefslogtreecommitdiff
path: root/sway-de/waybar/.config
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2023-04-02 20:16:45 -0500
committerMatt Singleton <matt@xcolour.net>2023-04-11 16:06:09 -0500
commit5ca60114560f24617d0a82ef230bc11484617800 (patch)
tree471cfb42af8518d262b1b2403971479f2fc65dc0 /sway-de/waybar/.config
parented3b3470003bf3bcb9ea605daf9d8c68458474df (diff)
each program in a sway package
Diffstat (limited to 'sway-de/waybar/.config')
-rw-r--r--sway-de/waybar/.config/waybar/config81
-rw-r--r--sway-de/waybar/.config/waybar/style.css77
2 files changed, 158 insertions, 0 deletions
diff --git a/sway-de/waybar/.config/waybar/config b/sway-de/waybar/.config/waybar/config
new file mode 100644
index 0000000..17bade2
--- /dev/null
+++ b/sway-de/waybar/.config/waybar/config
@@ -0,0 +1,81 @@
+[
+ {
+ "name": "topbar",
+ "layer": "bottom",
+ "position": "top",
+ "height": 0,
+ "modules-left": ["sway/workspaces", "sway/mode"],
+ "modules-center": [],
+ "modules-right": ["tray", "custom/reboot", "network#wifi", "pulseaudio", "battery#bat1", "temperature", "idle_inhibitor", "clock#local"],
+ "sway/workspaces": {
+ "format": "{icon}",
+ "format-icons": {
+ "1": "",
+ "2": ""
+ }
+ },
+ "clock#local": {
+ "interval": 1,
+ "format": "{:%a %d %b %I:%M %p}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "today-format": "<b>{}</b>"
+ },
+ "temperature": {
+ "critical-threshold": 80,
+ "format": "{icon}",
+ "format-icons": ["", "", "", "", ""],
+ "tooltip-format": "Temperature: {temperatureC}°C"
+ },
+ "battery#bat1": {
+ "bat": "BAT0",
+ "adapter": "AC",
+ "interval": 60,
+ "states": {
+ "5": 100,
+ "4": 80,
+ "3": 60,
+ "2": 40,
+ "1": 20,
+ "0": 5
+ },
+ "format": "{icon}",
+ "format-charging": "",
+ "format-icons": ["", "", "", "", ""],
+ "tooltip-format": "Battery: {capacity}%\n{timeTo}"
+ },
+ "network#wifi": {
+ "interface": "wlp*",
+ "format-ethernet": "",
+ "format-wifi": "",
+ "format-linked": "",
+ "format-disconnected": "",
+ "tooltip-format": "Signal: {signalStrength}%\n{essid}\n{ifname}: {ipaddr}/{cidr}",
+ "on-click": "gnome-control-center wifi"
+ },
+ "pulseaudio": {
+ "scroll-step": 1,
+ "format": "{icon}",
+ "format-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "default": ["", ""]
+ },
+ "tooltip-format": "Volume: {volume}%\n{desc}",
+ "on-click": "gnome-control-center sound"
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ },
+ "tooltip": false
+ },
+ "custom/reboot": {
+ "format": "{}",
+ "exec": "~/.local/bin/dnf-needs-restarting",
+ "return-type": "json",
+ "interval": 60
+ }
+ }
+]
diff --git a/sway-de/waybar/.config/waybar/style.css b/sway-de/waybar/.config/waybar/style.css
new file mode 100644
index 0000000..3866d6f
--- /dev/null
+++ b/sway-de/waybar/.config/waybar/style.css
@@ -0,0 +1,77 @@
+* {
+ border-radius: 0;
+ border: 0;
+ font-family: "Noto Sans", "Font Awesome 5 Free";
+ font-size: 11pt;
+ text-shadow: none;
+}
+
+window#waybar {
+ background: #ffffff;
+ color: #4a484d;
+ border-bottom: 1px solid #efefef;
+ border-left: 5px solid black;
+ border-right: 5px solid black;
+}
+
+.modules-left, .modules-center, .modules-right {
+ background: #ffffff;
+ border-bottom: 1px solid #efefef;
+}
+
+.modules-left {
+ border-radius: 5px 0 0 0;
+ padding-left: 5px;
+}
+
+.modules-right {
+ border-radius: 0 5px 0 0;
+}
+
+tooltip {
+ background: alpha(#fafafa, 0.95);
+ border: 1px solid #ddd;
+}
+
+tooltip label {
+ color: #4a484d;
+}
+
+label {
+ padding: 2px 10px;
+ margin: 0;
+}
+
+#workspaces label {
+ padding: 0;
+}
+
+#workspaces button {
+ padding: 0 6px;
+ font-weight: normal;
+}
+
+#workspaces button:hover {
+ box-shadow: inherit;
+ text-shadow: inherit;
+ background: #ffffff;
+}
+
+#workspaces button.focused {
+ background: #efefef;
+}
+
+#idle_inhibitor {
+ margin: 0;
+ padding: 2px 12px 2px 6px;
+}
+
+#idle_inhibitor.activated {
+ color: #ffffff;
+ background: #a50000;
+ text-shadow: 1px 1px 0 #992030;
+}
+
+#custom-reboot {
+ color: #a50000;
+}