summaryrefslogtreecommitdiff
path: root/home-config
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2023-08-31 15:09:39 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2023-08-31 15:09:39 -0400
commit7811a30543f4b5fd80bd85a3440fb1372c428e73 (patch)
tree04dffed444fe6544238a7ab7c57241639d3a0860 /home-config
parent379a2e1c807baa6eed6a5468de27ef1d4c59423f (diff)
added native bluetooth to waybar
Diffstat (limited to 'home-config')
-rwxr-xr-xhome-config/hypr/autostart.sh2
-rw-r--r--home-config/waybar/config24
-rw-r--r--home-config/waybar/style.css2
3 files changed, 19 insertions, 9 deletions
diff --git a/home-config/hypr/autostart.sh b/home-config/hypr/autostart.sh
index 4881fd9..ad57e9e 100755
--- a/home-config/hypr/autostart.sh
+++ b/home-config/hypr/autostart.sh
@@ -11,5 +11,3 @@ swaybg -i ~/.config/hypr/Wallpapers/mountains.jpg &
11swayidle -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' & 11swayidle -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' &
12 12
13syncthing serve --no-browser & 13syncthing serve --no-browser &
14
15blueman-applet &
diff --git a/home-config/waybar/config b/home-config/waybar/config
index 9d4b88f..677c60c 100644
--- a/home-config/waybar/config
+++ b/home-config/waybar/config
@@ -1,11 +1,11 @@
1{ 1{
2 "layer": "bottom", 2 "layer": "top",
3 "position": "top", 3 "position": "top",
4 "height": 30, 4 "height": 30,
5 5
6 "modules-left": ["wlr/workspaces", "hyprland/submap"], 6 "modules-left": ["wlr/workspaces", "hyprland/submap"],
7 "modules-center": ["hyprland/window"], 7 "modules-center": ["hyprland/window"],
8 "modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], 8 "modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
9 "hyprland/submap": { 9 "hyprland/submap": {
10 "format": " {}" 10 "format": " {}"
11 }, 11 },
@@ -15,7 +15,8 @@
15 }, 15 },
16 "hyprland/window": { 16 "hyprland/window": {
17 "max-length": 80, 17 "max-length": 80,
18 "tooltip": false 18 "tooltip": false,
19 "separate-outputs": true
19 }, 20 },
20 "clock": { 21 "clock": {
21 "format": "{:%a %d %b %H:%M}", 22 "format": "{:%a %d %b %H:%M}",
@@ -34,14 +35,25 @@
34 "tooltip": false, 35 "tooltip": false,
35 "bat":"BAT1" 36 "bat":"BAT1"
36 }, 37 },
38 "bluetooth": {
39 "format": "",
40 "format-disabled": "",
41 "format-connected": "",
42 "format-connected-battery": " {device_battery_percentage}%",
43 "on-click": "blueman-manager",
44 "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
45 "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
46 "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
47 "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
48 },
37 "network": { 49 "network": {
38 "format-alt": "{icon}", 50 "format-alt": "{ipaddr}/{cidr} {icon} {bandwidthTotalBytes}󰹹",
39 "format": "{ipaddr}/{cidr} {icon}", 51 "format": "{ipaddr}/{cidr} {icon}",
40 "format-alt-click": "click-right", 52 "format-alt-click": "click-right",
41 "format-icons": { 53 "format-icons": {
42 "wifi": ["", "" ,""], 54 "wifi": ["󰤟", "󰤢" ,"󰤥", "󰤨"],
43 "ethernet": [""], 55 "ethernet": [""],
44 "disconnected": [""] 56 "disconnected": ["󰤭"]
45 }, 57 },
46 "on-click": "alacritty -e doas nmtui", 58 "on-click": "alacritty -e doas nmtui",
47 "tooltip": false 59 "tooltip": false
diff --git a/home-config/waybar/style.css b/home-config/waybar/style.css
index cf776ad..0e98fc6 100644
--- a/home-config/waybar/style.css
+++ b/home-config/waybar/style.css
@@ -46,7 +46,7 @@ window#waybar.solo {
46 color: rgba(238, 46, 36, 1); 46 color: rgba(238, 46, 36, 1);
47} 47}
48 48
49#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail { 49#mode, #battery, #cpu, #memory, #network, #bluetooth, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
50 margin: 0px 6px 0px 10px; 50 margin: 0px 6px 0px 10px;
51 min-width: 25px; 51 min-width: 25px;
52} 52}