dotfiles

dotfiles - ryukamish edition
Log | Files | Refs | README

config.jsonc (5179B)


      1 {
      2 	"layer": "top",
      3 	"position": "top",
      4 	"modules-left": [
      5 		"clock",
      6 		"custom/window"
      7 	],
      8 	"modules-center": [
      9 		"sway/workspaces"
     10 	],
     11 	"modules-right": [
     12 		"custom/gsr",
     13 		"group/tray-group",
     14 		"group/brightness-group",
     15 		"group/hardware",
     16 		"network",
     17 		"custom/vpn",
     18 		"pulseaudio",
     19 		"bluetooth",
     20 		"battery"
     21 	],
     22 	"sway/workspaces": {
     23 		"all-outputs": true,
     24 		"format": "{name}"
     25 	},
     26 	"clock": {
     27 		"format": "{:%a, %b %d/%m/%y %H:%M}",
     28 		"interval": 60,
     29 		"tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>"
     30 	},
     31 	"battery": {
     32 		"interval": 60,
     33 		"max-length": 25,
     34 		"states": {
     35 			"good": 95,
     36 			"warning": 30,
     37 			"critical": 15
     38 		},
     39 		"format": "{icon} <span color='#a6adc8'>{capacity}%</span>",
     40 		"format-icons": {
     41 			"default": [
     42 				"",
     43 				"",
     44 				"",
     45 				"",
     46 				""
     47 			],
     48 			"charging": [
     49 				"󰢜",
     50 				"󰂆",
     51 				"󰂇",
     52 				"󰂈",
     53 				"󰢝",
     54 				"󰂊",
     55 				"󰂋",
     56 				"󰂅"
     57 			]
     58 		},
     59 		"format-plugged": "󰚥 <span color='#a6adc8'>{capacity}%</span>",
     60 		"format-full": "󰚥 <span color='#a6adc8'>{capacity}%</span>"
     61 	},
     62 	"bluetooth": {
     63 		"format": "󰂯 <span color='#a6adc8'>{num_connections}</span>",
     64 		"format-disabled": "󰂲 <span color='#a6adc8'>DC'D</span>",
     65 		"format-connected": "󰂯 <span color='#a6adc8'>{num_connections}</span>",
     66 		"tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%",
     67 		"on-click": "foot --app-id=TUI.float -e bluetui",
     68 		"on-click-right": "rfkill toggle bluetooth"
     69 	},
     70 	"pulseaudio": {
     71 		"format": "{icon} <span color='#a6adc8'>{volume}%</span>",
     72 		"format-bluetooth": "{icon}  <span color='#a6adc8'>{volume}%</span>",
     73 		"format-muted": "󰝟 MUTED",
     74 		"format-icons": {
     75 			"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
     76 			"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": " MUTED",
     77 			"headphone": "",
     78 			"headset": "",
     79 			"phone": "",
     80 			"phone-muted": "",
     81 			"portable": "",
     82 			"car": "",
     83 			"default": [
     84 				"",
     85 				""
     86 			]
     87 		},
     88 		"scroll-step": 5,
     89 		"tooltip-format": "{desc}",
     90 		"on-click": "pavucontrol-qt"
     91 	},
     92 	"network": {
     93 		"interface": "wlan0",
     94 		"format": "{ifname}",
     95 		"format-icons": [
     96 			"󰤟",
     97 			"󰤢",
     98 			"󰤥",
     99 			"󰤨"
    100 		],
    101 		"format-wifi": "{icon} <span color='#a6adc8'>{signalStrength}%</span>",
    102 		"format-ethernet": " {ipaddr}/<span color='#a6adc8'>{cidr}</span>",
    103 		"format-disconnected": "󰲛 DC'D",
    104 		"tooltip-format-wifi": "{icon} {essid} ({signalStrength}%)",
    105 		"tooltip-format-ethernet": " {ifname} via {gwaddr}",
    106 		"tooltip-format-disconnected": "󰲛 DC'D",
    107 		"max-length": 50,
    108 		"interval": 60,
    109 		"on-click": "foot --app-id TUI.float -e wifitui",
    110 		"on-click-right": "rfkill toggle wlan"
    111 	},
    112 	"custom/vpn": {
    113 		"format": " <span color='#a6adc8'>{}</span>",
    114 		"exec": "~/.local/bin/waybar-vpn",
    115 		"return-type": "json",
    116 		"interval": 30,
    117 		"signal": 9
    118 	},
    119 	// Hardware group
    120 	"group/hardware": {
    121 		"orientation": "horizontal",
    122 		"modules": [
    123 			"cpu",
    124 			"memory",
    125 			"temperature"
    126 		]
    127 	},
    128 	"cpu": {
    129 		"interval": 3,
    130 		"format": " {usage}%",
    131 		"max-length": 10
    132 	},
    133 	"memory": {
    134 		"interval": 30,
    135 		"format": " {}%",
    136 		"max-length": 10
    137 	},
    138 	"temperature": {
    139 		// "thermal-zone": 2,
    140 		// "hwmon-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
    141 		// "critical-threshold": 80,
    142 		// "format-critical": "{temperatureC}°C ",
    143 		"format": " {temperatureC}°C"
    144 	},
    145 	// Brightness display
    146 	"group/brightness-group": {
    147 		"orientation": "horizontal",
    148 		"drawer": {
    149 			"transition-duration": 500,
    150 			"children-class": "brightness-child",
    151 			"transition-left-to-right": false
    152 		},
    153 		"modules": [
    154 			"custom/brightness-icon",
    155 			"backlight",
    156 			"custom/brightness"
    157 		]
    158 	},
    159 	"backlight": {
    160 		"device": "intel_backlight",
    161 		"format": "{icon} {percent}%",
    162 		"tooltip-format": "Built-in: {percent}%",
    163 		"format-icons": [
    164 			"",
    165 			""
    166 		]
    167 	},
    168 	"custom/brightness-icon": {
    169 		"format": "",
    170 		"tooltip-format": ""
    171 	},
    172 	"custom/brightness": {
    173 		"format": "󰡁 <span color='#a6adc8'>{}%</span>",
    174 		"interval": "once",
    175 		"signal": 9,
    176 		"exec": "~/.local/bin/waybar-brightness get",
    177 		"on-scroll-up": "~/.local/bin/waybar-brightness up",
    178 		"on-scroll-down": "~/.local/bin/waybar-brightness down",
    179 		"on-click": "~/.local/bin/waybar-brightness left_click",
    180 		"on-click-right": "~/.local/bin/waybar-brightness right_click",
    181 		"tooltip-format": "HDMI: {}%"
    182 	},
    183 	"custom/window": {
    184 		"exec": "~/.local/bin/waybar-window",
    185 		"exec-if": "~/.local/bin/waybar-window",
    186 		"format": "<span color='#a6adc8'>{}</span>",
    187 		"return-type": "json",
    188 		"max-length": 60,
    189 		"tooltip": false,
    190 		// titles where special characters are present weren't being shown
    191 		// this solves that
    192 		"escape": true
    193 	},
    194 	"custom/gsr": {
    195 		"exec": "~/.local/bin/waybar-record",
    196 		"return-type": "json",
    197 		"tooltip": false
    198 	},
    199 	// Tray drawer group
    200 	"group/tray-group": {
    201 		"orientation": "horizontal",
    202 		"drawer": {
    203 			"transition-duration": 300,
    204 			"transition-left-to-right": true
    205 		},
    206 		"modules": [
    207 			"custom/tray-drawer",
    208 			"tray"
    209 		]
    210 	},
    211 	"custom/tray-drawer": {
    212 		"format": "",
    213 		"tooltip": false
    214 	},
    215 	"tray": {
    216 		"icon-size": 16,
    217 		"spacing": 4
    218 	}
    219 }