From 814b147d5296f7bfb8c2bb81cee9ffff3d2a4ea8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 23 Nov 2023 12:01:35 +0900 Subject: [PATCH] added network speed module --- config/waybar/configs/Default [Bottom] | 4 +- config/waybar/configs/Default [TOP] | 4 +- config/waybar/modules | 1232 ++++++++++++------------ 3 files changed, 628 insertions(+), 612 deletions(-) diff --git a/config/waybar/configs/Default [Bottom] b/config/waybar/configs/Default [Bottom] index f2eb8d2..8bf8ecd 100644 --- a/config/waybar/configs/Default [Bottom] +++ b/config/waybar/configs/Default [Bottom] @@ -48,8 +48,8 @@ "custom/separator#dot-line", "bluetooth", "custom/separator#dot-line", - //"network", - //"custom/separator#dot-line", + "network#speed", + "custom/separator#dot-line", "battery", "custom/separator#dot-line", "backlight", diff --git a/config/waybar/configs/Default [TOP] b/config/waybar/configs/Default [TOP] index 6b620f6..8d5974d 100644 --- a/config/waybar/configs/Default [TOP] +++ b/config/waybar/configs/Default [TOP] @@ -48,8 +48,8 @@ "custom/separator#dot-line", "bluetooth", "custom/separator#dot-line", - //"network", - //"custom/separator#dot-line", + "network#speed", + "custom/separator#dot-line", "battery", "custom/separator#dot-line", "backlight", diff --git a/config/waybar/modules b/config/waybar/modules index 0b4b819..d49f3b1 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -1,646 +1,662 @@ //* ---- 💫 https://github.com/JaKooLit 💫 ---- *// { -// HYPRLAND WORKSPACES. CHOOSE as desired and place on waybar configs -// CIRCLES Style -"hyprland/workspaces": { - "active-only": false, - "all-outputs": true, - "format": "{icon}", - "show-special": false, - "on-click": "activate", - "on-scroll-up": "hyprctl dispatch workspace e+1", - "on-scroll-down": "hyprctl dispatch workspace e-1", - "persistent_workspaces": { - "1": [], - "2": [], - "3": [], - "4": [], - "5": [], - }, - "format-icons": { - "active": "", - "default": "", - }, -}, -// ROMAN Numerals style -"hyprland/workspaces#roman": { - "active-only":false, - "all-outputs": true, - "format": "{icon}", - "show-special": false, - "on-click": "activate", - "on-scroll-up": "hyprctl dispatch workspace e+1", - "on-scroll-down": "hyprctl dispatch workspace e-1", - "persistent_workspaces":{ + // HYPRLAND WORKSPACES. CHOOSE as desired and place on waybar configs + // CIRCLES Style + "hyprland/workspaces": { + "active-only": false, + "all-outputs": true, + "format": "{icon}", + "show-special": false, + "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "persistent_workspaces": { "1": [], "2": [], "3": [], "4": [], "5": [], + }, + "format-icons": { + "active": "", + "default": "", + }, }, - "format-icons": { - "1": "I", - "2": "II", - "3": "III", - "4": "IV", - "5": "V", - "6": "VI", - "7": "VII", - "8": "VIII", - "9": "IX", - "10": "X", - + // ROMAN Numerals style + "hyprland/workspaces#roman": { + "active-only":false, + "all-outputs": true, + "format": "{icon}", + "show-special": false, + "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "persistent_workspaces":{ + "1": [], + "2": [], + "3": [], + "4": [], + "5": [], + }, + "format-icons": { + "1": "I", + "2": "II", + "3": "III", + "4": "IV", + "5": "V", + "6": "VI", + "7": "VII", + "8": "VIII", + "9": "IX", + "10": "X", + + }, }, -}, -// PACMAN Style -"hyprland/workspaces#pacman": { - "active-only":false, - "all-outputs": true, - "format": "{icon}", - "on-click": "activate", - "on-scroll-up": "hyprctl dispatch workspace e+1", - "on-scroll-down": "hyprctl dispatch workspace e-1", - "show-special": false, - "persistent_workspaces":{ + // PACMAN Style + "hyprland/workspaces#pacman": { + "active-only":false, + "all-outputs": true, + "format": "{icon}", + "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "show-special": false, + "persistent_workspaces":{ + "1": [], + "2": [], + "3": [], + "4": [], + "5": [], + }, + "format": "{icon}", + "format-icons": { + "active": " 󰮯 ", + "default": "󰊠", + "persistent":"󰊠", + }, + }, + + "hyprland/workspaces#kanji": { + "disable-scroll": true, + "all-outputs": true, + "format": "{icon}", + "persistent_workspaces": { "1": [], "2": [], "3": [], "4": [], "5": [], + }, + "format-icons": { + "1": "一", + "2": "二", + "3": "三", + "4": "四", + "5": "五", + "6": "六", + "7": "七", + "8": "八", + "9": "九", + "10": "十", + } }, - "format": "{icon}", - "format-icons": { - "active": " 󰮯 ", - "default": "󰊠", - "persistent":"󰊠", - }, -}, - -"hyprland/workspaces#kanji": { - "disable-scroll": true, - "all-outputs": true, - "format": "{icon}", - "persistent_workspaces": { - "1": [], - "2": [], - "3": [], - "4": [], - "5": [], + + // NUMBERS and ICONS style + "hyprland/workspaces#4": { + "format": "{name}", + "format": " {name} {icon} ", + //"format": " {icon} ", + "show-special": false, + "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "all-outputs": true, + "sort-by-number": true, + "format-icons": { + "1": " ", + "2": " ", + "3": " ", + "4": " ", + "5": " ", + "6": " ", + "7": "", + "8": " ", + "9": "", + "10": "10", + "focused": "", + "default": "", }, - "format-icons": { - "1": "一", - "2": "二", - "3": "三", - "4": "四", - "5": "五", - "6": "六", - "7": "七", - "8": "八", - "9": "九", - "10": "十", - } -}, - -// NUMBERS and ICONS style -"hyprland/workspaces#4": { - "format": "{name}", - "format": " {name} {icon} ", - //"format": " {icon} ", - "show-special": false, - "on-click": "activate", - "on-scroll-up": "hyprctl dispatch workspace e+1", - "on-scroll-down": "hyprctl dispatch workspace e-1", - "all-outputs": true, - "sort-by-number": true, - "format-icons": { - "1": " ", - "2": " ", - "3": " ", - "4": " ", - "5": " ", - "6": " ", - "7": "", - "8": " ", - "9": "", - "10": "10", - "focused": "", - "default": "", - }, -}, - -// GROUP - -"group/motherboard": { - "orientation": "horizontal", - "modules": [ - "cpu", - "memory", - "temperature", - "disk", - ] -}, - -"group/laptop": { - "orientation": "horizontal", - "modules": [ - "backlight", - "battery", - ] -}, - -"group/audio": { - "orientation": "horizontal", - "modules": [ - "pulseaudio", - "pulseaudio#microphone", - ] -}, - -"backlight": { - "interval": 2, - "align": 0, - "rotate": 0, - //"format": "{icon} {percent}%", - //"format-icons": ["󰃞", "󰃟", "󰃠"], - "format": "{icon}", - "format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"], - "tooltip-format": "backlight {percent}%", - "icon-size": 10, - "on-click": "", - "on-click-middle": "", - "on-click-right": "", - "on-update": "", - "on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec", - "smooth-scrolling-threshold": 1, -}, - -"battery": { - "interval": 60, - "align": 0, - "rotate": 0, - //"bat": "BAT1", - //"adapter": "ACAD", - "full-at": 100, - "design-capacity": false, - "states": { - "good": 95, - "warning": 30, - "critical": 15 - }, - "format": "{icon} {capacity}%", - "format-charging": " {capacity}%", - "format-plugged": "󱘖 {capacity}%", - "format-full": "{icon} Full", - "format-alt": "{icon} {time}", - "format-icons": ["", "", "", "", ""], - "format-time": "{H}h {M}min", - "tooltip": true, - "tooltip-format": "{timeTo} {power}w", - "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", - "on-click-right": "~/.config/hypr/scripts/Wlogout.sh", -}, - -"bluetooth": { - "format": "", - "format-disabled": "󰂳", - "format-connected": "󰂱 {num_connections}", - "tooltip-format": " {device_alias}", - "tooltip-format-connected": "{device_enumerate}", - "tooltip-format-enumerate-connected": " {device_alias} 󰂄{device_battery_percentage}%", - "tooltip": true, - "on-click": "blueman-manager", -}, - -"cava": { - //"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", - "framerate": 30, - "autosens": 1, - "sensitivity": 100, - "bars": 14, - "lower_cutoff_freq": 50, - "higher_cutoff_freq": 10000, - "method": "pulse", - "source": "auto", - "stereo": true, - "reverse": false, - "bar_delimiter": 0, - "monstercat": false, - "waves": false, - "noise_reduction": 0.77, - "input_delay": 2, - "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], - "actions": { - "on-click-right": "mode" - } -}, - -"clock": { - "interval": 1, - //"format": " {:%I:%M %p}", - "format": " {:%H:%M:%S}", - "format-alt": " {:%H:%M  %Y, %d %B, %A}", - "tooltip-format": "{calendar}", - "calendar": { - "mode" : "year", - "mode-mon-col" : 3, - "weeks-pos" : "right", - "on-scroll" : 1, - "format": { - "months": "{}", - "days": "{}", - "weeks": "W{}", - "weekdays": "{}", - "today": "{}" - } - } - }, - "actions": { - "on-click-right": "mode", - "on-click-forward": "tz_up", - "on-click-backward": "tz_down", - "on-scroll-up": "shift_up", - "on-scroll-down": "shift_down" -}, - -"cpu": { - "format": "{usage}% 󰍛", - "interval": 1, - "format-alt-click": "click", - "format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛", - "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], - "on-click-right": "gnome-system-monitor", -}, + }, -"disk": { - "interval": 30, - //"format": "󰋊", - "path": "/", - //"format-alt-click": "click", - "format": "{percentage_used}% 󰋊", - //"tooltip": true, - "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", -}, + // GROUP -"hyprland/language": { - "format": "Lang: {}", - "format-en": "US", - "format-tr": "Korea", - "keyboard-name": "at-translated-set-2-keyboard", - "on-click": "hyprctl switchxkblayout $SET_KB next" -}, + "group/motherboard": { + "orientation": "horizontal", + "modules": [ + "cpu", + "memory", + "temperature", + "disk", + ] + }, -"hyprland/submap": { - "format": " {}", // Icon: expand-arrows-alt - "tooltip": false, -}, + "group/laptop": { + "orientation": "horizontal", + "modules": [ + "backlight", + "battery", + ] + }, -"hyprland/window": { - "format": "{}", - "max-length": 40, - "separate-outputs": true, - "offscreen-css" : true, - "offscreen-css-text": "(inactive)", - "rewrite": { - "(.*) — Mozilla Firefox": " $1", - "(.*) - fish": "> [$1]", - "(.*) - zsh": "> [$1]", - "(.*) - kitty": "> [$1]", - }, -}, - -"idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": " ", - "deactivated": " ", - } -}, + "group/audio": { + "orientation": "horizontal", + "modules": [ + "pulseaudio", + "pulseaudio#microphone", + ] + }, -"keyboard-state": { - //"numlock": true, - "capslock": true, - "format": { - "numlock": "N {icon}", - "capslock":"󰪛 {icon}", - }, - "format-icons": { - "locked": "", - "unlocked": "" - }, -}, + "backlight": { + "interval": 2, + "align": 0, + "rotate": 0, + //"format": "{icon} {percent}%", + //"format-icons": ["󰃞", "󰃟", "󰃠"], + "format": "{icon}", + "format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"], + "tooltip-format": "backlight {percent}%", + "icon-size": 10, + "on-click": "", + "on-click-middle": "", + "on-click-right": "", + "on-update": "", + "on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec", + "smooth-scrolling-threshold": 1, + }, + + "battery": { + "interval": 60, + "align": 0, + "rotate": 0, + //"bat": "BAT1", + //"adapter": "ACAD", + "full-at": 100, + "design-capacity": false, + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": "󱘖 {capacity}%", + "format-full": "{icon} Full", + "format-alt": "{icon} {time}", + "format-icons": ["", "", "", "", ""], + "format-time": "{H}h {M}min", + "tooltip": true, + "tooltip-format": "{timeTo} {power}w", + "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", + "on-click-right": "~/.config/hypr/scripts/Wlogout.sh", + }, + + "bluetooth": { + "format": "", + "format-disabled": "󰂳", + "format-connected": "󰂱 {num_connections}", + "tooltip-format": " {device_alias}", + "tooltip-format-connected": "{device_enumerate}", + "tooltip-format-enumerate-connected": " {device_alias} 󰂄{device_battery_percentage}%", + "tooltip": true, + "on-click": "blueman-manager", + }, -"memory": { - "interval": 10, - "format": "{used:0.1f}G 󰾆", - "format-alt": "{percentage}% 󰾆", - "format-alt-click": "click", - "tooltip": true, - "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "kitty --title btop sh -c 'btop'" -}, + "cava": { + //"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", + "framerate": 30, + "autosens": 1, + "sensitivity": 100, + "bars": 14, + "lower_cutoff_freq": 50, + "higher_cutoff_freq": 10000, + "method": "pulse", + "source": "auto", + "stereo": true, + "reverse": false, + "bar_delimiter": 0, + "monstercat": false, + "waves": false, + "noise_reduction": 0.77, + "input_delay": 2, + "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], + "actions": { + "on-click-right": "mode" + } + }, + + "clock": { + "interval": 1, + //"format": " {:%I:%M %p}", + "format": " {:%H:%M:%S}", + "format-alt": " {:%H:%M  %Y, %d %B, %A}", + "tooltip-format": "{calendar}", + "calendar": { + "mode" : "year", + "mode-mon-col" : 3, + "weeks-pos" : "right", + "on-scroll" : 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + } + } + }, + "actions": { + "on-click-right": "mode", + "on-click-forward": "tz_up", + "on-click-backward": "tz_down", + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down" + }, + + "cpu": { + "format": "{usage}% 󰍛", + "interval": 1, + "format-alt-click": "click", + "format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛", + "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], + "on-click-right": "gnome-system-monitor", + }, + + "disk": { + "interval": 30, + //"format": "󰋊", + "path": "/", + //"format-alt-click": "click", + "format": "{percentage_used}% 󰋊", + //"tooltip": true, + "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", + }, -"network": { - "format": "{ifname}", - "format-wifi": "{icon}", - "format-ethernet": "󰌘", - "format-disconnected": "󰌙", - "tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}", - "format-linked": "󰈁 {ifname} (No IP)", - "tooltip-format-wifi": "{essid} {icon} {signalStrength}%", - "tooltip-format-ethernet": "{ifname} 󰌘", - "tooltip-format-disconnected": "󰌙 Disconnected", - "max-length": 50, - "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"] -}, + "hyprland/language": { + "format": "Lang: {}", + "format-en": "US", + "format-tr": "Korea", + "keyboard-name": "at-translated-set-2-keyboard", + "on-click": "hyprctl switchxkblayout $SET_KB next" + }, -"pulseaudio": { - "format": "{icon}", - "format-bluetooth": "{icon} 󰂰 {volume}%", - "format-muted": "󰖁", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", "󰕾", ""], - "ignored-sinks": ["Easy Effects Sink"], - }, - "scroll-step": 5.0, - "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", - "on-click-right": "pavucontrol -t 3", - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", - "smooth-scrolling-threshold": 1, -}, + "hyprland/submap": { + "format": " {}", // Icon: expand-arrows-alt + "tooltip": false, + }, -"pulseaudio#microphone": { - "format": "{format_source}", - "format-source": " {volume}%", - "format-source-muted": "", - "on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic", - "on-click-right": "pavucontrol -t 4", - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec", - "scroll-step": 5, -}, + "hyprland/window": { + "format": "{}", + "max-length": 40, + "separate-outputs": true, + "offscreen-css" : true, + "offscreen-css-text": "(inactive)", + "rewrite": { + "(.*) — Mozilla Firefox": " $1", + "(.*) - fish": "> [$1]", + "(.*) - zsh": "> [$1]", + "(.*) - kitty": "> [$1]", + }, + }, -"temperature": { - "interval": 10, - "tooltip": false, - "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"], - //"thermal-zone": 0, - "critical-threshold": 82, - "format-critical": "{temperatureC}°C {icon}", - "format": "{temperatureC}°C {icon}", - "format-icons": ["󰈸"], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" -}, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": " ", + "deactivated": " ", + } + }, -"tray": { - "icon-size": 17, - "spacing": 8, -}, + "keyboard-state": { + //"numlock": true, + "capslock": true, + "format": { + "numlock": "N {icon}", + "capslock":"󰪛 {icon}", + }, + "format-icons": { + "locked": "", + "unlocked": "" + }, + }, -"wireplumber": { - "format": "{icon} {volume} %", - "format-muted": " Mute", - "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", - "on-click-right": "pavucontrol -t 3", - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", - "format-icons": ["", "", "󰕾", ""], -}, + "memory": { + "interval": 10, + "format": "{used:0.1f}G 󰾆", + "format-alt": "{percentage}% 󰾆", + "format-alt-click": "click", + "tooltip": true, + "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", + "on-click-right": "kitty --title btop sh -c 'btop'" + }, + + "network": { + "format": "{ifname}", + "format-wifi": "{icon}", + "format-ethernet": "󰌘", + "format-disconnected": "󰌙", + "tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}", + "format-linked": "󰈁 {ifname} (No IP)", + "tooltip-format-wifi": "{essid} {icon} {signalStrength}%", + "tooltip-format-ethernet": "{ifname} 󰌘", + "tooltip-format-disconnected": "󰌙 Disconnected", + "max-length": 50, + "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"] + }, + + "network#speed": { + "interval": 1, + "format": "{ifname}", + "format-wifi": "{icon}  {bandwidthUpBytes}  {bandwidthDownBytes}", + "format-ethernet": "󰌘  {bandwidthUpBytes}  {bandwidthDownBytes}", + "format-disconnected": "󰌙", + "tooltip-format": "{ipaddr}", + "format-linked": "󰈁 {ifname} (No IP)", + "tooltip-format-wifi": "{essid} {icon} {signalStrength}%", + "tooltip-format-ethernet": "{ifname} 󰌘", + "tooltip-format-disconnected": "󰌙 Disconnected", + "max-length": 50, + "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"] + }, + + "pulseaudio": { + "format": "{icon}", + "format-bluetooth": "{icon} 󰂰 {volume}%", + "format-muted": "󰖁", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", "󰕾", ""], + "ignored-sinks": ["Easy Effects Sink"], + }, + "scroll-step": 5.0, + "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", + "on-click-right": "pavucontrol -t 3", + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", + "smooth-scrolling-threshold": 1, + }, + + "pulseaudio#microphone": { + "format": "{format_source}", + "format-source": " {volume}%", + "format-source-muted": "", + "on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic", + "on-click-right": "pavucontrol -t 4", + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec", + "scroll-step": 5, + }, -"wlr/taskbar": { - "format": "{icon} {name} ", - "icon-size": 16, - "all-outputs": false, - "tooltip-format": "{title}", - "on-click": "activate", - "on-click-middle": "close", - "ignore-list": [ - "wofi", - "rofi", - ] -}, + "temperature": { + "interval": 10, + "tooltip": false, + "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"], + //"thermal-zone": 0, + "critical-threshold": 82, + "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["󰈸"], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" + }, + + "tray": { + "icon-size": 17, + "spacing": 8, + }, + + "wireplumber": { + "format": "{icon} {volume} %", + "format-muted": " Mute", + "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", + "on-click-right": "pavucontrol -t 3", + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", + "format-icons": ["", "", "󰕾", ""], + }, + + "wlr/taskbar": { + "format": "{icon} {name} ", + "icon-size": 16, + "all-outputs": false, + "tooltip-format": "{title}", + "on-click": "activate", + "on-click-middle": "close", + "ignore-list": [ + "wofi", + "rofi", + ] + }, + + "custom/cycle_wall":{ + "format":" ", + "on-click": "~/.config/hypr/scripts/WallpaperSelect.sh", + "on-click-right": "~/.config/hypr/scripts/Wallpaper.sh swww", + "on-click-middle": "~/.config/hypr/scripts/WaybarStyles.sh", + "tooltip": true, + "tooltip-format": "Change wallpaper or style" + }, + + "custom/keybinds": { + "format":"󰺁 HINT!", + "tooltip": false, + "on-click": "~/.config/hypr/scripts/KeyHints.sh", + }, -"custom/cycle_wall":{ - "format":" ", - "on-click": "~/.config/hypr/scripts/WallpaperSelect.sh", - "on-click-right": "~/.config/hypr/scripts/Wallpaper.sh swww", - "on-click-middle": "~/.config/hypr/scripts/WaybarStyles.sh", - "tooltip": true, - "tooltip-format": "Change wallpaper or style" -}, + "custom/light_dark": { + "format": "", + "on-click": "~/.config/hypr/scripts/DarkLight.sh", + "on-click-right": "~/.config/hypr/scripts/WaybarStyles.sh", + "on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swww", + "tooltip": false, + }, + + "custom/lock": { + "format": "", + "on-click": "~/.config/hypr/scripts/LockScreen.sh", + "tooltip": false, + }, -"custom/keybinds": { - "format":"󰺁 HINT!", - "tooltip": false, - "on-click": "~/.config/hypr/scripts/KeyHints.sh", -}, + "custom/menu": { + "format": "", + "tooltip": false, + "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser", + "on-click-middle": "~/.config/hypr/scripts/WallpaperSelect.sh", + "on-click-right": "~/.config/hypr/scripts/WaybarLayout.sh", + }, -"custom/light_dark": { - "format": "", - "on-click": "~/.config/hypr/scripts/DarkLight.sh", - "on-click-right": "~/.config/hypr/scripts/WaybarStyles.sh", - "on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swww", - "tooltip": false, -}, - -"custom/lock": { - "format": "", - "on-click": "~/.config/hypr/scripts/LockScreen.sh", - "tooltip": false, -}, + "custom/playerctl": { + "format": "{}", + "return-type": "json", + "max-length": 35, + "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} ~ {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", + "on-click-middle": "playerctl play-pause", + "on-click": "playerctl previous", + "on-click-right": "playerctl next", + "scroll-step": 5.0, + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", + "smooth-scrolling-threshold": 1, + }, + + "custom/power": { + "format": "⏻ ", + "tooltip": false, + "on-click": "~/.config/hypr/scripts/Wlogout.sh", + "on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh", + }, -"custom/menu": { - "format": "", - "tooltip": false, - "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser", - "on-click-middle": "~/.config/hypr/scripts/WallpaperSelect.sh", - "on-click-right": "~/.config/hypr/scripts/WaybarLayout.sh", -}, - -"custom/playerctl": { - "format": "{}", - "return-type": "json", - "max-length": 35, - "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} ~ {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", - "on-click-middle": "playerctl play-pause", - "on-click": "playerctl previous", - "on-click-right": "playerctl next", - "scroll-step": 5.0, - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", - "smooth-scrolling-threshold": 1, -}, + // NOTE:! This is only for Arch and Arch Based Distros + "custom/updater":{ + "format": " {}", + "exec": "checkupdates | wc -l", + "exec-if": "[[ $(checkupdates | wc -l) ]]", + "interval": 15, + "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", + }, -"custom/power": { - "format": "⏻ ", - "tooltip": false, - "on-click": "~/.config/hypr/scripts/Wlogout.sh", - "on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh", -}, - -// NOTE:! This is only for Arch and Arch Based Distros -"custom/updater":{ - "format": " {}", - "exec": "checkupdates | wc -l", - "exec-if": "[[ $(checkupdates | wc -l) ]]", - "interval": 15, - "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", -}, + "custom/weather": { + "format": "{}", + "format-alt": "{alt}: {}", + "format-alt-click": "click", + "interval": 3600, + "return-type": "json", + "exec": "~/.config/hypr/scripts/Weather.sh", + //"exec": "~/.config/hypr/scripts/Weather.py", + "exec-if": "ping wttr.in -c1", + "tooltip" : true, + }, -"custom/weather": { - "format": "{}", - "format-alt": "{alt}: {}", - "format-alt-click": "click", - "interval": 3600, - "return-type": "json", - "exec": "~/.config/hypr/scripts/Weather.sh", - //"exec": "~/.config/hypr/scripts/Weather.py", - "exec-if": "ping wttr.in -c1", - "tooltip" : true, -}, - - -// Separators -"custom/separator#dot": { - "format": "", - "interval": "once", - "tooltip": false -}, - -"custom/separator#dot-line": { - "format": "", - "interval": "once", - "tooltip": false -}, - -"custom/separator#line": { - "format": "|", - "interval": "once", - "tooltip": false -}, - -"custom/separator#blank": { - "format": "", - "interval": "once", - "tooltip": false -}, - -"custom/separator#blank_2": { - "format": " ", - "interval": "once", - "tooltip": false -}, - -// Modules below are for vertical layout - -"backlight#vertical": { - "interval": 2, - "align": 0.35, - "rotate": 1, + + // Separators + "custom/separator#dot": { + "format": "", + "interval": "once", + "tooltip": false + }, + + "custom/separator#dot-line": { + "format": "", + "interval": "once", + "tooltip": false + }, + + "custom/separator#line": { + "format": "|", + "interval": "once", + "tooltip": false + }, + + "custom/separator#blank": { + "format": "", + "interval": "once", + "tooltip": false + }, + + "custom/separator#blank_2": { + "format": " ", + "interval": "once", + "tooltip": false + }, + + // Modules below are for vertical layout + + "backlight#vertical": { + "interval": 2, + "align": 0.35, + "rotate": 1, + "format": "{icon}", + "format-icons": ["󰃞", "󰃟", "󰃠"], + "on-click": "", + "on-click-middle": "", + "on-click-right": "", + "on-update": "", + "on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec", + "smooth-scrolling-threshold": 1, + //"tooltip-format": "{percent}%", + }, + + "clock#vertical": { + "format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}", + "interval": 1, + //"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}", + "tooltip": true, + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3, + "format": { + "today": "{}", + } + } + }, + "cpu#vertical": { + "format": "󰍛\n{usage}%", + "interval": 1, + "on-click-right": "gnome-system-monitor", + }, + + "memory#vertical": { + "interval": 10, + "format": "󰾆\n{percentage}%", + "format-alt": "󰾆\n{used:0.1f}G", + "format-alt-click": "click", + "tooltip": true, + "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", + "on-click-right": "kitty --title btop sh -c 'btop'", + }, + + "pulseaudio#vertical": { "format": "{icon}", - "format-icons": ["󰃞", "󰃟", "󰃠"], - "on-click": "", - "on-click-middle": "", - "on-click-right": "", - "on-update": "", - "on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec", + "format-bluetooth": "󰂰", + "format-muted": "󰖁", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", "󰕾", ""], + "ignored-sinks": ["Easy Effects Sink"], + }, + "scroll-step": 5.0, + "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", + "on-click-right": "pavucontrol -t 3", + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", "smooth-scrolling-threshold": 1, - //"tooltip-format": "{percent}%", -}, - -"clock#vertical": { - "format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}", - "interval": 1, - //"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}", - "tooltip": true, - "tooltip-format": "{calendar}", - "calendar": { - "mode": "year", - "mode-mon-col": 3, - "format": { - "today": "{}", - } - } -}, -"cpu#vertical": { - "format": "󰍛\n{usage}%", - "interval": 1, - "on-click-right": "gnome-system-monitor", -}, - -"memory#vertical": { - "interval": 10, - "format": "󰾆\n{percentage}%", - "format-alt": "󰾆\n{used:0.1f}G", - "format-alt-click": "click", - "tooltip": true, - "tooltip-format": "{used:0.1f}GB/{total:0.1f}G", - "on-click-right": "kitty --title btop sh -c 'btop'", -}, - -"pulseaudio#vertical": { - "format": "{icon}", - "format-bluetooth": "󰂰", - "format-muted": "󰖁", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", "󰕾", ""], - "ignored-sinks": ["Easy Effects Sink"], - }, - "scroll-step": 5.0, - "on-click": "~/.config/hypr/scripts/Volume.sh --toggle", - "on-click-right": "pavucontrol -t 3", - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", - "smooth-scrolling-threshold": 1, -}, - -"pulseaudio#microphone_vertical": { - "format": "{format_source}", - "format-source": "󰍬", - "format-source-muted": "󰍭", - "on-click-right": "pavucontrol", - "on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic", - "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc", - "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec", - "max-volume": 100, - "tooltip": true, - "tooltip-format": "{icon} {desc} {volume}%", -}, - -"temperature#vertical": { - "interval": 10, - "tooltip": true, - "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"], - //"thermal-zone": 0, - "critical-threshold": 80, - "format-critical": "{icon}\n{temperatureC}°C", - "format": " {icon}", - "format-icons": ["󰈸"], - "on-click-right": "kitty --title nvtop sh -c 'nvtop'" -}, - -"custom/power_vertical": { - "format": "⏻", - "tooltip": false, - "on-click": "~/.config/hypr/scripts/Wlogout.sh", - "on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh", -}, - - -} - + }, + + "pulseaudio#microphone_vertical": { + "format": "{format_source}", + "format-source": "󰍬", + "format-source-muted": "󰍭", + "on-click-right": "pavucontrol", + "on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic", + "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc", + "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec", + "max-volume": 100, + "tooltip": true, + "tooltip-format": "{icon} {desc} {volume}%", + }, + + "temperature#vertical": { + "interval": 10, + "tooltip": true, + "hwmon-path": ["/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp"], + //"thermal-zone": 0, + "critical-threshold": 80, + "format-critical": "{icon}\n{temperatureC}°C", + "format": " {icon}", + "format-icons": ["󰈸"], + "on-click-right": "kitty --title nvtop sh -c 'nvtop'" + }, + + "custom/power_vertical": { + "format": "⏻", + "tooltip": false, + "on-click": "~/.config/hypr/scripts/Wlogout.sh", + "on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh", + }, + + + } + + \ No newline at end of file