added native bluetooth to waybar

This commit is contained in:
Ryan Schanzenbacher 2023-08-31 15:09:39 -04:00
parent 379a2e1c80
commit 7811a30543
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E
3 changed files with 19 additions and 9 deletions

View file

@ -11,5 +11,3 @@ swaybg -i ~/.config/hypr/Wallpapers/mountains.jpg &
swayidle -w timeout 300 'swaylock --screenshots --clock --indicator --grace 3 --fade-in 1 --effect-blur 7x5 --effect-greyscale' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000' &
syncthing serve --no-browser &
blueman-applet &

View file

@ -1,11 +1,11 @@
{
"layer": "bottom",
"layer": "top",
"position": "top",
"height": 30,
"modules-left": ["wlr/workspaces", "hyprland/submap"],
"modules-center": ["hyprland/window"],
"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
"hyprland/submap": {
"format": " {}"
},
@ -15,7 +15,8 @@
},
"hyprland/window": {
"max-length": 80,
"tooltip": false
"tooltip": false,
"separate-outputs": true
},
"clock": {
"format": "{:%a %d %b %H:%M}",
@ -34,14 +35,25 @@
"tooltip": false,
"bat":"BAT1"
},
"bluetooth": {
"format": "",
"format-disabled": "",
"format-connected": "",
"format-connected-battery": " {device_battery_percentage}%",
"on-click": "blueman-manager",
"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}%"
},
"network": {
"format-alt": "{icon}",
"format-alt": "{ipaddr}/{cidr} {icon} {bandwidthTotalBytes}󰹹",
"format": "{ipaddr}/{cidr} {icon}",
"format-alt-click": "click-right",
"format-icons": {
"wifi": ["", "" ,""],
"wifi": ["󰤟", "󰤢" ,"󰤥", "󰤨"],
"ethernet": [""],
"disconnected": ["睊"]
"disconnected": ["󰤭"]
},
"on-click": "alacritty -e doas nmtui",
"tooltip": false

View file

@ -46,7 +46,7 @@ window#waybar.solo {
color: rgba(238, 46, 36, 1);
}
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
#mode, #battery, #cpu, #memory, #network, #bluetooth, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
margin: 0px 6px 0px 10px;
min-width: 25px;
}