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,21 +208,27 @@
"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"
}, },
"power-profiles-daemon": { "power-profiles-daemon": {
"format": "{icon}", "format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}", "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true, "tooltip": true,
"format-icons": { "format-icons": {
"default": "", "default": "",
"performance": "", "performance": "",
"balanced": "", "balanced": "",
"power-saver": "" "power-saver": ""
} }
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
@ -190,7 +254,11 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": [
"",
"",
""
]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
@ -207,15 +275,15 @@
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}, },
"custom/power": { "custom/power": {
"format" : "⏻ ", "format": "⏻ ",
"tooltip": false, "tooltip": false,
"menu": "on-click", "menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": { "menu-actions": {
"shutdown": "shutdown", "shutdown": "shutdown",
"reboot": "reboot", "reboot": "reboot",
"suspend": "systemctl suspend", "suspend": "systemctl suspend",
"hibernate": "systemctl hibernate" "hibernate": "systemctl hibernate"
} }
} }
} }