summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/waybar/config.jsonc124
-rw-r--r--.config/waybar/style.css102
2 files changed, 226 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..76d5f01
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,124 @@
1// -*- mode: jsonc -*-
2{
3 "layer": "top", // Waybar at top layer
4 "position": "top", // Waybar position (top|bottom|left|right)
5 "height": 32, // Waybar height (to be removed for auto height)
6 // "width": 1280, // Waybar width
7 "spacing": 4, // Gaps between modules (4px)
8 // Choose the order of the modules
9 "modules-left": [
10 "niri/workspaces"
11 ],
12 "modules-center": [
13 "niri/window"
14 ],
15 "modules-right": [
16 "tray",
17 "pulseaudio",
18 // "group/system-status",
19 // "user",
20 "niri/language",
21 "battery",
22 "clock"
23 ],
24 // Modules configuration
25 "niri/workspaces": {
26 "format": "{icon}",
27 "format-icons": {
28 "main": "",
29 "games": "󰊖",
30 "default": ""
31 }
32 },
33 "niri/language": {
34 "format-en": "EN",
35 "format-ru": "RU"
36 },
37 "tray": {
38 // "icon-size": 21,
39 "spacing": 10,
40 // "icons": {
41 // "blueman": "bluetooth",
42 // "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
43 // }
44 },
45 "clock": {
46 "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
47 "format": "{:%R}",
48 "format-alt": "{:%F}"
49 },
50 "group/system-status": {
51 "modules": [
52 "network",
53 "memory",
54 "cpu",
55 "temperature"
56 ],
57 "orientation": "inherit",
58 "drawer": {
59 }
60 },
61 "cpu": {
62 "format": "CPU {usage}% {avg_frequency}",
63 "tooltip": false
64 },
65 "memory": {
66 "format": "RAM {percentage}% + {swapPercentage}%"
67 },
68 "user": {
69 "format": "{work_H}:{work_M} Up"
70 },
71 "temperature": {
72 // "thermal-zone": 2,
73 // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
74 "critical-threshold": 80,
75 // "format-critical": "{temperatureC}°C {icon}",
76 "format": "{temperatureC}°C"
77 },
78 "backlight": {
79 // "device": "acpi_video1",
80 "format": "{percent}% {icon}",
81 "format-icons": ["", "", "", "", "", "", "", "", ""]
82 },
83 "battery": {
84 "states": {
85 // "good": 95,
86 "warning": 30,
87 "critical": 15
88 },
89 "format": "{capacity}% {icon}",
90 "format-full": "{capacity}% {icon}",
91 "format-charging": "{capacity}% ",
92 "format-plugged": "{capacity}% ",
93 "format-alt": "{time} {icon}",
94 // "format-good": "", // An empty format will hide the module
95 // "format-full": "",
96 "format-icons": ["", "", "", "", ""]
97 },
98 "network": {
99 "format-wifi": "{essid} ({signalStrength}%) ",
100 "format-ethernet": "{ipaddr}/{cidr}",
101 "tooltip-format": "{ifname} via {gwaddr}",
102 "format-linked": "{ifname} (No IP)",
103 "format-disconnected": "Disconnected ⚠",
104 "format-alt": "↑ {bandwidthUpBits} ↓ {bandwidthDownBits}"
105 },
106 "pulseaudio": {
107 "scroll-step": 5, // %, can be a float
108 "format": "{volume}% {icon}",
109 "format-bluetooth": "{volume}% {icon}",
110 "format-bluetooth-muted": " {icon} {format_source}",
111 "format-muted": " {format_source}",
112 "format-source-muted": "",
113 "format-icons": {
114 "headphone": "",
115 "hands-free": "",
116 "headset": "",
117 "phone": "",
118 "portable": "",
119 "car": "",
120 "default": ["", "", ""]
121 },
122 "on-click": "pavucontrol"
123 }
124}
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 0000000..42ecf2b
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,102 @@
1* {
2 font-family: "NotoSans Nerd Font", sans-serif;
3 font-size: 14px;
4 color: rgba(238, 238, 238, 1);
5}
6
7window#waybar {
8 background-color: rgb(40, 40, 46);
9 border-bottom: 1px solid rgba(238, 238, 238, 0.3);
10 transition-property: background-color;
11 transition-duration: .5s;
12}
13
14window#waybar.hidden {
15 opacity: 0.2;
16}
17
18tooltip {
19 background: rgb(40, 40, 46);
20}
21
22tooltip label {
23 padding: 0.2em 0.4em;
24}
25
26button {
27 /* Use box-shadow instead of border so the text isn't offset */
28 box-shadow: inset 0 -3px transparent;
29 /* Avoid rounded borders under each button name */
30 border: none;
31 border-radius: 0;
32}
33
34/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
35button:hover {
36 background: inherit;
37 box-shadow: inset 0 -3px #ffffff;
38}
39
40#workspaces button {
41 padding: 0 5px;
42 background-color: transparent;
43 min-width: 2em;
44}
45
46#workspaces button:hover {
47 background: rgba(0, 0, 0, 0.2);
48}
49
50#workspaces button.focused {
51 color: rgb(150, 145, 238);
52 background-color: rgba(238, 238, 238, 0.2);
53 box-shadow: inset 0 -3px rgb(150, 145, 238);
54}
55
56#workspaces button.urgent {
57 background-color: #eb4d4b;
58}
59
60#mode {
61 background-color: #64727D;
62 box-shadow: inset 0 -3px #ffffff;
63}
64
65window#window {
66 font-family: "JetBrainsMono", monospace;
67}
68
69#clock,
70#battery,
71#cpu,
72#memory,
73#disk,
74#temperature,
75#backlight,
76#network,
77#pulseaudio,
78#wireplumber,
79#custom-media,
80#tray,
81#mode,
82#idle_inhibitor,
83#scratchpad,
84#power-profiles-daemon,
85#mpd {
86 padding: 0 10px;
87}
88
89#window,
90#workspaces {
91 margin: 0 4px;
92}
93
94/* If workspaces is the leftmost module, omit left margin */
95.modules-left > widget:first-child > #workspaces {
96 margin-left: 0;
97}
98
99/* If workspaces is the rightmost module, omit right margin */
100.modules-right > widget:last-child > #workspaces {
101 margin-right: 0;
102}