aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/waybar/modules.json
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.config/waybar/modules.json')
-rw-r--r--dotfiles/.config/waybar/modules.json168
1 files changed, 168 insertions, 0 deletions
diff --git a/dotfiles/.config/waybar/modules.json b/dotfiles/.config/waybar/modules.json
new file mode 100644
index 0000000..2c93756
--- /dev/null
+++ b/dotfiles/.config/waybar/modules.json
@@ -0,0 +1,168 @@
+{
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+ "mpris": {
+ "format": "{status_icon} {artist} - {title}",
+ "format-stopped": "{status_icon} - ",
+ "status-icons": {
+ "stopped": "",
+ "paused": "",
+ "playing": "<span color=\"#5b8277\"></span>"
+ },
+ "artist-len": 25,
+ "title-len": 40
+ },
+ "tray": {
+ "icon-size": 16,
+ "spacing": 10
+ },
+ "clock": {
+ "format": "{:%Y年%m月%d日 %H:%M:%S}",
+ "tooltip-format": "{calendar}",
+ "calendar": {
+ "mode": "year",
+ "mode-mon-col": 3
+ },
+ "interval": 1
+ },
+ "cpu": {
+ "format": "<span color=\"#e0d8b3\"></span> {load}%",
+ "interval": 2
+ },
+ "memory": {
+ "format": "<span color=\"#e0d8b3\"> </span> {used:0.3f}G",
+ "states": {
+ "warning": 90
+ },
+ "interval": 10
+ },
+ "temperature": {
+ // "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 80,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "{temperatureC}°C {icon}",
+ "format-icons": ["", "", ""]
+ },
+ "backlight": {
+ // "device": "acpi_video1",
+ "format": "<span color=\"#5b8277\">{icon}</span> {percent}%",
+ "format-icons": ["", ""]
+ },
+ "battery#bat0": {
+ "bat": "BAT0",
+ "format": "{icon} {capacity}%",
+ "format-charging": " <span color=\"#5b8277\"></span> {capacity}%",
+ "format-plugged": "<span color=\"#5b8277\"></span> {capacity}%",
+ "format-icons": [
+ "<span color=\"#b73030\"></span>",
+ "<span color=\"#b2872f\"></span>",
+ "<span color=\"#5b8277\"></span>",
+ "<span color=\"#5b8277\"></span>",
+ "<span color=\"#5b8277\"></span>"
+ ]
+ },
+ "battery#bat1": {
+ "bat": "BAT1",
+ "format": "{icon} {capacity}%",
+ "format-charging": " <span color=\"#5b8277\"></span> {capacity}%",
+ "format-plugged": "<span color=\"#5b8277\"></span> {capacity}%",
+ "format-icons": [
+ "<span color=\"#b73030\"></span>",
+ "<span color=\"#b2872f\"></span>",
+ "<span color=\"#5b8277\"></span>",
+ "<span color=\"#5b8277\"></span>",
+ "<span color=\"#5b8277\"></span>"
+ ]
+ },
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "format-wifi": "<span color=\"#5b8277\"></span> {essid}",
+ "format-ethernet": "<span color=\"#5b8277\"></span> {ifname}",
+ "format-linked": "<span color=\"#5b8277\"></span> {ifname}",
+ "format-disconnected": " disconnected",
+ "format-alt": "{ifname}: {ipaddr}/{cidr}",
+ "tooltip-format": "{ifname}: {ipaddr}/{cidr}"
+ },
+ "wireplumber": {
+ "scroll-step": 2, // %, can be a float
+ "format": "<span color=\"#5b8277\">{icon}</span> {volume}%",
+ "format-bluetooth": "<span color=\"#5b8277\">{icon}</span> {volume}% {format_source}",
+ "format-muted": "<span color=\"#b2872f\"></span>",
+ "format-source": "{volume}% ",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "handsfree": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
+ },
+ "on-click": "$TERMINAL -e ncpamixer"
+ },
+ "custom/rec-status": {
+ "format": "<span color=\"#5b8277\">{}</span>",
+ "signal": 5,
+ "interval": "once",
+ "exec": "barrecstatus"
+ },
+ "custom/torrent-status": {
+ "format": "<span color=\"#e0d8b3\">{}</span>",
+ "signal": 10,
+ "interval": "once",
+ "exec": "bartorrentstatus"
+ },
+ "custom/mail-status": {
+ "format": "<span color=\"#e0d8b3\">󰺻 </span>{}",
+ "signal": 9,
+ "interval": "once",
+ "exec": "barmailstatus",
+ "tooltip": false
+ },
+ "custom/pac-status": {
+ "format": " {}",
+ "signal": 7,
+ "interval": "once",
+ "exec": "barpacstatus"
+ },
+ "custom/news-status": {
+ "format": " {}",
+ "signal": 8,
+ "interval": "once",
+ "exec": "barnewsstatus",
+ "tooltip": false
+ },
+ "custom/weather": {
+ "format": "{}",
+ "interval": 180,
+ "exec": "barweather"
+ },
+ "custom/ds4battery": {
+ "format": "🎮 {}",
+ "interval": 180,
+ "exec": "bards4battery"
+ },
+ "custom/batwatt": {
+ "return-type": "json",
+ "interval": 10,
+ "exec-if": "test -e /sys/class/power_supply/BAT0",
+ "exec": "barbatwatt",
+ "exec-on-event": true,
+ "on-click": ""
+ },
+ "custom/swaykbd": {
+ "format": "{}",
+ "exec": "swaykbd",
+ "tooltip": false
+ },
+ "niri/language": {
+ "on-click": "niri msg action switch-layout next",
+ "on-click-right": "niri msg action switch-layout prev",
+ "format-en": " 🇺🇸 ",
+ "format-es": " 🇲🇽 ",
+ "format-ru": " 🇷🇺 "
+ },
+}