Files
dotfiles/Configs/waybar/config.jsonc
T

388 lines
9.0 KiB
JSON

{
"layer": "top",
"position": "top",
"mode": "dock",
"height": 28, // uncomment to set fixed height
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"reload_style_on_change": true,
// Positions
"modules-left": [
"custom/ws", // window icon
"custom/left1",
"hyprland/workspaces", // workspaces
"custom/right1",
"custom/paddw",
"hyprland/window" // window title
],
"modules-center": [
"custom/paddc",
"custom/left2",
"custom/cpuinfo", // temperature
"custom/left3",
"memory", // memory
"custom/left4",
"custom/cpu", // cpu
"custom/leftin1",
"custom/left5",
"idle_inhibitor", // arch logo
"custom/right2",
"custom/rightin1",
"clock#time", // time
"custom/right3",
"clock#date", // date
"custom/right4",
"custom/wifi", // connection
"custom/right5"
],
"modules-right": [
"tray", // tray
"custom/left6",
"hyprland/language", // language
"custom/left7",
"pulseaudio", // output device
"custom/left8",
"custom/backlight", // brightness
"custom/left9",
"battery", // battery
"custom/leftin2",
"custom/power" // power button
],
// Modules
"custom/ws": {
"format": "  ",
"tooltip": false,
"min-length": 3,
"max-length": 4
},
"hyprland/workspaces": {
"all-outputs": false,
"active-only": false,
"on-click": "activate",
"disable-scroll": false,
"on-scroll-up": "hyprctl dispatch workspace -1",
"on-scroll-down": "hyprctl dispatch workspace +1",
"persistent-workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": []
},
"sort-by-number": true
},
"hyprland/window": {
"format": "{}",
"separate-outputs": true,
"rewrite": {
// desktop
"": "<span foreground='#89b4fa'> </span> Hyprland",
// terminal
"sejjy@archlinux:(.*)": " $1",
"(.*)sejjy@archlinux:~": " sejjy@archlinux",
// Firefox
"(.*) — Mozilla Firefox": "<span foreground='#f38ba8'>󰈹 </span> $1",
"(.*)Mozilla Firefox": "<span foreground='#f38ba8'>󰈹 </span> Firefox",
// VSCode
"(.*) - Visual Studio Code": "<span foreground='#89b4fa'>󰨞 </span> $1",
"(.*)Visual Studio Code": "<span foreground='#89b4fa'>󰨞 </span> Visual Studio Code",
// Spotify
"(.*)Spotify": "<span foreground='#a6e3a1'> </span> Spotify",
"(.*)Spotify Premium": "<span foreground='#a6e3a1'> </span> Spotify Premium",
// Discord
"vesktop": "<span foreground='#89b4fa'> </span> Discord",
"• Discord(.*)": "Discord$1",
"(.*)Discord(.*)": "<span foreground='#89b4fa'> </span> $1Discord$2",
// OBS Studio
"OBS(.*)": "<span foreground='#a6adc8'>󰐌 </span> OBS Studio",
// VLC Media Player
"VLC media player": "<span foreground='#fab387'>󰕼 </span> VLC Media Player",
"(.*) - VLC media player": "<span foreground='#fab387'>󰕼 </span> $1",
// GIMP
"GNU Image Manipulation Program": "<span foreground='#a6adc8'> </span> GNU Image Manipulation Program",
// Godot
"Godot": "<span foreground='#89b4fa'> </span> Godot Engine",
"Godot Engine - (.*)": "<span foreground='#89b4fa'> </span> $1",
"(.*) - Godot Engine": "<span foreground='#89b4fa'> </span> $1",
// OnlyOffice
"ONLYOFFICE Desktop Editors": "<span foreground='#f38ba8'> </span> OnlyOffice Desktop",
"(.*).docx": "<span foreground='#89b4fa'> </span> $1.docx",
"(.*).xlsx": "<span foreground='#a6e3a1'> </span> $1.xlsx",
"(.*).pptx": "<span foreground='#fab387'> </span> $1.pptx",
"(.*).pdf": "<span foreground='#f38ba8'> </span> $1.pdf",
// file manager
"/": " File Manager",
// qView
"qView": " qView",
"(.*).jpg": " $1.jpg",
"(.*).png": " $1.png",
"(.*).svg": " $1.svg",
// Timeshift
"Timeshift-gtk": "<span foreground='#a6e3a1'> </span> Timeshift",
// security
"Authenticate": " Authenticate"
},
"min-length": 5,
"max-length": 45
},
"custom/cpuinfo": {
"exec": "~/.config/waybar/scripts/cpuinfo.sh",
"return-type": "json",
"format": "{}",
"tooltip": true,
"interval": 5,
"min-length": 8,
"max-length": 8
},
"memory": {
"states": { "c": 90 },
"format": "󰘚 {percentage}%",
"format-c": "󰀪 {percentage}%",
"tooltip": true,
"tooltip-format": "Memory Used: {used:0.1f} GB / {total:0.1f} GB",
"interval": 5,
"min-length": 7,
"max-length": 7
},
"custom/cpu": {
"exec": "~/.config/waybar/scripts/cpuusage.sh",
"return-type": "json",
"tooltip": true,
"interval": 5,
"min-length": 6,
"max-length": 6
},
"idle_inhibitor": {
"format": "rzx.ovh",
"tooltip": true,
"tooltip-format-activated": "Presentation Mode",
"tooltip-format-deactivated": "Idle Mode",
"start-activated": false,
"timeout": 5
},
"clock#time": {
"format": "󱑂 {:%H:%M}",
"tooltip": true,
"tooltip-format": "12-hour Format: {:%I:%M %p}",
"min-length": 8,
"max-length": 8
},
"clock#date": {
"format": "󰨳 {:%m-%d}",
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 6,
"on-click-right": "mode",
"format": { "today": "<span color='#f38ba8'><b>{}</b></span>" }
},
"actions": { "on-click-right": "mode" },
"min-length": 8,
"max-length": 8
},
"custom/wifi": {
"exec": "~/.config/waybar/scripts/wifiinfo.sh",
"return-type": "json",
"format": "{}", // in wifiinfo.sh, change "Wi-Fi" to "${essid}" to display network name
"tooltip": true,
"on-click": "~/.config/waybar/scripts/wifimenu.sh",
"interval": 1,
"min-length": 7,
"max-length": 7
},
"tray": {
"icon-size": 18,
"rotate": 0,
"spacing": 10
},
"hyprland/language": {
"format": "{}",
"format-en": "EN",
"format-ru": "RU",
"min-length": 5,
"max-length": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 {volume}%",
"format-icons": {
"headphone": "󰋋",
"default": ["󰕿", "󰖀", "󰕾"]
},
"tooltip": true,
"tooltip-format": "Device: {desc}",
"on-click": "~/.config/waybar/scripts/volumecontrol.sh -o m",
"on-scroll-up": "~/.config/waybar/scripts/volumecontrol.sh -o i",
"on-scroll-down": "~/.config/waybar/scripts/volumecontrol.sh -o d",
"min-length": 6,
"max-length": 6
},
"custom/backlight": {
"exec": "~/.config/waybar/scripts/brightnesscontrol.sh",
"return-type": "json",
"format": "{}",
"tooltip": true,
"on-scroll-up": "~/.config/waybar/scripts/brightnesscontrol.sh -o i",
"on-scroll-down": "~/.config/waybar/scripts/brightnesscontrol.sh -o d",
"interval": 1,
"min-length": 6,
"max-length": 6
},
"battery": {
"states": {
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"format-charging": "󱘖 {capacity}%",
"tooltip-format": "Time to Empty: {time}",
"tooltip-format-charging": "Time to Full: {time}",
"interval": 1,
"min-length": 6,
"max-length": 6
},
"custom/power": {
"format": " ",
"tooltip": false,
"on-click": "~/.config/waybar/scripts/logoutlaunch.sh 2",
"on-click-right": "~/.config/waybar/scripts/logoutlaunch.sh 1",
"interval": 86400
},
// Padding
"custom/paddw": {
"format": " ",
"tooltip": false
},
// adjust padding in style.css if you have a long network name
// so that the modules remain centered.
"custom/paddc": {
"format": " ",
"tooltip": false
},
// Left Arrows
"custom/left1": {
"format": "",
"tooltip": false
},
"custom/left2": {
"format": "",
"tooltip": false
},
"custom/left3": {
"format": "",
"tooltip": false
},
"custom/left4": {
"format": "",
"tooltip": false
},
"custom/left5": {
"format": "",
"tooltip": false
},
"custom/left6": {
"format": "",
"tooltip": false
},
"custom/left7": {
"format": "",
"tooltip": false
},
"custom/left8": {
"format": "",
"tooltip": false
},
"custom/left9": {
"format": "",
"tooltip": false
},
// Right Arrows
"custom/right1": {
"format": "",
"tooltip": false
},
"custom/right2": {
"format": "",
"tooltip": false
},
"custom/right3": {
"format": "",
"tooltip": false
},
"custom/right4": {
"format": "",
"tooltip": false
},
"custom/right5": {
"format": "",
"tooltip": false
},
// Left Inverse
"custom/leftin1": {
"format": "",
"tooltip": false
},
"custom/leftin2": {
"format": "",
"tooltip": false
},
// Right Inverse
"custom/rightin1": {
"format": "",
"tooltip": false
}
}