dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

config (4558B)


      1 {
      2     "height": 30, // Waybar height (to be removed for auto height)
      3     "modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
      4     // TODO: The 'clock' module is currently unavailable on Debian; eliminate
      5     // 'custom/clock' when resolved.
      6     "modules-right": ["pulseaudio", "network", "sway/language", "custom/clock", "clock", "tray"],
      7     "sway/mode": {
      8         "format": "<span style=\"italic\">{}</span>"
      9     },
     10     "mpd": {
     11         "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
     12         "format-disconnected": "Disconnected ",
     13         "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
     14         "unknown-tag": "N/A",
     15         "interval": 2,
     16         "consume-icons": {
     17             "on": " "
     18         },
     19         "random-icons": {
     20             "off": "<span color=\"#f53c3c\"></span> ",
     21             "on": " "
     22         },
     23         "repeat-icons": {
     24             "on": " "
     25         },
     26         "single-icons": {
     27             "on": "1 "
     28         },
     29         "state-icons": {
     30             "paused": "",
     31             "playing": ""
     32         },
     33         "tooltip-format": "MPD (connected)",
     34         "tooltip-format-disconnected": "MPD (disconnected)"
     35     },
     36     "idle_inhibitor": {
     37         "format": "{icon}",
     38         "format-icons": {
     39             "activated": "",
     40             "deactivated": ""
     41         }
     42     },
     43     "tray": {
     44         // "icon-size": 21,
     45         "spacing": 10
     46     },
     47     "custom/clock": {
     48       "exec": "LC_TIME=ja_JP.UTF8 date +'%Y-%m-%d (%a) %H:%M'",
     49       "interval": 1,
     50     },
     51     "clock": {
     52         "timezone": "America/Vancouver",
     53         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
     54         "format": "{:%Y-%m-%d %H:%M (%a)}",
     55         "format-alt": "{:%Y-%m-%d}",
     56         "locale": "ja_JP.UTF-8",
     57     },
     58     "cpu": {
     59         "format": "{usage}% ",
     60         "tooltip": false
     61     },
     62     "memory": {
     63         "format": "{}% "
     64     },
     65     "temperature": {
     66         // "thermal-zone": 2,
     67         // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
     68         "critical-threshold": 80,
     69         // "format-critical": "{temperatureC}°C {icon}",
     70         "format": "{temperatureC}°C {icon}",
     71         "format-icons": ["", "", ""]
     72     },
     73     "backlight": {
     74         // "device": "acpi_video1",
     75         "format": "{percent}% {icon}",
     76         "format-icons": ["", ""]
     77     },
     78     "battery": {
     79         "states": {
     80             // "good": 95,
     81             "warning": 30,
     82             "critical": 15
     83         },
     84         "format": "{capacity}% {icon}",
     85         "format-charging": "{capacity}% ",
     86         "format-plugged": "{capacity}% ",
     87         "format-alt": "{time} {icon}",
     88         // "format-good": "", // An empty format will hide the module
     89         // "format-full": "",
     90         "format-icons": ["", "", "", "", ""]
     91     },
     92     "battery#bat2": {
     93         "bat": "BAT2"
     94     },
     95     "network": {
     96         // "interface": "wlp2*", // (Optional) To force the use of this interface
     97         "format-wifi": "{essid} ({signalStrength}%) ",
     98         "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
     99         "format-linked": "{ifname} (No IP) ",
    100         "format-disconnected": "Disconnected ⚠",
    101         "format-alt": "{ifname}: {ipaddr}/{cidr}"
    102     },
    103     "pulseaudio": {
    104         // "scroll-step": 1, // %, can be a float
    105         "format": "{volume}% {icon} {format_source}",
    106         "format-bluetooth": "{volume}% {icon} {format_source}",
    107         "format-bluetooth-muted": " {icon} {format_source}",
    108         "format-muted": " {format_source}",
    109         "format-source": "{volume}% ",
    110         "format-source-muted": "",
    111         "format-icons": {
    112             "headphone": "",
    113             "hands-free": "",
    114             "headset": "",
    115             "phone": "",
    116             "portable": "",
    117             "car": "",
    118             "default": ["", "", ""]
    119         },
    120         "on-click": "pavucontrol"
    121     },
    122     "custom/media": {
    123         "format": "{icon} {}",
    124         "return-type": "json",
    125         "max-length": 40,
    126         "format-icons": {
    127             "spotify": "",
    128             "default": "🎜"
    129         },
    130         "escape": true,
    131         "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
    132         // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
    133     }
    134 }