From 1fd045367b5ebf5070a51a0caa97ccb705e20c4c Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 16 Mar 2023 21:23:13 +0100 Subject: Switch to minimal swaybar config This is far easier to configure than waybar. --- sway/config | 8 +++++++- sway/status.sh | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 sway/status.sh diff --git a/sway/config b/sway/config index f8451bf..165e2c5 100644 --- a/sway/config +++ b/sway/config @@ -214,7 +214,13 @@ bindsym $mod+r mode "resize" bar { position top - swaybar_command waybar + swaybar_command swaybar + + status_command while ~/.config/sway/status.sh; do sleep 1; done + + font pango:DejaVu Sans Mono 10 + + pango_markup enabled colors { statusline #ffffff diff --git a/sway/status.sh b/sway/status.sh new file mode 100755 index 0000000..f29dfc8 --- /dev/null +++ b/sway/status.sh @@ -0,0 +1,7 @@ +#!/bin/sh + + +time="$(date '+KW %W %a %Y-%m-%d %H:%M')" + + +echo "| ${time} |" -- cgit v1.2.3-70-g09d2