Skip to content

Commit

Permalink
Use Waybar
Browse files Browse the repository at this point in the history
  • Loading branch information
joaothallis committed Apr 14, 2024
1 parent 2d59058 commit 0f21e57
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,7 @@ bindsym $mod+r mode "resize"
bar {
position top

# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done

colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
swaybar_command waybar
}
}

Expand Down
18 changes: 18 additions & 0 deletions .config/waybar/config.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@


{
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["battery", "clock"],
"sway/window": {
"max-length": 50
},
"battery": {
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""]
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
}
}

0 comments on commit 0f21e57

Please sign in to comment.