aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/clangd/config.yaml14
-rw-r--r--dot_config/sway/config2
-rw-r--r--dot_config/waybar/config.jsonc13
-rw-r--r--dot_config/waybar/style.css14
4 files changed, 35 insertions, 8 deletions
diff --git a/dot_config/clangd/config.yaml b/dot_config/clangd/config.yaml
index a50287d..f7a45cc 100644
--- a/dot_config/clangd/config.yaml
+++ b/dot_config/clangd/config.yaml
@@ -14,10 +14,10 @@ InlayHints:
DefaultArguments: Yes
Hover:
ShowAKA: Yes
-# ---
-# If:
-# PathMatch: ~/llvm-project/.*
-# Index:
-# External:
-# Server: clangd.devel.appentra.com:5900
-# MountPoint: /home/ruifm/work/pw-project
+---
+ If:
+ PathMatch: /home/dev/llvm-project/.*
+ Index:
+ External:
+ Server: clangd-index.llvm.org:5900
+ MountPoint: /home/dev/llvm-project/
diff --git a/dot_config/sway/config b/dot_config/sway/config
index d9958de..6d96909 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -150,7 +150,7 @@ bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86Bluetooth exec ~/.config/sway/bt-toggle.sh
bindsym XF86ScreenSaver exec "playerctl -a pause; swaylock -f -e -c 282828"
bindsym XF86Sleep exec systemctl suspend
-bindsym XF86WLAN exec rfkill toggle wifi
+bindsym XF86WLAN exec ~/.config/waybar/wifi-toggle.sh
bindsym XF86RFKill exec rfkill toggle all
# Screenshots
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc
index 275d795..47d6b64 100644
--- a/dot_config/waybar/config.jsonc
+++ b/dot_config/waybar/config.jsonc
@@ -14,6 +14,7 @@
"privacy",
"pulseaudio",
"custom/wifi",
+ "bluetooth",
"idle_inhibitor",
"custom/notifications",
"custom/thunderbird",
@@ -146,6 +147,18 @@
"tooltip": true,
},
+ "bluetooth": {
+ "format": "BT on",
+ "format-disabled": "BT off",
+ "format-off": "BT off",
+ "format-connected": "BT {device_alias}",
+ "format-connected-battery": "BT {device_alias} {device_battery_percentage}%",
+ "tooltip-format": "{controller_alias}\t{controller_address}",
+ "tooltip-format-connected": "{controller_alias}\n{num_connections} connected\n{device_enumerate}",
+ "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
+ "on-click": "~/.config/sway/bt-toggle.sh",
+ },
+
"privacy": {
"icon-spacing": 4,
"icon-size": 14,
diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
index 037c0e3..3072ad2 100644
--- a/dot_config/waybar/style.css
+++ b/dot_config/waybar/style.css
@@ -40,6 +40,7 @@ window#waybar {
#memory,
#temperature,
#network,
+#bluetooth,
#pulseaudio,
#tray,
#window,
@@ -80,6 +81,19 @@ window#waybar {
color: #928374; /* gray */
}
+#bluetooth {
+ color: #83a598; /* blue when on, no connections */
+}
+
+#bluetooth.connected {
+ color: #b8bb26; /* green when a device is connected */
+}
+
+#bluetooth.disabled,
+#bluetooth.off {
+ color: #928374; /* gray when adapter is off */
+}
+
#battery {
color: #fabd2f; /* yellow */
}