summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/config2
-rwxr-xr-xsway/status.sh15
-rw-r--r--waybar/config.jsonc33
3 files changed, 34 insertions, 16 deletions
diff --git a/sway/config b/sway/config
index 259a660..bfb2776 100644
--- a/sway/config
+++ b/sway/config
@@ -215,7 +215,7 @@ bindsym $mod+r mode "resize"
bar {
position top
- swaybar_command swaybar
+ swaybar_command waybar
status_command while ~/.config/sway/status.sh; do sleep 1; done
diff --git a/sway/status.sh b/sway/status.sh
deleted file mode 100755
index eb68f81..0000000
--- a/sway/status.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-
-temp() {
- find /sys/class/thermal -type l -name 'thermal_zone*' | \
- while read -r zone
- do
- printf "%s °C " "$(( $(cat ${zone}/temp) / 1000 ))"
- done
-}
-bat="BAT $(cat /sys/class/power_supply/BAT*/capacity | tr '\n' ' ')"
-time="$(date '+KW %V %a %Y-%m-%d %H:%M')"
-
-
-echo "| $(temp)| ${bat}| ${time} |"
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
new file mode 100644
index 0000000..c038b5d
--- /dev/null
+++ b/waybar/config.jsonc
@@ -0,0 +1,33 @@
+{
+ "layer": "top",
+ "modules-left": [
+ "sway/workspaces",
+ "sway/mode"
+ ],
+ "modules-center": [
+ "sway/window"
+ ],
+ "modules-right": [
+ "battery",
+ "battery#bat2",
+ "clock"
+ ],
+ "sway/window": {
+ "max-length": 50
+ },
+ "battery": {
+ "bat": "BAT0",
+ "format": "{capacity}% {icon}",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "battery#bat2": {
+ "bat": "BAT1",
+ "format": "{capacity}% {icon}",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "clock": {
+ "interval": 60,
+ "format": "KW {:%V %a %Y-%m-%d %H:%M}",
+ "max-length": 25
+ }
+}