Add a minimal waybar setup.
This commit is contained in:
parent
0e9df5a5f0
commit
637e9b5fed
@ -1,9 +1,11 @@
|
|||||||
default_sway_conf_files:
|
default_sway_conf_files:
|
||||||
- background
|
- background
|
||||||
- framework_input
|
- framework_input
|
||||||
|
- framework_display
|
||||||
- base_hotkeys
|
- base_hotkeys
|
||||||
- movement
|
- movement
|
||||||
- windows
|
- windows
|
||||||
- screenshots
|
- screenshots
|
||||||
- notifications
|
- notifications
|
||||||
- disable_focus_follows_mouse
|
- disable_focus_follows_mouse
|
||||||
|
- waybar
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
output 'Unknown 0x095F 0x00000000' scale 1.5
|
16
ansible/roles/sway/files/sway_config_files/waybar.conf
Normal file
16
ansible/roles/sway/files/sway_config_files/waybar.conf
Normal 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
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
// "height": 10, // Waybar height (to be removed for auto height)
|
// "height": 10, // Waybar height (to be removed for auto height)
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"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": {
|
"sway/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
},
|
},
|
||||||
@ -23,58 +23,5 @@
|
|||||||
"exec": "$HOME/.bin/.waybar_date",
|
"exec": "$HOME/.bin/.waybar_date",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"restart-interval": 30
|
"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": ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user