summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-04-25 23:38:47 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-04-25 23:38:47 +0530
commit636690b90b8959f53852afd7d3e2c566917f6f0c (patch)
tree1754dad4ddfe2bd9886e617d44b07a13257ea807
parent0b3e2f804bbf1b5aaba2429beb9906fc91b14218 (diff)
.config: Adding waybar config+style css
-rw-r--r--.config/style.css177
-rw-r--r--.config/waybar/config.jsonc151
2 files changed, 328 insertions, 0 deletions
diff --git a/.config/style.css b/.config/style.css
new file mode 100644
index 0000000..901ad8e
--- /dev/null
+++ b/.config/style.css
@@ -0,0 +1,177 @@
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "JetBrainsMono Nerd Font";
+ font-weight: bold;
+ font-size: 15.9px;
+ min-height: 0;
+}
+
+window#waybar {
+ background: rgba(21, 18, 27, 0);
+ color: #cdd6f4;
+}
+
+tooltip {
+ background: #1e1e2e;
+ border-radius: 10px;
+ border-width: 2px;
+ border-style: solid;
+ border-color: #11111b;
+}
+
+#workspaces button {
+ padding: 5px;
+ color: #313244;
+ margin-right: 5px;
+}
+
+#workspaces button.active {
+ color: #a6adc8;
+}
+
+#workspaces button.focused {
+ color: #a6adc8;
+ background: #eba0ac;
+ border-radius: 10px;
+}
+
+#workspaces button.urgent {
+ color: #11111b;
+ background: #a6e3a1;
+ border-radius: 10px;
+}
+
+#workspaces button:hover {
+ background: #11111b;
+ color: #cdd6f4;
+ border-radius: 10px;
+}
+
+#custom-power_profile,
+#custom-weather,
+#custom-launcher,
+#window,
+#clock,
+#battery,
+#pulseaudio,
+#cpu,
+#network,
+#bluetooth,
+#temperature,
+#custom-memory,
+#workspaces,
+#tray,
+#backlight {
+ background: #1e1e2e;
+ opacity: 0.8;
+ padding: 0px 10px;
+ margin: 3px 0px;
+ margin-top: 10px;
+ border: 1px solid #181825;
+}
+
+#temperature {
+ border-radius: 0px 0px 0px 0px;
+}
+
+#temperature.critical {
+ color: #eba0ac;
+}
+
+#backlight {
+ border-radius: 10px 0px 0px 10px;
+}
+
+#tray {
+ border-radius: 10px;
+ margin-right: 10px;
+}
+
+#workspaces {
+ background: #1e1e2e;
+ border-radius: 10px;
+ margin-left: 10px;
+ padding-right: 0px;
+ padding-left: 5px;
+}
+
+#custom-power_profile {
+ color: #a6e3a1;
+ border-left: 0px;
+ border-right: 0px;
+}
+
+#custom-memory {
+ color: #ffa500;
+ border-radius: 0px 10px 10px 0px;
+ border-left: 0px;
+ border-right: 0px;
+}
+
+#window {
+ border-radius: 10px;
+ margin-left: 60px;
+ margin-right: 60px;
+}
+
+#clock {
+ color: #fab387;
+ border-radius: 10px 10px 10px 10px;
+ margin-left: 10px;
+ border-right: 0px;
+}
+
+#cpu {
+ color: #f9e2af;
+ border-radius: 10px 0px 0px 10px;
+ border-left: 0px;
+ margin-left: 0px;
+ border-right: 0px;
+ margin-right: 0px;
+}
+#network {
+ color: #f9e2af;
+ border-radius: 10px 0px 0px 10px;
+ border-left: 0px;
+ border-right: 0px;
+}
+
+#bluetooth {
+ color: #89b4fa;
+ border-radius: 0px 10px 10px 0px;
+ margin-right: 10px
+}
+
+#pulseaudio {
+ color: #89b4fa;
+ border-radius: 10px 0px 0px 10px;
+ border-left: 0px;
+ border-right: 0px;
+}
+
+#pulseaudio.microphone {
+ color: #cba6f7;
+ border-left: 0px;
+ border-right: 0px;
+ border-radius: 0px 10px 10px 0px;
+ margin-right: 10px;
+}
+
+#battery {
+ color: #a6e3a1;
+ border-radius: 0 10px 10px 0;
+ margin-right: 10px;
+ border-left: 0px;
+}
+
+#custom-weather {
+ border-radius: 0px 10px 10px 0px;
+ border-right: 0px;
+ margin-left: 0px;
+}
+#custom-launcher {
+ border-radius: 0px 10px 10px 0px;
+ border-right: 0px;
+ margin-left: 0px;
+}
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..8133ea2
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,151 @@
+{
+ "layer": "top",
+ "position": "top",
+ "mod": "dock",
+ "height": 49,
+ "exclusive": true,
+ "passthrough": false,
+ "gtk-layer-shell": true,
+ "modules-left": ["custom/launcher","wlr/workspaces"],
+ //"modules-left": ["clock","custom/weather","wlr/workspaces"],
+ "modules-center": ["hyprland/window"],
+ "modules-right": ["cpu","temperature","custom/memory","pulseaudio","pulseaudio#microphone", "clock", "battery","backlight","tray"],
+ "hyprland/window": {
+ "format": "{}"
+ },
+
+// Modules configuration
+
+ "custom/launcher": {
+ "format": " ",
+ "on-click": "~/.config/waybar/scripts",
+ "tooltip": false
+ },
+
+ "wlr/workspaces": {
+ "disable-scroll": false,
+ "all-outputs": true,
+ "on-click": "activate",
+ "persistent_workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": [],
+ "6": [],
+ "7": [],
+ "8": [],
+ "9": [],
+ "10": []
+ }
+ },
+
+ "cpu": {
+ "interval": 1,
+ "format": "󰍛 {usage}% ",
+ "tooltip": false,
+ "on-click": "kitty -e htop"
+ },
+
+// "custom/weather" : {
+// //shows the current weather and forecast
+// "tooltip" : true,
+// "format" : "{}",
+// "interval" : 30,
+// "exec" : "~/.config/waybar/scripts/waybar-wttr.py",
+// "return-type" : "json"
+// },
+
+ "temperature": {
+ "thermal-zone": 1,
+ "critical-threshold": 80,
+ "format": "{icon}{temperatureC}°C",
+ "format-alt": "{temperatureF}°F {icon}",
+ "critical-threshold": 80,
+ "format-critical": "{temperatureC}°C ",
+ "format-icons": ["", "", "󰈸"],
+ "tooltip": false,
+ "on-click": "kitty -e gotop"
+ },
+
+ "custom/memory": {
+ "interval": 5,
+ "exec":"~/.scripts/memory",
+ "format": " {}",
+ "tooltip": false,
+ "on-click": "kitty -e gotop"
+ },
+
+ "clock": {
+ "format": "{: %I:%M %p  %a, %b %e}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
+ },
+
+ "backlight": {
+ "device": "intel_backlight",
+ "format": "{icon} {percent}%",
+ "format-icons": ["", "", ""],
+ "on-scroll-up": "brightnessctl set 1%+",
+ "on-scroll-down": "brightnessctl set 1%-",
+ "min-length": 6
+ },
+
+
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "format-wifi": " {signalStrength}%",
+ "format-ethernet": "{ipaddr}/{cidr} ",
+ "tooltip-format": "{essid} - {ifname} via {gwaddr} ",
+ "format-linked": "{ifname} (No IP) ",
+ "format-disconnected": "Disconnected ⚠",
+ "format-alt": "{ifname}:{essid} {ipaddr}/{cidr}"
+ },
+
+ "pulseaudio": {
+ "format": "{icon} {volume}%",
+ "format-muted": " {format_source}",
+ "tooltip": false,
+ "format-muted": "x",
+ "on-click": "pamixer -t",
+ "on-scroll-up": "pamixer -i 1",
+ "on-scroll-down": "pamixer -d 1",
+ "scroll-step": 5,
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "default": ["", "", ""]
+ }
+ },
+
+ "pulseaudio#microphone": {
+ "format": "{format_source}",
+ "format-source": " {volume}%",
+ //"format-source-muted": " Muted",
+ "format-source-muted": " ",
+ "on-click": "pamixer --default-source -t",
+ "on-scroll-up": "pamixer --default-source -i 5",
+ "on-scroll-down": "pamixer --default-source -d 5",
+ "scroll-step": 5
+ },
+
+ "battery": {
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 20
+ },
+ "format": "{icon} {capacity}%",
+ "format-charging": " {capacity}%",
+ "format-plugged": " {capacity}%",
+ "format-alt": "{time} {icon}",
+ "format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
+ },
+
+
+ "tray": {
+ "icon-size": 18,
+ "spacing": 10
+ }
+
+}