Add a minimal waybar setup.

This commit is contained in:
Tom Alexander 2022-10-18 18:15:48 -04:00
parent 0e9df5a5f0
commit 637e9b5fed
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 20 additions and 54 deletions

View File

@ -1,9 +1,11 @@
default_sway_conf_files:
- background
- framework_input
- framework_display
- base_hotkeys
- movement
- windows
- screenshots
- notifications
- disable_focus_follows_mouse
- waybar

View File

@ -0,0 +1 @@
output 'Unknown 0x095F 0x00000000' scale 1.5

View File

@ -0,0 +1,16 @@
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
font pango:Cascadia Mono, FontAwesome 10
swaybar_command waybar
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}

View File

@ -1,7 +1,7 @@
{
// "height": 10, // Waybar height (to be removed for auto height)
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "custom/temperature", "backlight", "custom/battery", "custom/clock", "tray"],
"modules-right": ["idle_inhibitor", "custom/clock", "tray"],
"sway/workspaces": {
"disable-scroll": true,
},
@ -23,58 +23,5 @@
"exec": "$HOME/.bin/.waybar_date",
"return-type": "json",
"restart-interval": 30
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"custom/temperature": {
"exec": "$HOME/.bin/.waybar_temperature",
"return-type": "json",
"restart-interval": 30
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"custom/battery": {
"exec": "$HOME/.bin/.waybar_battery",
"return-type": "json",
"restart-interval": 30
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol",
"on-scroll-up": "",
"on-scroll-down": ""
}
}