more changes, all should work pretty nicely now

This commit is contained in:
2025-05-21 15:45:30 +02:00
parent 0e34591f0a
commit ab93aae1b6
56 changed files with 6674 additions and 229 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"layer": "bottom",
"position": "top",
"margin": "0 200 2 200",
"fixed-center": true,
"reload_style_on_change": true,
"include": ["~/.config/waybar/modules.jsonc"],
"modules-left": [
"hyprland/window",
"group/info"
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
"group/control-center",
"group/hub",
"group/power"
],
}
+287
View File
@@ -0,0 +1,287 @@
{
"hyprland/window": {
"format": "{title}",
"max-length": 80,
"separate-outputs": false,
"rewrite": {
"^.*( — Brave|Brave)$": " Brave",
"^.*vim.*$": " Neovim",
"^.*~$": "󱙝 Ghostty",
"^.*Emacs": " Emacs",
"(.*) ": " Empty"
},
},
"group/info": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": false,
},
"modules": ["custom/arrow-right", "cpu", "memory", "disk" ],
},
"custom/arrow-right": {
"format": "󰁙",
"tooltip": false,
},
"cpu": {
"format": "󰘚 {usage}󱉸",
},
"memory": {
"format": " {:2}󱉸",
},
"disk": {
"interval": 600,
"format": "󰆼 {percentage_used}󱉸",
"path": "/home",
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"all-outputs": true,
"format-icons": {
"1": "",
"2": "󰅩",
"3": "󰖟",
"4": "󰓇",
"5": "",
"6": "󰙯",
"7": "",
"8": "󰕧",
"9": "",
"10": "",
},
},
"group/control-center": {
"orientation": "inherit",
"modules": ["hyprland/language", "group/audio", "group/connection"],
},
"hyprland/language": {
"format": "{}",
"format-en": "en",
"format-ru": "ru",
"keyboard-name": "kingston-hyperx-alloy-fps-pro-mechanical-gaming-keyboard-1",
// "keyboard-name":"at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout kingston-hyperx-alloy-fps-pro-mechanical-gaming-keyboard-1 next",
},
"group/audio": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": false,
},
"modules": [
"pulseaudio"
// "pulseaudio#mic"
// "pulseaudio/slider"
]
},
"pulseaudio": {
"format": "{icon}",
"format-bluetooth": "{icon}",
"tooltip": false,
// "tooltip-format": "{volume}% {icon} | {desc}",
"format-muted": "󰖁",
"format-icons": {
"headphones": "󰋌",
"handsfree": "󰋌",
"headset": "󰋌",
"phone": "",
"portable": "",
"car": " ",
"default": ["󰕿", "󰖀", "󰕾"],
},
"on-click": "pamixer -t && exec $NIX_CONFIG_DIR/scripts/progress-notify.sh mute",
"on-click-right": "pavucontrol",
"on-scroll-down": "pamixer -d 5 && exec $NIX_CONFIG_DIR/scripts/progress-notify.sh audio",
"on-scroll-up": "pamixer -i 5 && exec $NIX_CONFIG_DIR/scripts/progress-notify.sh audio",
"smooth-scrolling-threshold": 1,
},
// "pulseaudio#mic": {
// "format": "{format_source}",
// "format-source": "",
// "format-source-muted": "",
// "tooltip": false,
// // "tooltip-format": "{volume}% {format_source} ",
// "on-click": "pactl set-source-mute 0 toggle",
// "on-scroll-down": "pactl set-source-volume 0 -1%",
// "on-scroll-up": "pactl set-source-volume 0 +1%",
// },
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal",
},
"group/connection": {
"orientation": "inherit",
"modules": ["group/network", "group/bluetooth"],
},
"group/network": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": true,
},
"modules": ["network", "network#speed"],
},
"group/bluetooth": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": true,
},
"modules": ["bluetooth", "bluetooth#status"],
},
"network": {
"format": "{icon}",
"format-icons": {
"wifi": ["󰤨"],
"ethernet": ["󰈁"],
"disconnected": [""],
},
"format-wifi": "󰤨",
"format-ethernet": "󰈁",
"format-disconnected": "󰖪",
"format-linked": "󰈁",
"tooltip": false,
"on-click": "pgrep -x wofi &>/dev/null && notify-send wofi || networkmanager_dmenu",
},
"network#speed": {
"format": " {bandwidthDownBits} ",
"interval": 5,
"tooltip-format": "{ipaddr}",
"tooltip-format-wifi": "{essid} ({signalStrength}%)  \n{ipaddr} | {frequency} MHz{icon} ",
"tooltip-format-ethernet": "{ifname} 󰈀 \n{ipaddr} | {frequency} MHz{icon} ",
"tooltip-format-disconnected": "Not Connected to any type of Network",
"tooltip": true,
"on-click": "pgrep -x wofi &>/dev/null && notify-send wofi || networkmanager_dmenu",
},
"bluetooth": {
"format-on": "",
"format-off": "󰂲",
"format-disabled": "󰂲",
"format-connected": "",
"tooltip": false,
"on-click": "overskride"
// "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
// "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
// "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
// "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
},
"bluetooth#status": {
"format-on": "",
"format-off": "",
"format-disabled": "",
"format-connected": "<b>{num_connections}</b>",
"format-connected-battery": "<small><b>{device_battery_percentage}%</b></small>",
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
"on-click": "wofi-bluetooth -config ~/.config/rofi/menu.d/network.rasi -i",
},
"group/hub": {
"orientation": "inherit",
"modules": ["group/utils", "clock"],
},
"group/utils": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": true,
},
"modules": [ "custom/arrow-left", "custom/notifications", "custom/weather" ],
},
"custom/arrow-left": {
"format": "󰁒",
"tooltip": false,
},
"custom/notifications": {
"tooltip": false,
// I don't know why "{icon} {}" doesn't work
"format": "{} {icon}",
"format-icons": {
"notification": "󱅫",
"none": "󰂚",
"dnd-notification": "󰂛",
"dnd-none": "󰂛",
"inhibited-notification": "󰂚",
"inhibited-none": "󰂚",
"dnd-inhibited-notification": "󰂛",
"dnd-inhibited-none": "󰂛"
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/weather": {
"format": "{}",
"tooltip": false,
"interval": 3600,
"exec": "wttrbar --custom-indicator '{ICON}{temp_C}°C'",
"return-type": "json",
},
"clock": {
"format": "{:%H:%M}",
"format-alt": "{:%A %d.%m}",
"tooltip-format": "<tt><big>{calendar}</big></tt>",
"calendar": {
"mode": "month",
"on-scroll": 1,
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>",
},
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
},
"group/power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"transition-left-to-right": false,
},
"modules": ["battery", "power-profiles-daemon"],
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-charging": "<b>{icon} </b>",
"format-full": "<span color='#82A55F'><b>{icon}</b></span>",
"on-update": "$NIX_CONFIG_DIR/scripts/battery-warn.sh 255",
"format-icons": [
"󰁻",
"󰁼",
"󰁾",
"󰂀",
"󰂂",
"󰁹"
],
"tooltip-format": "{timeTo} {capacity} % | {power} W"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "<span color='#B37F34'><small></small></span>",
"balanced": "<span><small> </small></span>",
"power-saver": "<span color='#a6e3a1'><small></small></span>"
}
},
}
+140
View File
@@ -0,0 +1,140 @@
@import "../../.cache/wal/colors-waybar.css";
@define-color main-color @color13;
* {
font: bold 16px "JetBrainsMono Nerd Font Propo";
border: none;
border-radius: 0px;
box-shadow: none;
text-shadow: none;
}
window#waybar {
background: alpha(@background, 0.3);
border-radius: 10px;
}
#window {
padding: 2px 10px;
margin: 4px 2px 4px 4px;
background: alpha(@background, 0.3);
border-radius: 10px;
color: lighter(@main-color);
}
tooltip {
background: alpha(@background, 0.3);
border: 2px solid alpha(lighter(@main-color), 0.3);
border-radius: 10px;
}
tooltip label {
color: @foreground;
}
#custom-arrow-right {
color: @main-color;
margin: 0px 4px;
}
#cpu,
#memory,
#disk {
padding: 0px 6px;
margin: 8px 4px;
background: alpha(darker(@main-color), 0.3);
color: @main-color;
border-radius: 10px;
}
#workspaces {
margin: 4px 4px;
background: alpha(@background, 0.5);
border-radius: 10px;
}
#workspaces button {
padding: 0px 4px;
margin: 4px 4px;
color: alpha(@foreground, 0.5);
}
#workspaces button.active {
transition: color 0.5s;
color: lighter(@main-color);
}
#workspaces button.urgent,
#workspaces button:hover {
color: @color5;
background-color: transparent;
}
#control-center {
padding: 0px 8px;
margin: 8px 4px;
color: lighter(@main-color);
background: alpha(@background, 0.3);
border-radius: 10px;
}
#bluetooth,
#network,
#pulseaudio {
padding: 0px 0 0 4px;
}
#pulseaudio-slider slider {
min-height: 0px;
min-width: 0px;
background-color: transparent;
border: none;
box-shadow: none;
}
#pulseaudio-slider {
margin: 10px;
}
#pulseaudio-slider highlight {
border-radius: 8px;
background-color: lighter(@main-color);
}
#language {
padding: 0px 3px 2px 0px;
}
#custom-arrow-left {
color: lighter(@main-color);
margin: 0px 4px;
}
#custom-notifications,
#custom-weather,
#custom-theme-switcher {
padding: 0px 8px;
margin: 8px 4px;
color: @main-color;
background: alpha(darker(@main-color), 0.3);
border-radius: 10px;
}
#clock {
padding: 0px 8px;
margin: 4px 2px 4px 2px;
background: alpha(@background, 0.3);
border-radius: 10px;
color: lighter(@main-color);
}
#power {
background: alpha(@main-color, 0.3);
border-radius: 10px;
margin: 4px;
}
#battery {
padding: 0px 8px;
}