This commit is contained in:
Jake Pullen
2025-05-03 15:10:38 +01:00
commit 4b9b79da81
73 changed files with 83728 additions and 0 deletions
View File
+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
# Not my own work. Credit to original author
#----- Optimized bars animation without much CPU usage increase --------
bar="▁▂▃▄▅▆▇█"
dict="s/;//g"
# Calculate the length of the bar outside the loop
bar_length=${#bar}
# Create dictionary to replace char with bar
for ((i = 0; i < bar_length; i++)); do
dict+=";s/$i/${bar:$i:1}/g"
done
# Create cava config
config_file="/tmp/bar_cava_config"
cat >"$config_file" <<EOF
[general]
# Older systems show significant CPU use with default framerate
# Setting maximum framerate to 30
# You can increase the value if you wish
framerate = 60
bars = 14
[input]
method = pulse
source = auto
[output]
method = raw
raw_target = /dev/stdout
data_format = ascii
ascii_max_range = 7
EOF
# Kill cava if it's already running
pkill -f "cava -p $config_file"
# Read stdout from cava and perform substitution in a single sed command
cava -p "$config_file" | sed -u "$dict"
+44
View File
@@ -0,0 +1,44 @@
// -*- mode: jsonc -*-
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
//"height": 46,// Waybar height (to be removed for auto height)
"width": 1900, // Waybar width
"spacing": 2, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"custom/arch",
//"custom/search",
"cpu",
"memory",
"temperature",
"battery",
"power-profiles-daemon",
"custom/cava_mviz",
"mpris",
//"wlr/taskbar"
"hyprland/window"
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
"idle_inhibitor",
"pulseaudio",
"backlight",
"network#speed",
"network",
"bluetooth",
"hyprland/language",
"tray",
"custom/swaync",
"clock",
"custom/power"
],
//Modules configuration
"include": [
"~/.config/waybar/modules.json"
]
}
+27
View File
@@ -0,0 +1,27 @@
@define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd;
@define-color pink #f5c2e7;
@define-color mauve #cba6f7;
@define-color red #f38ba8;
@define-color maroon #eba0ac;
@define-color peach #fab387;
@define-color yellow #f9e2af;
@define-color green #a6e3a1;
@define-color teal #94e2d5;
@define-color sky #89dceb;
@define-color sapphire #74c7ec;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color text #cdd6f4;
@define-color subtext1 #bac2de;
@define-color subtext0 #a6adc8;
@define-color overlay2 #9399b2;
@define-color overlay1 #7f849c;
@define-color overlay0 #6c7086;
@define-color surface2 #585b70;
@define-color surface1 #45475a;
@define-color surface0 #313244;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
@define-color brown #561508;
+272
View File
@@ -0,0 +1,272 @@
{
"custom/arch": {
"format": "󰣇",
"on-click": "wofi --show drun",
"tooltip": true,
"tooltip-format": "btw 😎"
},
"custom/search": {
"format": "🔍",
"on-click": "$HOME/.config/hypr/web-search.sh",
"tooltip": true,
"tooltip-format": "Web Search"
},
"custom/cava_mviz": {
"exec": "$HOME/.config/waybar/WaybarCava.sh",
"format": "{}"
},
"hyprland/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"warp-on-scroll": true,
"format": "{name}",
"format-icons": {
"urgent": "",
"active": "",
"default": "",
"exec": "hyprctl clients -w -f"
}
},
/* "wlr/taskbar": {
"format": "{icon} {title:.17}",
"icon-size": 28,
"spacing": 3,
"on-click-middle": "close",
"tooltip-format": "{title}",
"ignore-list": [],
"on-click": "activate"
},
*/
"hyprland/window": {
"format": "{title}",
//"max-length": 30,
"on-click": "hyprctl dispatch window_activate {id}",
"on-scroll-up": "hyprctl dispatch window_raise {id}",
"on-scroll-down": "hyprctl dispatch window_lower {id}",
"exec": "hyprctl clients -w -f"
},
"custom/swaync": {
"tooltip": true,
"tooltip-format": "Left Click: Launch Notification Center\nRight Click: Do not Disturb",
"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,
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%  {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"on-click-right": "pavucontrol -t 4",
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+",
"tooltip-format": "{source_desc} | {source_volume}%",
"scroll-step": 5,
},
"network": {
"format": "{ifname}",
"format-wifi": "{icon}",
"format-ethernet": "󰌘",
"format-disconnected": "󰌙",
"tooltip-format": "{ipaddr}  {bandwidthUpBits}  {bandwidthDownBits}",
"format-linked": "󰈁 {ifname} (No IP)",
"tooltip-format-wifi": "{essid} {icon} {signalStrength}%",
"tooltip-format-ethernet": "{ifname} 󰌘",
"tooltip-format-disconnected": "󰌙 Disconnected",
"max-length": 30,
"format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
],
"on-click-right": "kitty nmtui"
},
"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",
"min-length": 24,
"max-length": 24,
"format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
]
},
"cpu": {
"format": " {usage}%",
"tooltip": true,
"on-click": "kitty htop &"
},
"memory": {
"format": " {}%",
"tooltip": true,
"on-click": "gnome-disks &"
},
"temperature": {
"interval": 10,
"hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input",
"critical-threshold": 100,
"format-critical": " {temperatureC}",
"format": " {temperatureC}°C"
},
"hyprland/language": {
"format": " {}",
"format-en": "EN",
"format-ru": "RU"
},
"battery": {
"states": {
"warning": 30,
"critical": 20
},
"on-click-middle": "acpi -i",
"format": "{icon} {capacity}%",
"format-full": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"clock": {
"format": "{:%H:%M} ",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%d-%m-%Y}"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"custom/power": {
"tooltip": true,
"on-click": "wlogout &",
"format": "",
"tooltip-format": "Power Menu"
},
"tray": {
"icon-size": 20,
"spacing": 4,
},
"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": "blueberry",
},
"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": "brightnessctl s +5%",
"on-scroll-down": "brightnessctl s 5%-",
"smooth-scrolling-threshold": 1,
},
"mpris": {
"interval": 10,
"format": "{player_icon}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"on-click-middle": "playerctl play-pause",
"on-click": "playerctl previous",
"on-click-right": "playerctl next",
"scroll-step": 5.0,
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
"smooth-scrolling-threshold": 1,
"player-icons": {
"chromium": "",
"default": "",
"firefox": "",
"kdeconnect": "",
"mopidy": "",
"mpv": "󰐹",
"spotify": "",
"vlc": "󰕼",
},
"status-icons": {
"paused": "󰐎",
"playing": "",
"stopped": "",
},
// "ignored-players": ["firefox"]
"max-length": 30,
}
}
+249
View File
@@ -0,0 +1,249 @@
@import "mocha.css";
* {
/* `otf-font-awesome` and SpaceMono Nerd Font are required to be installed for icons */
font-family: "SpaceMono Nerd Font";
font-size: 15px;
}
window#waybar {
background: transparent;
color: @teal;
border-radius: 7rem;
border-width: 2px;
border-style: solid;
border-color: @teal;
}
window#waybar.empty #window {
background-color: transparent;
padding: 0px;
border: 0px;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#bluetooth,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#language,
#mpd {
background-color: transparent;
padding: 0 10px;
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#clock:hover,
#battery:hover,
#cpu:hover,
#memory:hover,
#disk:hover,
#temperature:hover,
#backlight:hover,
#network:hover,
#pulseaudio:hover,
#wireplumber:hover,
#custom-media:hover,
#tray:hover,
#mode:hover,
#bluetooth:hover,
#idle_inhibitor:hover,
#scratchpad:hover,
#power-profiles-daemon:hover,
#language:hover,
#mpd:hover {
background-color: @maroon;
color: @brown;
}
#workspaces {
border-radius: 7rem;
background-color: transparent;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#workspaces button {
color: @teal;
border-radius: 7rem;
}
#workspaces button.active {
color: @brown;
background-color: @teal;
border-radius: 7rem;
}
#workspaces button:hover {
color: @brown;
background-color: @maroon;
border-radius: 7rem;
}
#custom-arch {
margin-left: 5px;
padding: 0 10px;
font-size: 25px;
background-color: transparent;
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#custom-arch:hover {
background-color: @maroon;
color: @brown;
}
#custom-search {
padding: 0 10px;
font-size: 20px;
background-color: transparent;
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#custom-search:hover {
background-color: @maroon;
color: @brown;
}
#custom-swaync {
padding: 0 10px;
background-color: transparent;
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#custom-swaync:hover {
background-color: @maroon;
color: @brown;
}
#custom-power {
margin-right: 5px;
padding: 0 10px;
background-color: transparent;
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#custom-power:hover {
background-color: @maroon;
color: @brown;
}
/*
#taskbar {
}
#taskbar button {
border-radius: 7rem;
background: transparent;
border-width: 2px;
border-style: solid;
border-color: @teal;
margin-left: 2px;
margin-right: 2px;
padding-left: 8px;
padding-right: 8px;
color: @text;
}
#taskbar button.active {
border-radius: 7rem;
background-color: @surface0;
border-width: 2px;
border-style: solid;
border-color: @teal;
}
*/
#window {
border-radius: 7rem;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
padding: 0 10px;
background-color: transparent;
color: @teal;
margin-left: 5px;
margin-right: 5px;
}
#window:hover {
background-color: @maroon;
color: @brown;
}
#pulseaudio-slider slider {
min-width: 0px;
min-height: 0px;
opacity: 0;
background-image: none;
border: none;
box-shadow: none;
}
#pulseaudio-slider trough {
min-width: 80px;
min-height: 5px;
border-radius: 5px;
}
#pulseaudio-slider highlight {
min-height: 10px;
border-radius: 5px;
}
#backlight-slider slider {
min-width: 0px;
min-height: 0px;
opacity: 0;
background-image: none;
border: none;
box-shadow: none;
}
#backlight-slider trough {
min-width: 80px;
min-height: 10px;
border-radius: 5px;
}
#backlight-slider highlight {
min-width: 10px;
border-radius: 5px;
}
#mpris {
border-radius: 7rem;
background-color: transparent;
padding: 0 10px;
/*border-width: 2px;
border-style: solid;
border-color: @teal;*/
}
#mpris:hover {
background-color: @maroon;
color: @brown;
}
#custom-cava_mviz {
color: @pink;
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB