diff options
Diffstat (limited to 'config/waybar/config.horizontal')
-rw-r--r-- | config/waybar/config.horizontal | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/config/waybar/config.horizontal b/config/waybar/config.horizontal new file mode 100644 index 0000000..e46b9a6 --- /dev/null +++ b/config/waybar/config.horizontal @@ -0,0 +1,195 @@ +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height": 45, // Waybar height (to be removed for auto height) + "spacing": 0, // Gaps between modules (4px) + "modules-left": ["custom/arch", "tray", "hyprland/workspaces", "sway/mode", "hyprland/special", "custom/media"], + "modules-center": ["pulseaudio", "network", "cpu", "memory", "temperature", "keyboard-state", "battery", "battery#bat2"], + // "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["clock", "clock#date"], + // Modules configuration + "hyprland/workspaces": { + "format": "<span size='large' rise='-1000'>{icon}</span><span size='x-small' rise='1300' fgalpha='60%'>{name}</span>", + "format-icons": { + "1": " ", + "2": " ", + "3": " ", + "4": " ", + "8": " ", + "9": " ", + "10": " ", + "urgent": " ", + "focused": " ", + "default": " " + } + }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "sway/window": { + "max-length": 55 + }, + "hyprland/window": { + "max-length": 55, + "tooltip": true + }, +"sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 2, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": "<span color=\"#f53c3c\"></span> ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + "format": " {:%H:%M}", + // "timezone": "America/New_York", + "tooltip-format": "{:%H:%M:%S}", + "format-alt": " {:%H:%M:%S}", + "interval": 1 + }, + "clock#date": { + "format": " {:%d/%m/%y}", + "tooltip-format": "<big>{:%d %B}</big>\n<tt><small>{calendar}</small></tt>", + "format-alt": " {:%A, %d %B %Y}", + "interval": 30 + }, + "cpu": { + "format": " {usage}%", + "interval": 5, + }, + "memory": { + "format": " {}%", + "interval": 10, + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{icon} {temperatureC}°C", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{icon} {time}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": " {signalStrength}%", + "format-ethernet": "{ipaddr}/{cidr}", + "tooltip-format": "Interface: {ifname}\nSSID: {essid}\nIP Address: {ipaddr}\nGateway: {gwaddr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": " {ifname}", + "format-alt": " {ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{icon} {volume}%", + "format-bluetooth": " {volume}%", + "format-bluetooth-muted": " {volume}%", + "format-muted": " {volume}%", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {}", + "return-type": "json", + "max-length": 20, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/alsa": { + "format": " {}", + "exec": "amixer get Master | grep -o [0-9]*%", + "interval": 1 + }, + "custom/arch": { + "format": "", + "tooltip": true, + "tooltip-format": "i use arch btw", + "on-click": "~/Scripts/rofi-power.sh" + }, + "custom/sep": { + "format": "<span fgalpha='50%'>|</span>" + } +} + |