Some waybar stuff

This commit is contained in:
elkowar 2024-11-21 18:54:11 +01:00
parent 701fb2c2dc
commit 4ebbb35037
Signed by: ElKowar
GPG key ID: 862BA3D7D7760F13
2 changed files with 100 additions and 33 deletions

View file

@ -40,7 +40,6 @@ environment {
// GDK_BACKEND "x11" // GDK_BACKEND "x11"
} }
//
output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" { output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
mode "3440x1440@60" mode "3440x1440@60"
scale 1 scale 1
@ -48,12 +47,12 @@ output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
position x=0 y=0 position x=0 y=0
} }
output "DP-4" { //output "DP-4" {
mode "2560x1440" //mode "2560x1440"
scale 1 //scale 1
position x=0 y=0 //position x=0 y=0
off //off
} //}
output "eDP-1" { output "eDP-1" {
mode "1920x1080@60" mode "1920x1080@60"
@ -61,7 +60,7 @@ output "eDP-1" {
transform "normal" transform "normal"
position x=0 y=1440 position x=0 y=1440
} }
//
layout { layout {
gaps 16 gaps 16

View file

@ -7,6 +7,7 @@
"spacing": 4, // Gaps between modules (4px) "spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-left": [ "modules-left": [
"niri/workspaces",
"sway/workspaces", "sway/workspaces",
"sway/mode", "sway/mode",
"sway/scratchpad", "sway/scratchpad",
@ -20,6 +21,7 @@
"modules-right": [ "modules-right": [
"mpd", "mpd",
"idle_inhibitor", "idle_inhibitor",
"privacy",
"pulseaudio", "pulseaudio",
"network", "network",
"power-profiles-daemon", "power-profiles-daemon",
@ -34,6 +36,41 @@
"tray", "tray",
"custom/power" "custom/power"
], ],
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
// Named workspaces
// (you need to configure them in niri)
"browser": "",
"discord": "",
"chat": "<b></b>",
// Icons by state
"active": "",
"default": ""
}
},
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
},
// Modules configuration // Modules configuration
// "sway/workspaces": { // "sway/workspaces": {
// "disable-scroll": true, // "disable-scroll": true,
@ -66,7 +103,10 @@
"sway/scratchpad": { "sway/scratchpad": {
"format": "{icon} {count}", "format": "{icon} {count}",
"show-empty": false, "show-empty": false,
"format-icons": ["", ""], "format-icons": [
"",
""
],
"tooltip": true, "tooltip": true,
"tooltip-format": "{app}: {title}" "tooltip-format": "{app}: {title}"
}, },
@ -130,12 +170,30 @@
"critical-threshold": 80, "critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}", // "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""] "format-icons": [
"",
"",
""
]
}, },
"backlight": { "backlight": {
// "device": "acpi_video1", "device": "intel_backlight",
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"on-scroll-up": "brightnessctl s 5%+",
"on-scroll-down": "brightnessctl s 1%-",
"on-click-right": "brightnessctl s 1%",
"on-click": "brightnessctl s 50%"
}, },
"battery": { "battery": {
"states": { "states": {
@ -150,7 +208,13 @@
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
""
]
}, },
"battery#bat2": { "battery#bat2": {
"bat": "BAT2" "bat": "BAT2"
@ -190,7 +254,11 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": [
"",
"",
""
]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },