summaryrefslogtreecommitdiff
path: root/config/hyprland/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'config/hyprland/waybar')
-rw-r--r--config/hyprland/waybar/config.jsonc98
-rw-r--r--config/hyprland/waybar/style.css127
2 files changed, 225 insertions, 0 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc
new file mode 100644
index 0000000..5428f79
--- /dev/null
+++ b/config/hyprland/waybar/config.jsonc
@@ -0,0 +1,98 @@
+{
+ "position": "top",
+ "height": 25,
+
+ "modules-left": ["wlr/workspaces"],
+ "modules-center": ["custom/media"],
+ "modules-right": ["battery", "network", "pulseaudio", "clock", "tray"],
+
+ "wlr/workspaces": {
+ "disable-scroll": true,
+ "all-outputs": true,
+ "on-click": "activate",
+ //"format": "{icon}",
+ "persistent_workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": [],
+ "6": [],
+ "7": [],
+ "8": [],
+ "9": [],
+ "10": []
+ },
+ /*"format-icons": {
+ "1": "",
+ "2": "",
+ "3": "",
+ "4": "",
+ "5": "",
+ "6": "",
+ "7": "",
+ "8": "",
+ "9": "",
+ "10": "",
+ "default": "",
+ "active": ""
+ }*/
+ },
+ "battery": {
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{capacity}% {icon}",
+ "format-charging": "{capacity}% ",
+ "format-plugged": "{capacity}% ",
+ "format-alt": "{time} {icon}",
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "battery#bat2": {
+ "bat": "BAT2"
+ },
+ "clock": {
+ "format": "{: %R  %d/%m}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
+ },
+ "network": {
+ "format-wifi": " {essid}",
+ "format-ethernet": " {essid}",
+ "format-linked": "{ifname} (No IP) ",
+ "format-disconnected": "睊 Disconnected",
+ "tooltip-format-wifi": "Signal Strenght: {signalStrength}% | Down Speed: {bandwidthDownBits}, Up Speed: {bandwidthUpBits}"
+ },
+ "pulseaudio": {
+ "format": "{icon} {volume}%",
+ "format-muted": "Muted",
+ "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
+ "scroll-step": 1,
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", "墳", ""]
+ }
+ },
+ "mpd": {
+ "format": "{icon} {}",
+ "return-type": "json",
+ "max-length": 40,
+ "format-icons": {
+ "spotify": "",
+ "default": ""
+ },
+ "escape": true,
+ },
+ "tray": {
+ "icon-size": 13,
+ "spacing": 10
+ },
+}
diff --git a/config/hyprland/waybar/style.css b/config/hyprland/waybar/style.css
new file mode 100644
index 0000000..c1a3f93
--- /dev/null
+++ b/config/hyprland/waybar/style.css
@@ -0,0 +1,127 @@
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "FiraCode Nerd Font";
+ font-size: 13px;
+ min-height: 0;
+}
+
+window#waybar {
+ background: rgba(129,161,193,0.54);
+ color: #2e3440;
+ border-radius: 3px;
+ border: solid #2e3449 1px;
+}
+
+#window {
+ font-weight: normal;
+ font-family: "FiraCode Nerd Font";
+}
+
+#workspaces {
+ padding: 0 5px;
+}
+
+#workspaces button {
+ padding: 0 5px;
+ color: #BBBBBB;
+}
+
+#workspaces button.visible {
+ color: inherit;
+ background-color: #ff007c;
+}
+
+#workspaces button.active{
+ color: inherit;
+ background-color: #ff007c;
+}
+
+#workspaces button.focused {
+ color: #BBBBBB;
+ background-color: #ff007c;
+}
+
+#workspaces button.urgent {
+ color: #F44747;
+}
+#workspaces button.hidden {
+ color: #F44747;
+}
+
+#tags button {
+ padding: 0 5px;
+ color: #BBBBBB;
+}
+
+#tags button.occupied {
+ color: inherit;
+ background-color: #ff007c;
+}
+
+
+
+#tags button.focused {
+ color: #BBBBBB;
+ background-color: #ff007c;
+}
+
+#tags button.urgent {
+ color: #F44747;
+}
+
+#mode {
+ background: #ff007c;
+ border-bottom: 3px solid #BBBBBB;
+}
+
+#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode, #custom-wofi-power {
+ padding: 0 10px;
+ margin: 0 2px;
+}
+
+#clock {
+ font-weight: normal;
+}
+
+#battery icon {
+ color: #F44747;
+}
+
+@keyframes blink {
+ to {
+ background-color: #ff007c;
+ color: black;
+ }
+}
+
+#battery.warning:not(.charging) {
+ color: #F44747;
+ animation-name: blink;
+ animation-duration: 0.5s;
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}
+
+#cpu {
+}
+
+#memory {
+}
+
+#network {
+}
+
+#network.disconnected {
+ background: #F44747;
+}
+
+#pulseaudio {
+}
+
+#pulseaudio.muted {
+}
+
+#tray {
+}