♻️ refactor(waybar): use a cava local script instead of integrated module and move the configuration modules for each monitor into their own config file
This commit is contained in:
parent
fcc665173c
commit
63dd089398
10 changed files with 415 additions and 354 deletions
|
@ -28,6 +28,7 @@
|
|||
- hypridle
|
||||
- wev
|
||||
- swaync
|
||||
- waybar
|
||||
- wl-clipboard
|
||||
- xdg-desktop-portal-hyprland
|
||||
- kitty
|
||||
|
@ -119,7 +120,6 @@
|
|||
- floorp-bin
|
||||
|
||||
# WM
|
||||
- waybar-cava
|
||||
- wleave-git
|
||||
- swayosd-git
|
||||
- swww
|
||||
|
|
|
@ -191,6 +191,7 @@ vivid 0.9.0-1
|
|||
vkd3d 1.11-1
|
||||
vulkan-radeon 1:24.0.7-3
|
||||
w3m 0.5.3.git20230713_1-1
|
||||
waybar 0.10.3-1
|
||||
wev 1.0.0-13
|
||||
wget 1.24.5-2
|
||||
which 2.21-6
|
||||
|
|
|
@ -61,7 +61,6 @@ vesktop-bin 1.5.2-2
|
|||
vkbasalt 0.3.2.10-1
|
||||
vscodium-bin 1.89.1.24130-1
|
||||
vscodium-bin-marketplace 1.76.0-1
|
||||
waybar-cava 0.10.3-1
|
||||
wl-clip-persist-git 0.4.0.r0.g5b1ba6f-1
|
||||
wleave-git 0.3.0.r1.ga3d2fbb-1
|
||||
xdg-ninja 0.2.0.2-1
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[
|
||||
{
|
||||
"include": "~/.config/waybar/modules/top-bar.jsonc",
|
||||
"height": 50,
|
||||
"layer": "top",
|
||||
"output": "DP-1",
|
||||
|
@ -14,7 +15,7 @@
|
|||
"modules-left": [
|
||||
"custom/arch",
|
||||
"hyprland/workspaces",
|
||||
"cava",
|
||||
"custom/cava",
|
||||
"custom/wf-recorder",
|
||||
],
|
||||
"modules-center": ["custom/music"],
|
||||
|
@ -26,185 +27,9 @@
|
|||
"pulseaudio",
|
||||
"custom/notifications",
|
||||
],
|
||||
"custom/wf-recorder": {
|
||||
"format": "{}",
|
||||
"interval": "once",
|
||||
"exec": "echo ''",
|
||||
"tooltip": "false",
|
||||
"exec-if": "pgrep 'wf-recorder'",
|
||||
"on-click": "exec $HOME/.config/hypr/scripts/rofi/recording",
|
||||
"signal": 8,
|
||||
},
|
||||
"custom/updates": {
|
||||
"format": "{} {icon}",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"has-updates": "",
|
||||
"updated": "",
|
||||
},
|
||||
"exec-if": "which waybar-module-pacman-updates",
|
||||
"exec": "waybar-module-pacman-updates",
|
||||
"on-click": "pypr toggle topgrade-system",
|
||||
"on-click-right": "pypr toggle topgrade-all",
|
||||
},
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "wttrbar --location Alicante",
|
||||
"restart-interval": 300,
|
||||
"tooltip": true,
|
||||
"format": "{}°",
|
||||
"return-type": "json",
|
||||
"on-click": "kitty --hold --class center-float wttr Alicante",
|
||||
"on-click-right": "kitty --hold --class center-float wttr -v2 Alicante",
|
||||
"on-click-middle": "xdg-open https://wttr.in/alicante",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "🎜",
|
||||
"6": "",
|
||||
"7": "",
|
||||
"8": "",
|
||||
"9": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "{}",
|
||||
"format-en": " US",
|
||||
"format-es": " ES",
|
||||
"on-click": "hyprctl switchxkblayout evision-usb-device next",
|
||||
},
|
||||
"clock": {
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode": "month",
|
||||
"mode-mon-col": 3,
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"on-click-right": "mode",
|
||||
"format": {
|
||||
"months": "<span color='#eed49f'><b>{}</b></span>",
|
||||
"days": "<span color='#cad3f5'><b>{}</b></span>",
|
||||
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
|
||||
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"interval": 1,
|
||||
"format": "{:%H:%M:%OS} ",
|
||||
"format-alt": "{:%A, %B %d, %Y} ",
|
||||
"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",
|
||||
},
|
||||
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth-muted": " {volume}% {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": " ",
|
||||
"format-source-muted": " ",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [" ", " ", " "],
|
||||
},
|
||||
"tooltip-format": "{desc}, {volume}%",
|
||||
"on-click": "swayosd-client --output-volume mute-toggle",
|
||||
"on-click-right": "swayosd-client --input-volume mute-toggle",
|
||||
"on-click-middle": "pypr toggle volume",
|
||||
"on-scroll-up": "swayosd-client --output-volume +1",
|
||||
"on-scroll-down": "swayosd-client --output-volume -1",
|
||||
},
|
||||
"cava": {
|
||||
"autosens": 1,
|
||||
"bar_delimiter": 0,
|
||||
"bars": 18,
|
||||
"format-icons": [
|
||||
"<span foreground='#cba6f7'>▁</span>",
|
||||
"<span foreground='#cba6f7'>▂</span>",
|
||||
"<span foreground='#cba6f7'>▃</span>",
|
||||
"<span foreground='#cba6f7'>▄</span>",
|
||||
"<span foreground='#89b4fa'>▅</span>",
|
||||
"<span foreground='#89b4fa'>▆</span>",
|
||||
"<span foreground='#89b4fa'>▇</span>",
|
||||
"<span foreground='#89b4fa'>█</span>",
|
||||
],
|
||||
"framerate": 75,
|
||||
"higher_cutoff_freq": 10000,
|
||||
"input_delay": 5,
|
||||
"lower_cutoff_freq": 50,
|
||||
"method": "pipewire",
|
||||
"monstercat": false,
|
||||
"reverse": false,
|
||||
"source": "auto",
|
||||
"stereo": true,
|
||||
"waves": false,
|
||||
"on-click": "pypr toggle cava",
|
||||
"on-click-right": "qpwgraph",
|
||||
"on-click-middle": "easyeffects",
|
||||
},
|
||||
"custom/music": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 100,
|
||||
"format-icons": {
|
||||
"spotify": " ",
|
||||
"default": " ",
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null",
|
||||
"on-click": "playerctl --player=spotify play-pause",
|
||||
"on-scroll-up": "playerctl --player=spotify next",
|
||||
"on-scroll-down": "playerctl --player=spotify previous",
|
||||
},
|
||||
},
|
||||
{
|
||||
"include": "~/.config/waybar/modules/bottom-bar.jsonc",
|
||||
"height": 50,
|
||||
"position": "bottom",
|
||||
"layer": "top",
|
||||
|
@ -226,105 +51,9 @@
|
|||
"temperature#gpu",
|
||||
"custom/notifications",
|
||||
],
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
"max-length": 80,
|
||||
"rewrite": {
|
||||
"(.*) — LibreWolf": " $1",
|
||||
"(.*) - Discord": " $1",
|
||||
"(.*) - fish": "> [$1]",
|
||||
},
|
||||
"separate-outputs": false,
|
||||
},
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"active-only": false,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"10": "",
|
||||
"11": "",
|
||||
"12": "",
|
||||
"13": "",
|
||||
"14": "🎜",
|
||||
"15": "",
|
||||
"16": "",
|
||||
"17": "",
|
||||
"18": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"cpu": {
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"format": "CPU: {usage}%",
|
||||
"tooltip": false,
|
||||
"interval": 2,
|
||||
},
|
||||
"custom/gpu-usage": {
|
||||
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"format": "GPU: {}%",
|
||||
"return-type": "",
|
||||
"interval": 2,
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% ",
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
"temperature#cpu": {
|
||||
"critical-threshold": 90,
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
"temperature#gpu": {
|
||||
"critical-threshold": 80,
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
"include": "~/.config/waybar/modules/top-bar-2.jsonc",
|
||||
"height": 50,
|
||||
"layer": "top",
|
||||
"output": "HDMI-A-1",
|
||||
|
@ -339,81 +68,5 @@
|
|||
"modules-left": ["custom/arch", "hyprland/workspaces"],
|
||||
"modules-center": ["clock#cl2"],
|
||||
"modules-right": ["tray", "custom/notifications"],
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"19": "",
|
||||
"20": "",
|
||||
"21": "✉",
|
||||
"22": "🖵",
|
||||
"23": "",
|
||||
"24": "",
|
||||
"25": "",
|
||||
"26": "",
|
||||
"27": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
},
|
||||
"clock#cl2": {
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode": "year",
|
||||
"mode-mon-col": 3,
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"on-click-right": "mode",
|
||||
"format": {
|
||||
"months": "<span color='#eed49f'><b>{}</b></span>",
|
||||
"days": "<span color='#cad3f5'><b>{}</b></span>",
|
||||
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
|
||||
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"format": "{:%H:%M - %A, %B %d, %Y }",
|
||||
"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",
|
||||
},
|
||||
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
|
||||
},
|
||||
},
|
||||
]
|
||||
|
|
99
.config/waybar/modules/bottom-bar.jsonc
Normal file
99
.config/waybar/modules/bottom-bar.jsonc
Normal file
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
"max-length": 80,
|
||||
"rewrite": {
|
||||
"(.*) — LibreWolf": " $1",
|
||||
"(.*) - Discord": " $1",
|
||||
"(.*) - fish": "> [$1]",
|
||||
},
|
||||
"separate-outputs": false,
|
||||
},
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"active-only": false,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"10": "",
|
||||
"11": "",
|
||||
"12": "",
|
||||
"13": "",
|
||||
"14": "🎜",
|
||||
"15": "",
|
||||
"16": "",
|
||||
"17": "",
|
||||
"18": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"cpu": {
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"format": "CPU: {usage}%",
|
||||
"tooltip": false,
|
||||
"interval": 2,
|
||||
},
|
||||
"custom/gpu-usage": {
|
||||
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"format": "GPU: {}%",
|
||||
"return-type": "",
|
||||
"interval": 2,
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% ",
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
"temperature#cpu": {
|
||||
"critical-threshold": 90,
|
||||
"on-click": "kitty --class center-float-large btop",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
"temperature#gpu": {
|
||||
"critical-threshold": 80,
|
||||
"on-click": "kitty --class center-float-large nvtop",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip": true,
|
||||
"interval": 2,
|
||||
},
|
||||
}
|
78
.config/waybar/modules/top-bar-2.jsonc
Normal file
78
.config/waybar/modules/top-bar-2.jsonc
Normal file
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"19": "",
|
||||
"20": "",
|
||||
"21": "✉",
|
||||
"22": "🖵",
|
||||
"23": "",
|
||||
"24": "",
|
||||
"25": "",
|
||||
"26": "",
|
||||
"27": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
},
|
||||
"clock#cl2": {
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode": "year",
|
||||
"mode-mon-col": 3,
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"on-click-right": "mode",
|
||||
"format": {
|
||||
"months": "<span color='#eed49f'><b>{}</b></span>",
|
||||
"days": "<span color='#cad3f5'><b>{}</b></span>",
|
||||
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
|
||||
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"format": "{:%H:%M - %A, %B %d, %Y }",
|
||||
"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",
|
||||
},
|
||||
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
|
||||
},
|
||||
}
|
183
.config/waybar/modules/top-bar.jsonc
Normal file
183
.config/waybar/modules/top-bar.jsonc
Normal file
|
@ -0,0 +1,183 @@
|
|||
{
|
||||
"custom/cava": {
|
||||
"exec": "~/.config/waybar/scripts/cava.sh",
|
||||
"format": "{}",
|
||||
"on-click": "pypr toggle cava",
|
||||
"on-click-right": "qpwgraph",
|
||||
"on-click-middle": "easyeffects",
|
||||
},
|
||||
"custom/wf-recorder": {
|
||||
"format": "{}",
|
||||
"interval": "once",
|
||||
"exec": "echo ''",
|
||||
"tooltip": "false",
|
||||
"exec-if": "pgrep 'wf-recorder'",
|
||||
"on-click": "exec $HOME/.config/hypr/scripts/rofi/recording",
|
||||
"signal": 8,
|
||||
},
|
||||
"custom/updates": {
|
||||
"format": "{} {icon}",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"has-updates": "",
|
||||
"updated": "",
|
||||
},
|
||||
"exec-if": "which waybar-module-pacman-updates",
|
||||
"exec": "waybar-module-pacman-updates",
|
||||
"on-click": "pypr toggle topgrade-system",
|
||||
"on-click-right": "pypr toggle topgrade-all",
|
||||
},
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sleep 0.1 && rofi -show drun",
|
||||
"on-click-right": "wleave",
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "wttrbar --location Alicante",
|
||||
"restart-interval": 300,
|
||||
"tooltip": true,
|
||||
"format": "{}°",
|
||||
"return-type": "json",
|
||||
"on-click": "kitty --hold --class center-float wttr Alicante",
|
||||
"on-click-right": "kitty --hold --class center-float wttr -v2 Alicante",
|
||||
"on-click-middle": "xdg-open https://wttr.in/alicante",
|
||||
},
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": "",
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"enable-bar-scroll": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "🎜",
|
||||
"6": "",
|
||||
"7": "",
|
||||
"8": "",
|
||||
"9": "",
|
||||
},
|
||||
"on-scroll-up": "hyprctl dispatch workspace r-1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r+1",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "{}",
|
||||
"format-en": " US",
|
||||
"format-es": " ES",
|
||||
"on-click": "hyprctl switchxkblayout evision-usb-device next",
|
||||
},
|
||||
"clock": {
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode": "month",
|
||||
"mode-mon-col": 3,
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"on-click-right": "mode",
|
||||
"format": {
|
||||
"months": "<span color='#eed49f'><b>{}</b></span>",
|
||||
"days": "<span color='#cad3f5'><b>{}</b></span>",
|
||||
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
|
||||
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"interval": 1,
|
||||
"format": "{:%H:%M:%OS} ",
|
||||
"format-alt": "{:%A, %B %d, %Y} ",
|
||||
"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",
|
||||
},
|
||||
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth-muted": " {volume}% {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": " ",
|
||||
"format-source-muted": " ",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [" ", " ", " "],
|
||||
},
|
||||
"tooltip-format": "{desc}, {volume}%",
|
||||
"on-click": "swayosd-client --output-volume mute-toggle",
|
||||
"on-click-right": "swayosd-client --input-volume mute-toggle",
|
||||
"on-click-middle": "pypr toggle volume",
|
||||
"on-scroll-up": "swayosd-client --output-volume +1",
|
||||
"on-scroll-down": "swayosd-client --output-volume -1",
|
||||
},
|
||||
"cava": {
|
||||
"autosens": 1,
|
||||
"bar_delimiter": 0,
|
||||
"bars": 18,
|
||||
"format-icons": [
|
||||
"<span foreground='#cba6f7'>▁</span>",
|
||||
"<span foreground='#cba6f7'>▂</span>",
|
||||
"<span foreground='#cba6f7'>▃</span>",
|
||||
"<span foreground='#cba6f7'>▄</span>",
|
||||
"<span foreground='#89b4fa'>▅</span>",
|
||||
"<span foreground='#89b4fa'>▆</span>",
|
||||
"<span foreground='#89b4fa'>▇</span>",
|
||||
"<span foreground='#89b4fa'>█</span>",
|
||||
],
|
||||
"framerate": 75,
|
||||
"higher_cutoff_freq": 10000,
|
||||
"input_delay": 5,
|
||||
"lower_cutoff_freq": 50,
|
||||
"method": "pipewire",
|
||||
"monstercat": false,
|
||||
"reverse": false,
|
||||
"source": "auto",
|
||||
"stereo": true,
|
||||
"waves": false,
|
||||
},
|
||||
"custom/music": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 100,
|
||||
"format-icons": {
|
||||
"spotify": " ",
|
||||
"default": " ",
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null",
|
||||
"on-click": "playerctl --player=spotify play-pause",
|
||||
"on-scroll-up": "playerctl --player=spotify next",
|
||||
"on-scroll-down": "playerctl --player=spotify previous",
|
||||
},
|
||||
}
|
42
.config/waybar/scripts/cava.sh
Executable file
42
.config/waybar/scripts/cava.sh
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
|
||||
bar="▁▂▃▄▅▆▇█"
|
||||
dict="s/;//g"
|
||||
|
||||
bar_length=${#bar}
|
||||
|
||||
for ((i = 0; i < bar_length; i++)); do
|
||||
dict+=";s/$i/${bar:$i:1}/g"
|
||||
done
|
||||
|
||||
config_file="/tmp/bar_cava_config"
|
||||
cat >"$config_file" <<EOF
|
||||
[general]
|
||||
bars = 15
|
||||
|
||||
[input]
|
||||
method = pulse
|
||||
source = auto
|
||||
|
||||
[output]
|
||||
method = raw
|
||||
raw_target = /dev/stdout
|
||||
data_format = ascii
|
||||
ascii_max_range = 7
|
||||
|
||||
[color]
|
||||
gradient = 1
|
||||
|
||||
gradient_color_1 = '#8bd5ca'
|
||||
gradient_color_2 = '#91d7e3'
|
||||
gradient_color_3 = '#7dc4e4'
|
||||
gradient_color_4 = '#8aadf4'
|
||||
gradient_color_5 = '#c6a0f6'
|
||||
gradient_color_6 = '#f5bde6'
|
||||
gradient_color_7 = '#ee99a0'
|
||||
gradient_color_8 = '#ed8796'
|
||||
EOF
|
||||
|
||||
pkill -f "cava -p $config_file"
|
||||
|
||||
cava -p "$config_file" | sed -u "$dict"
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
/* General Settings */
|
||||
#cava,
|
||||
#custom-cava,
|
||||
#custom-clipboard,
|
||||
#custom-notifications,
|
||||
#custom-arch,
|
||||
|
@ -143,6 +144,11 @@ window#waybar.hidden {
|
|||
}
|
||||
|
||||
/* Individual Modules */
|
||||
#custom-cava {
|
||||
color: rgb(183, 189, 248);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #24273a;
|
||||
color: #8aadf4;
|
||||
|
|
2
.github/README.md
vendored
2
.github/README.md
vendored
|
@ -211,7 +211,7 @@ Here is all the information about my setup:
|
|||
|
||||
```bash
|
||||
yay -Sy hyprland hyprlock hypridle xdg-desktop-portal-hyprland hyprpicker \
|
||||
swww waybar-cava wleave-git rofi-wayland swaync swayosd-git wl-clipboard wl-clip-persist-git \
|
||||
swww waybar wleave-git rofi-wayland swaync swayosd-git wl-clipboard \
|
||||
pyprland qt5ct pavucontrol cliphist playerctl udiskie devify fzf jq eza fd \
|
||||
catppuccin-gtk-theme-macchiato catppuccin-cursors-macchiato cava slurp grim
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue