Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "layer": "top",
- "position": "top",
- "mod": "dock",
- "exclusive": true,
- "passthrough": false,
- "gtk-layer-shell": true,
- "height": 50,
- "modules-left": ["custom/launch_wofi","hyprland/workspaces","cpu","memory","disk","hyprland/window"],
- "modules-center": ["custom/lock_screen","custom/updates","clock","custom/power_btn"],
- "modules-right": ["temperature","custom/power_profile","battery","backlight","pulseaudio","pulseaudio#microphone","tray"],
- "hyprland/window": {
- "format": "{}",
- "empty-format": ""
- },
- "custom/launch_wofi": {
- "format": "",
- "on-click": "pkill wofi; wofi -n",
- "tooltip": false
- },
- "custom/lock_screen": {
- "format": "",
- "on-click": "sh -c '(sleep 0.5s; swaylock)' & disown",
- "tooltip": false
- },
- "custom/light_dark": {
- "format": "",
- "on-click": "~/.config/waybar/scripts/baraction light",
- "tooltip": false
- },
- "custom/power_btn": {
- "format": "",
- "on-click": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown",
- "tooltip": false
- },
- "cpu": {
- "interval": 10,
- "format": " {usage}%",
- "max-length": 10,
- "on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
- },
- "disk": {
- "interval": 30,
- "format": " {percentage_used}%",
- "path": "/",
- "tooltip": true,
- "tooltip-format": "HDD - {used} used out of {total} on {path} ({percentage_used}%)",
- "on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
- },
- "memory": {
- "interval": 30,
- "format": " {}%",
- "max-length": 10,
- "tooltip": true,
- "tooltip-format": "Memory - {used:0.1f}GB used",
- "on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
- },
- "custom/updates": {
- "format": "{}",
- "exec": "~/.config/waybar/scripts/update-sys",
- "on-click": "~/.config/waybar/scripts/update-sys update",
- "interval": 300,
- "tooltip": true
- },
- "hyprland/workspaces": {
- "disable-scroll": true,
- "all-outputs": false,
- "on-click": "activate",
- "format": " <b>{icon}</b> {windows} ",
- "window-rewrite-default": "",
- "window-rewrite": {
- "firefox": "",
- "thunderbird": "",
- "kitty": "",
- "code": "",
- "caprine": "",
- "discord": "",
- "thunar": "",
- "nm-connection-editor": "",
- "blueman-manager": "",
- "pavucontrol": "",
- "onlyoffice": "",
- "chromium": "",
- "WINWORD.EXE": "",
- "EXCEL.EXE": "",
- "webstorm": "",
- "pycharm": "",
- "rider": "",
- "vlc": "",
- "gthumb": "",
- "kdeconnect": ""
- }
- },
- "custom/power_profile": {
- //shows the current power profile and switches to next on click
- "exec": "asusctl profile -p | sed s:'Active profile is'::",
- "interval": 30,
- "format": "{}",
- "on-click": "asusctl profile -n; pkill -SIGRTMIN+8 waybar",
- "signal": 8
- },
- "custom/weather": {
- //shows the current weather and forecast
- "tooltip" : true,
- "format" : "{}",
- "interval" : 30,
- "exec" : "~/.config/waybar/scripts/waybar-wttr.py",
- "return-type" : "json"
- },
- "tray": {
- "icon-size": 18,
- "spacing": 10
- },
- "clock": {
- "format": "{:%H:%M}",
- "tooltip": false,
- "tooltip-format": "{: %A, %B %e %Y}"
- },
- "backlight": {
- "device": "intel_backlight",
- "format": "{icon} {percent}%",
- "format-icons": ["", "", ""],
- "on-scroll-up": "brightnessctl set 1%+",
- "on-scroll-down": "brightnessctl set 1%-",
- "min-length": 6
- },
- "battery": {
- "states": {
- "good": 95,
- "warning": 30,
- "critical": 20
- },
- "format": "{icon} {capacity}%",
- "format-charging": " {capacity}%",
- "format-plugged": " {capacity}%",
- "format-alt": "{time} {icon}",
- "format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
- },
- "pulseaudio": {
- "format": "{icon} {volume}%",
- "format-muted": "",
- "on-click": "pamixer -t",
- "on-click-right": "pavucontrol",
- "on-scroll-up": "pamixer -i 5",
- "on-scroll-down": "pamixer -d 5",
- "scroll-step": 5,
- "format-icons": {
- "headphone": "",
- "hands-free": "",
- "headset": "",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", ""]
- }
- },
- "pulseaudio#microphone": {
- "format": "{format_source}",
- "format-source": " {volume}%",
- "format-source-muted": "",
- "on-click": "pamixer --default-source -t",
- "on-click-right": "pavucontrol",
- "on-scroll-up": "pamixer --default-source -i 5",
- "on-scroll-down": "pamixer --default-source -d 5",
- "scroll-step": 5
- },
- "temperature": {
- "thermal-zone": 8,
- "format": " {temperatureC}°C",
- "critical-threshold": 100,
- "on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
- }
- }
- * {
- border: none;
- border-radius: 0;
- font-family: "JetBrainsMono Nerd Font";
- font-weight: bold;
- font-size: 16px;
- min-height: 0;
- }
- window#waybar {
- background: rgba(21, 18, 27, 0);
- color: #cdd6f4;
- }
- /*
- #window:empty,
- #window > label:empty,
- #window > span:empty {
- display: none;
- margin: 0;
- padding: 0;
- }
- */
- tooltip {
- background: #1e1e2e;
- opacity: 0.8;
- border-radius: 10px;
- border-width: 2px;
- border-style: solid;
- border-color: #11111b;
- }
- tooltip label{
- color: #cdd6f4;
- }
- #workspaces button {
- padding: 5px;
- color: #757a8f;
- 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-launch_wofi,
- #custom-lock_screen,
- #custom-light_dark,
- #custom-power_btn,
- #custom-power_profile,
- #custom-weather,
- #window,
- #cpu,
- #disk,
- #custom-updates,
- #memory,
- #clock,
- #battery,
- #pulseaudio,
- #network,
- #temperature,
- #workspaces,
- #tray,
- #backlight {
- background: #1e1e2e;
- opacity: 0.8;
- padding: 0px 10px;
- margin: 3px 0px;
- margin-top: 10px;
- border: 0px;
- }
- #tray, #custom-launch_wofi {
- margin-right: calc(1rem - 3px);
- border-radius: 10px;
- }
- #custom-launch_wofi {
- padding-right: 1rem;
- }
- #custom-lock_screen, #temperature, #backlight, #cpu {
- border-radius: 10px 0px 0px 10px;
- }
- #custom-light_dark, #custom-power_btn, #workspaces, #pulseaudio.microphone, #battery, #disk {
- border-radius: 0px 10px 10px 0px;
- margin-right: 10px;
- }
- #temperature.critical {
- color: #e92d4d;
- }
- #workspaces {
- border-radius: 10px;
- padding-right: 0px;
- padding-left: 5px;
- }
- #custom-power_profile {
- color: #a6e3a1;
- border-left: 0px;
- border-right: 0px;
- }
- #window {
- border-radius: 10px;
- margin-left: 20px;
- margin-right: 20px;
- }
- #custom-launch_wofi {
- color: #89b4fa;
- margin-left: 10px;
- border-right: 0px;
- }
- #pulseaudio {
- color: #89b4fa;
- border-left: 0px;
- border-right: 0px;
- }
- #pulseaudio.microphone {
- color: #cba6f7;
- border-left: 0px;
- border-right: 0px;
- padding-right: 1.5rem;
- }
- #battery {
- color: #a6e3a1;
- border-left: 0px;
- }
Add Comment
Please, Sign In to add comment