aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-17 10:02:19 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-17 10:02:19 +0200
commita92a6fe86a8115433fa1a8393157f0fad091d2b7 (patch)
tree10b5a0e8d6c60143a108cc937bef4e90bae4ad60
parent4e4207487b0863aa3a7d9b740b0428db7992eb11 (diff)
downloadmyconfigs-a92a6fe86a8115433fa1a8393157f0fad091d2b7.tar.gz
myconfigs-a92a6fe86a8115433fa1a8393157f0fad091d2b7.tar.bz2
myconfigs-a92a6fe86a8115433fa1a8393157f0fad091d2b7.zip
waybar: reformat
-rw-r--r--config/sway/theme4
-rw-r--r--config/waybar/config.jsonc237
2 files changed, 126 insertions, 115 deletions
diff --git a/config/sway/theme b/config/sway/theme
index bc94718..0a92187 100644
--- a/config/sway/theme
+++ b/config/sway/theme
@@ -8,4 +8,6 @@ client.focused_inactive #2e3440 #1f222d #888888 #1f222d
client.placeholder #2e3440 #1f222d #888888 #1f222d
client.urgent #900000 #900000 #ffffff #900000
-seat seat0 xcursor_theme Nordzy-cursors
+seat seat0 {
+ xcursor_theme Nordzy-cursors
+}
diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc
index 5726dd0..4d921a3 100644
--- a/config/waybar/config.jsonc
+++ b/config/waybar/config.jsonc
@@ -1,119 +1,128 @@
{
- // TODO gpu
- "ipc": true,
- "reload_style_on_change": true,
-"modules-left": ["sway/language", "sway/workspaces", "sway/mode", "privacy", "systemd-failed-units"],
- "modules-center": ["group/clock", "custom/email","mpd"],
- "modules-right": ["wireplumber", "cpu", "memory", "disk#root", "disk#home", "network", "group/hardware", "tray"],
- "group/clock": {
- "orientation": "horizontal",
- "modules": [
- "clock", "idle_inhibitor"
- ],
- "drawer": { }
- },
- "group/hardware": {
- "orientation": "horizontal",
- "modules": [
- //"battery", "backlight", "bluetooth",
- "temperature"
- ],
- "drawer": { }
- },
+ "ipc": true,
+ "reload_style_on_change": true,
+ "modules-left": [
+ "sway/language",
+ "sway/workspaces",
+ "sway/mode",
+ "privacy",
+ "systemd-failed-units"
+ ],
+ "modules-center": [
+ "group/clock",
+ "custom/email",
+ "mpd"
+ ],
+ "modules-right": [
+ "wireplumber",
+ "cpu",
+ "memory",
+ "temperature",
+ "disk#root",
+ "disk#home",
+ "network",
+ "group/hardware",
+ "tray"
+ ],
- "cpu": {
- "interval": 2,
- "format": "{usage}% "
- },
- "memory": {
- "interval": 10,
- "format": "{used}/{total}GiB "
- },
- "disk#root": {
- "format": "/ {free}",
- "path": "/"
- },
- "disk#home": {
- "format": "/home2 {free}",
- "path": "/home2"
- },
- "clock": {
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format": "{:%F %T}",
- "format-alt": "{:%F %T}",
- "interval": 1
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "󰔡",
- "deactivated": "󰔢"
- }
- },
- "wireplumber": {
- "format": "{volume}% {icon}",
- "format-muted": "Muted 󰓄",
- "format-icons": ["󰓃", "", ""],
- "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
- },
+ "group/clock": {
+ "orientation": "horizontal",
+ "modules": [
+ "clock",
+ "idle_inhibitor"
+ ],
+ "drawer": {}
+ },
+ "group/hardware": {
+ "orientation": "horizontal",
+ "modules": [
+ "battery",
+ "backlight",
+ "bluetooth"
+ ],
+ "drawer": {}
+ },
- "network": {
- "format": "󰈀 {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}",
- "format-wifi": " {essid}({signalStrength}%) {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}",
- "tooltip-format": "{ifname} via {gwaddr} ↑{bandwidthUpBytes} ↓{bandwidthDownBytes}",
- "interval": 1
- },
-
- "battery": {
- "format": "{capacity}% {icon}",
- "format-icons": ["", "", "", "", ""]
- },
- "temperature": {
- "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
- "critical-threshold": 80,
- "format-critical": "{temperatureC}°C ",
- "format": "{temperatureC}°C "
- },
- "bluetooth": {
- "format": " {status}",
- "format-disabled": "", // an empty format will hide the module
- "format-connected": " {num_connections} connected",
- "tooltip-format": "{controller_alias}\t{controller_address}",
- "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
- "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
- },
-
- "mpd": {
- "format-stopped": "",
- "format-paused": "{album} - {artist} - {title}",
- "on-click": "mpc toggle >/dev/null",
- "on-click-right": "mpc stop >/dev/null",
- "on-click-backward": "mpc prev >/dev/null",
- "on-click-forward": "mpc next >/dev/null"
- },
- "privacy": {
- "icon-spacing": 4,
- "icon-size": 12,
- "transition-duration": 250,
- "modules": [
- {
- "type": "screenshare",
- "tooltip": true,
- "tooltip-icon-size": 24
- },
- {
- "type": "audio-in",
- "tooltip": true,
- "tooltip-icon-size": 24
- }
- ]
- },
-
- "custom/email": {
- "exec": "~/.config/waybar/email.sh",
- "interval": 30,
- "signal": 13
- }
-}
+ "cpu": {
+ "interval": 2,
+ "format": "{usage}% "
+ },
+ "memory": {
+ "interval": 10,
+ "format": "{used}/{total}GiB "
+ },
+ "disk#root": {
+ "format": "/ {free}",
+ "path": "/"
+ },
+ "disk#home": {
+ "format": "/home2 {free}",
+ "path": "/home2"
+ },
+ "clock": {
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format": "{:%F %T}",
+ "format-alt": "{:%F %T}",
+ "interval": 1
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "󰔡",
+ "deactivated": "󰔢"
+ }
+ },
+ "wireplumber": {
+ "format": "{volume}% {icon}",
+ "format-muted": "Muted 󰓄",
+ "format-icons": [ "󰓃"],
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
+ },
+ "network": {
+ "format": "󰈀 {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}",
+ "format-wifi": " {essid}({signalStrength}%) {ipaddr}/{cidr} ⇅{bandwidthTotalBytes}",
+ "tooltip-format": "{ifname} via {gwaddr} ↑{bandwidthUpBytes} ↓{bandwidthDownBytes}",
+ "interval": 1
+ },
+ "battery": {
+ "format": "{capacity}% {icon}",
+ "format-icons": ["", "", "", "", "" ]
+ },
+ "temperature": {
+ "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
+ "critical-threshold": 85,
+ "format-critical": "{temperatureC}°C ",
+ "format": "{temperatureC}°C "
+ },
+ "bluetooth": {
+ "format": " {status}",
+ "format-disabled": "",
+ "format-connected": " {num_connections} connected",
+ "tooltip-format": "{controller_alias}\t{controller_address}",
+ "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
+ "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
+ },
+ "mpd": {
+ "format-stopped": "",
+ "format-paused": "{album} - {artist} - {title}",
+ "on-click": "mpc toggle >/dev/null",
+ "on-click-right": "mpc stop >/dev/null",
+ "on-click-backward": "mpc prev >/dev/null",
+ "on-click-forward": "mpc next >/dev/null"
+ },
+ "privacy": {
+ "icon-spacing": 4,
+ "icon-size": 12,
+ "transition-duration": 250,
+ "modules": [
+ {"type": "screenshare", "tooltip": true, "tooltip-icon-size": 24},
+ {"type": "audio-in", "tooltip": true, "tooltip-icon-size": 24}
+ ]
+ },
+ "custom/email": {
+ "exec": "~/.config/waybar/email.sh",
+ "interval": 30,
+ "signal": 13
+ }
}