105 lines
2.8 KiB
Text
105 lines
2.8 KiB
Text
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"exclusive": true,
|
|
"passthrough": false,
|
|
"fixed-center": true,
|
|
"gtk-layer-shell": true,
|
|
"height": 35,
|
|
"modules-left": [
|
|
"hyprland/workspaces",
|
|
"tray"
|
|
],
|
|
"modules-center": [],
|
|
"modules-right":[
|
|
"battery",
|
|
"backlight",
|
|
"pulseaudio#microphone",
|
|
"pulseaudio",
|
|
"network",
|
|
"bluetooth",
|
|
"clock#date",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
"hyprland/workspaces": {
|
|
"on-click": "activate",
|
|
"format": "{name}",
|
|
"all-outputs": true,
|
|
"disable-scroll": true,
|
|
"active-only": false
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"custom/power": { // Todo : power-menu
|
|
"tooltip": false,
|
|
"on-click": "wlogout",
|
|
"format": ""
|
|
},
|
|
"clock": {
|
|
"tooltip": false,
|
|
"format": " {:%H:%M}"
|
|
},
|
|
"clock#date": {
|
|
"format": " {:%a %d %b}",
|
|
"tooltip-format" :"<big>{:%Y %B}</big><tt><small>{calendar}</small></tt>"
|
|
},
|
|
"backlight": {
|
|
"tooltip": false,
|
|
"format": " {percent}%",
|
|
// "format": "{icon} {percent}%",
|
|
// "format-icons": ["","","","","","",""],
|
|
"on-scroll-up": "brightnessctl s 1%+ > /dev/null",
|
|
"on-scroll-down": "brightnessctl s 1%- > /dev/null"
|
|
},
|
|
"battery": { // Todo : rajouter un clique to time
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"tooltip-format": "{timeTo}, {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} {icon}", // A quoi ça sert ?
|
|
"format-icons": ["","","","","","","","","","",""]
|
|
},
|
|
"network": {
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": " {ipaddr}/{cidr}",
|
|
"format-disconnected": "",
|
|
"format-alt": "{ipaddr}"
|
|
},
|
|
"bluetooth" : {
|
|
"format": " {status}",
|
|
"format-on": "",
|
|
"format-off": "",
|
|
"format-connected": " {device_alias}",
|
|
"on-click": "bluetooth_toggle.sh",
|
|
"on-click-middle": "bluetoothctl power on ;bluetoothctl connect EC:81:93:59:71:AE"
|
|
},
|
|
"pulseaudio":{
|
|
"tooltip":false,
|
|
"format":"{icon} {volume}%",
|
|
"format-muted":"",
|
|
"format-icons":{"default":["","",""]},
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
|
"on-click-middle":"pavucontrol",
|
|
"on-scroll-up":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.0",
|
|
"on-scroll-down":"wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
|
|
},
|
|
"pulseaudio#microphone": { // Todo : +100% quand scrolll
|
|
"tooltip": false,
|
|
"format": "{format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
|
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 2%+ -l 1.0",
|
|
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 2%-"
|
|
}
|
|
}
|