nixos-config/dotfiles/waybar/config.jsonc
2025-01-13 20:11:38 +03:00

134 lines
2.8 KiB
Text

{
"layer": "top",
"spacing": 0,
"height": 20,
"margin-top": 0,
"margin-right": 3,
"margin-bottom": 0,
"margin-left": 3,
"position": "top",
"modules-left": [
"custom/appmenu",
"wlr/taskbar",
"niri/workspaces",
"custom/wallpaper"
],
"modules-center": [
"niri/window"
],
"modules-right": [
"network",
"cpu",
"memory",
"battery",
"pulseaudio",
"custom/cliphist",
"tray",
"clock",
"custom/exit"
],
"disable-scroll": true,
"tray": {
"icon-size": 16,
"spacing": 8,
"tooltip": false
},
"clock": {
"format": "{:%a %d %b %H:%M}",
"tooltip": false
},
"cpu": {
"format": " {usage}%",
"interval": 2,
"states": {
"critical": 90
},
"on-click": "kitty btop"
},
"memory": {
"format": " {percentage}%",
"interval": 2,
"states": {
"critical": 80
},
"on-click": "kitty btop"
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
],
"interval": 6,
"states": {
"warning": 30,
"critical": 10
},
"tooltip": false
},
"network": {
"format-wifi": "󰀂 {bandwidthDownBits}",
"format-ethernet": " {bandwidthDownBits}",
"format-disconnected": "󰲜",
"interval": 5,
"tooltip": false
},
"pulseaudio": {
"scroll-step": 1,
"max-volume": 100,
"format": "󰕾 {volume}%",
"format-bluetooth": "󱄠 {volume}%",
"nospacing": 1,
"on-click": "pavucontrol",
"tooltip": false
},
"niri/window": {
"format": "{}",
"icon": true,
"icon-size": 16,
"rewrite": {
// Truncate any format over 64 characters.
"^(.{64}).+$": "$1…"
}
},
"custom/wallpaper": {
"format": "",
"on-click": "bash ~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper &",
//"on-click-right": "~/.config/hypr/scripts/wallpaper-effects.sh",
"tooltip-format": "Changer de fond d'écran"
},
// Rofi Application Launcher
"custom/appmenu": {
"format": "Apps",
"on-click": "rofi -show drun -replace",
//"on-click-right": "~/.config/hypr/scripts/keybindings.sh",
"tooltip": false
},
// Power Menu
"custom/exit": {
"format": "",
"on-click": "wlogout",
"on-click-right": "swaylock",
"tooltip": false
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 16,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-right": "close",
"ignore-list": [],
"app_ids-mapping": {},
"rewrite": {}
},
"custom/cliphist": {
"format": "",
"on-click": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh",
"on-click-right": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh d",
"on-click-middle": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh w",
"tooltip": false
},
}