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

View file

@ -7,6 +7,7 @@
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"niri/workspaces",
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
@ -20,6 +21,7 @@
"modules-right": [
"mpd",
"idle_inhibitor",
"privacy",
"pulseaudio",
"network",
"power-profiles-daemon",
@ -34,6 +36,41 @@
"tray",
"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
// "sway/workspaces": {
// "disable-scroll": true,
@ -66,7 +103,10 @@
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"format-icons": [
"",
""
],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
@ -130,12 +170,30 @@
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
"format-icons": [
"",
"",
""
]
},
"backlight": {
// "device": "acpi_video1",
"device": "intel_backlight",
"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": {
"states": {
@ -150,7 +208,13 @@
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
"format-icons": [
"",
"",
"",
"",
""
]
},
"battery#bat2": {
"bat": "BAT2"
@ -190,7 +254,11 @@
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol"
},
@ -207,7 +275,7 @@
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format" : "⏻ ",
"format": "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder