]
},
"on-click": "~/.config/waybar/scripts/sound-source.sh",
- "on-click-middle": "helvum",
- "on-click-right": "pavucontrol",
+ "on-click-right": "hyprpwcenter",
"on-scroll-up": "~/.local/bin/wp+",
"on-scroll-down": "~/.local/bin/wp-"
},
"deactivated": " off"
}
},
- "custom/hyprsunset-brightness": {
- "format": "<span size='12pt'></span> {}%",
- "on-click": "~/.config/hypr/scripts/hyprsunset.sh brightness 60 toggle",
- "on-click-right": "hyprctl hyprsunset identity",
- "on-scroll-up": "~/.config/hypr/scripts/hyprsunset.sh brightness +10",
- "on-scroll-down": "~/.config/hypr/scripts/hyprsunset.sh brightness -10",
- "exec": "~/.config/hypr/scripts/hyprsunset.sh brightness",
- "exec-on-event": false,
- "exec-if": "pidof hyprsunset",
- "interval": "once",
- "tooltip": false,
- "signal": 3,
- },
- "custom/hyprsunset-temperature": {
- "format": "<span size='12pt'></span> {}K",
- "on-click": "~/.config/hypr/scripts/hyprsunset.sh temperature 4500 toggle",
- "on-click-right": "hyprctl hyprsunset identity",
- "on-scroll-up": "~/.config/hypr/scripts/hyprsunset.sh temperature +500",
- "on-scroll-down": "~/.config/hypr/scripts/hyprsunset.sh temperature -500",
- "exec": "~/.config/hypr/scripts/hyprsunset.sh temperature",
- "exec-on-event": false,
- "exec-if": "pidof hyprsunset",
- "interval": "once",
- "tooltip": false,
- "signal": 4,
+ "custom/sunsetr": {
+ "exec": "sunsetr status --json --follow | jq --unbuffered --compact-output 'if .event_type == \"preset_changed\" then {text: \"\\(.target_temp)K\", alt: .target_period, tooltip: \"Preset: \\(.to_preset // \"default\")\\nTarget: \\(.target_temp)K @ \\(.target_gamma)%\"} elif .event_type == \"state_applied\" then {text: \"\\(.current_temp)K\", alt: .period, tooltip: \"Period: \\(.period)\\nTemp: \\(.current_temp)K @ \\(.current_gamma)%\"} else empty end'",
+ "return-type": "json",
+ "format": "{icon} {text}",
+ "format-icons": {
+ "day": "",
+ "night": "",
+ "sunset": "",
+ "sunrise": "",
+ "static": ""
},
+ "on-click": "sunsetr preset gamemode",
+ "on-click-right": "sunsetr preset night",
+ "on-scroll-up": "",
+ "on-scroll-down": "",
+ },
"group/trayclock": {
"orientation": "inherit",
"modules": [
"group/sndpwr": {
"orientation": "inherit",
"modules": [
- "wireplumber",
- "gamemode",
+ "wireplumber",
+ "gamemode",
"power-profiles-daemon"
]
},
"orientation": "inherit",
"modules": [
"idle_inhibitor",
- "custom/hyprsunset-brightness",
- "custom/hyprsunset-temperature",
+ "custom/sunsetr",
"hyprland/language"
]
},
"format": "{text}",
"return-type": "json",
"on-click": "playerctl play-pause"
- },
+ },
"custom/pipespacer": {
"format": "",
"max-length": 1,