chore: mess with waybar for the laptop configuration

This commit is contained in:
Ahwx 2025-05-09 03:44:17 +02:00
parent b9e2e56206
commit 1f302adc0f
2 changed files with 480 additions and 395 deletions

View file

@ -22,461 +22,495 @@
home.file = { home.file = {
"/home/${username}/.config/waybar/config" = { "/home/${username}/.config/waybar/config" = {
text = '' text = ''
[{ [{
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"modules-left": [ "modules-left": [
"privacy", "privacy",
"group/network", "network",
"custom/spotify", "custom/vpn",
"tray", "custom/spotify",
], "custom/devices",
"tray",
],
"modules-center": [ "modules-center": [
"hyprland/workspaces", "hyprland/workspaces",
], ],
"modules-right": [ "modules-right": [
"custom/yubikey#icon", "custom/yubikey#icon",
"custom/yubikey#data", "custom/yubikey#data",
"group/hardware", "group/hardware",
"group/resources", "group/resources",
"bluetooth", "bluetooth",
// "wireplumber", // "wireplumber",
"group/audio", "group/audio",
"battery", "group/battery",
"group/clock" "group/clock"
], ],
"hyprland/window": { "hyprland/window": {
"format": "{}", "format": "{}",
"rewrite": { "rewrite": {
"(.*) - zsh": "> [$1]" "(.*) - zsh": "> [$1]"
}, },
"separate-outputs": true "separate-outputs": true
}, },
"sway/workspaces": { "sway/workspaces": {
"all-outputs": true, "all-outputs": true,
"disable-scroll": true, "disable-scroll": true,
"format": "{name}" "format": "{name}"
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"all-outputs": true, "all-outputs": true,
"disable-scroll": true, "disable-scroll": true,
"format": "{name}" "format": "{name}"
}, },
"group/network": { // "group/network": {
"orientation": "horizontal", // "orientation": "horizontal",
"modules": [ // "modules": [
"network", // "network",
"custom/vpn", // "custom/vpn",
], // ],
"drawer": { // "drawer": {
"transition-left-to-right": true, // "transition-left-to-right": true,
"transition-duration": 500 // "transition-duration": 500
} // }
}, // },
"network": { "network": {
"format": "󰈀 {ifname}", "format": "󰈀 {ifname}",
"format-wifi": " {ipaddr}/{cidr} <span color='#aaaaaa'>{signalStrength}%</span>", "format-wifi": " {ipaddr}/{cidr} <span color='#aaaaaa'>{signalStrength}%</span>",
"format-ethernet": "󰈀 {ipaddr}/{cidr}", "format-ethernet": "󰈀 {ipaddr}/{cidr}",
"format-disconnected": "󰈂", "format-disconnected": "󰈂",
"tooltip-format": "{ifname} via {gwaddr}", "tooltip-format": "{ifname} via {gwaddr}",
"tooltip-format-wifi": "{essid} ({signalStrength}%)", "tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}", "tooltip-format-ethernet": "{ifname}",
"tooltip-format-disconnected": "Disconnected" "tooltip-format-disconnected": "Disconnected"
}, },
"custom/spotify": { "custom/vpn": {
"interval": 1, "format": "{icon}",
"return-type": "json", "tooltip-format": "{text}",
"exec": "~/.local/bin/waybar-music", "format-icons": [ "","" ],
"on-click": "playerctl play-pause", "return-type": "json",
"escape": true "exec": "~/.local/bin/waybar-vpn",
}, "interval": 30
},
// "custom/vpn": { "custom/spotify": {
// "format": "{icon} VPN <span color='#aaaaaa'>{}</span>", "interval": 5,
// "format-icons": { "return-type": "json",
// "connected": "", "exec": "~/.local/bin/waybar-music",
// "disconnected": "" "on-click": "playerctl play-pause",
// }, "escape": true
// "return-type": "json", },
// "exec": "/usr/local/bin/waybar-vpn current",
// "on-click": "/usr/local/bin/waybar-vpn connect",
// "on-click-middle": "/usr/local/bin/waybar-vpn disconnect",
// "on-click-right": "/usr/local/bin/get-public-ip-info",
// "interval": 30
// },
"privacy": { "custom/devices": {
"icon-spacing": 8, "interval": 60,
"icon-size": 14, // "return-type": "json",
"transition-duration": 250, "exec": "~/.local/bin/waybar-devices",
"modules": [ },
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
},
"tray": { "privacy": {
"icon-size": 12, "icon-spacing": 8,
"spacing": 0 "icon-size": 14,
}, "transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
},
"sway/mode": { "tray": {
"format": " {}", "icon-size": 12,
"tooltip": false "spacing": 0
}, },
"custom/yubikey#icon": { "sway/mode": {
"exec": "~/.local/bin/waybar-yubikey 0", "format": " {}",
"return-type": "json" "tooltip": false
}, },
"custom/yubikey#data": { "custom/yubikey#icon": {
"exec": "~/.local/bin/waybar-yubikey 1", "exec": "~/.local/bin/waybar-yubikey 0",
"return-type": "json" "return-type": "json"
}, },
"group/hardware": { "custom/yubikey#data": {
"orientation": "horizontal", "exec": "~/.local/bin/waybar-yubikey 1",
"modules": [ "return-type": "json"
"cpu", },
"temperature#cpu",
"temperature#gpu",
"temperature#nvme",
"temperature#wifi"
],
"drawer": {
"transition-left-to-right": false,
"transition-duration": 500
}
},
"cpu": { "group/hardware": {
"interval": 30, "orientation": "horizontal",
"format": " {avg_frequency:3.2f}GHz <span color='#aaaaaa'>{usage}%</span>", "modules": [
"states": { "cpu",
"warning": 70, "temperature#cpu",
"critical": 90 "temperature#gpu",
}, "temperature#nvme",
}, "temperature#wifi"
],
"drawer": {
"transition-left-to-right": false,
"transition-duration": 500
}
},
"temperature#cpu": { "cpu": {
"hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input", "interval": 30,
"critical-threshold": 80, "format": " {avg_frequency:3.2f}GHz <span color='#aaaaaa'>{usage}%</span>",
"format": " CPU <span color='#aaaaaa'>{temperatureC}°C</span>" "states": {
}, "warning": 70,
"critical": 90
},
},
"temperature#gpu": { "temperature#cpu": {
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
"format": "· GPU <span color='#aaaaaa'>{temperatureC}°C</span>" "format": " CPU <span color='#aaaaaa'>{temperatureC}°C</span>"
}, },
"temperature#nvme": { "temperature#gpu": {
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
"format": "· NVMe <span color='#aaaaaa'>{temperatureC}°C</span>" "format": "· GPU <span color='#aaaaaa'>{temperatureC}°C</span>"
}, },
"temperature#wifi": { "temperature#nvme": {
"hwmon-path": "/sys/class/hwmon/hwmon11/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
"format": "· WiFi <span color='#aaaaaa'>{temperatureC}°C</span>" "format": "· NVMe <span color='#aaaaaa'>{temperatureC}°C</span>"
}, },
"group/resources": { "temperature#wifi": {
"orientation": "horizontal", "hwmon-path": "/sys/class/hwmon/hwmon11/temp1_input",
"modules": [ "memory", "disk#root" ], "critical-threshold": 80,
"drawer": { "format": "· WiFi <span color='#aaaaaa'>{temperatureC}°C</span>"
"transition-left-to-right": false, },
"transition-duration": 500
}
},
"memory": { "group/resources": {
"interval": 60, "orientation": "horizontal",
"format": "󰘚 {used:3.1f}GiB/<span color='#aaaaaa'>{total:3.1f}GiB</span>" "modules": [ "memory", "disk#root" ],
}, "drawer": {
"transition-left-to-right": false,
"transition-duration": 500
}
},
"disk#root": { "memory": {
"interval": 360, "interval": 60,
"format": " {used}/<span color='#aaaaaa'>{total}</span>", "format": "󰘚 {used:3.1f}GiB/<span color='#aaaaaa'>{total:3.1f}GiB</span>"
"path": "/" },
},
"bluetooth": { "disk#root": {
// "controller": "controller1", "interval": 360,
"on-click": "~/.local/bin/waybar-bluetooth toggle", "format": " {used}/<span color='#aaaaaa'>{total}</span>",
"format": "<span color='#aaaaaa'>󰂲</span>", "path": "/"
"format-disabled": "<span color='#333333'></span>", },
"format-connected": "",
"format-connected-battery": " {device_battery_percentage}%",
"tooltip-format": "{controller_alias}\t\t[{controller_address}]",
"tooltip-format-connected": "{controller_alias}\t\t[{controller_address}]\n\n{device_enumerate}",
"tooltip-format-connected-battery": "{controller_alias}\t\t[{controller_address}]\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t\t[{device_address}]",
"tooltip-format-enumerate-connected-battery": "{device_alias} ({device_battery_percentage})\t\t[{device_address}]"
},
"group/audio": { "bluetooth": {
"orientation": "horizontal", // "controller": "controller1",
"modules": [ "on-click": "~/.local/bin/waybar-bluetooth toggle",
"wireplumber", "format": "<span color='#aaaaaa'>󰂲</span>",
"custom/audio-internal", "format-disabled": "<span color='#333333'></span>",
"custom/audio-headphones", "format-connected": "",
"custom/audio-hdmi" "format-connected-battery": " {device_battery_percentage}%",
], "tooltip-format": "{controller_alias}\t\t[{controller_address}]",
"drawer": { "tooltip-format-connected": "{controller_alias}\t\t[{controller_address}]\n\n{device_enumerate}",
"transition-left-to-right": false, "tooltip-format-connected-battery": "{controller_alias}\t\t[{controller_address}]\n\n{device_enumerate}",
"transition-duration": 500 "tooltip-format-enumerate-connected": "{device_alias}\t\t[{device_address}]",
} "tooltip-format-enumerate-connected-battery": "{device_alias} ({device_battery_percentage})\t\t[{device_address}]"
}, },
"wireplumber": { "group/audio": {
"format": "{icon} {node_name}/<span color='#aaaaaa'>{volume}</span>", "orientation": "horizontal",
"format-muted": "", "modules": [
"on-click": "pavucontrol-qt", "wireplumber",
"on-click-right": "helvum", "custom/audio-internal",
"format-icons": ["", "", ""] "custom/audio-headphones",
}, "custom/audio-hdmi"
],
"drawer": {
"transition-left-to-right": false,
"transition-duration": 500
}
},
"custom/audio-internal": { "wireplumber": {
"format": "󱡬 ", "format": "{icon} {node_name}/<span color='#aaaaaa'>{volume}</span>",
"tooltip-format": "Internal", "format-muted": "",
"on-click": "audio-router analog", "on-click": "pavucontrol-qt",
"interval": "once" "on-click-right": "helvum",
}, "format-icons": ["", "", ""]
},
"custom/audio-hdmi": { "custom/audio-internal": {
"format": "󰡁 ", "format": "󱡬 ",
"tooltip-format": "HDMI", "tooltip-format": "Internal",
"on-click": "audio-router hdmi", "on-click": "audio-router analog",
"interval": "once" "interval": "once"
}, },
"battery": { "custom/audio-hdmi": {
"bat": "BAT1", "format": "󰡁 ",
"interval": 30, "tooltip-format": "HDMI",
"states": { "on-click": "audio-router hdmi",
"warning": 20, "interval": "once"
"critical": 10 },
},
"format-time": "{H}:{m}",
"format": "{icon} {time} <span color='#aaaaaa'>{capacity}%</span>",
"format-discharging": "{icon} <span color='#aaaaaa'>{capacity}%</span>",
"format-discharging-warning": "{icon} <span color='#FF5F1F'>{capacity}%</span>",
"format-discharging-critical": "{icon} <span color='#FF3131'>{capacity}%</span>",
"format-charging": "{icon} <span color='#DAF7A6'>{capacity}%</span><span color='#aaaaaa'> @ {power:2.0f}W</span>",
"format-full": "󱐥 <span color='#aaaaaa'>{capacity}%</span>",
"format-not-charging": "󱐤 <span color='#aaaaaa'>{capacity}%</span>",
"format-icons": [" ", " ", " ", " ", " "],
},
"group/clock": { "group/battery": {
"orientation": "horizontal", "orientation": "horizontal",
"modules": [ "custom/clock#minutes", "clock#time", "clock#date" ], "modules": [
"drawer": { "battery",
"transition-left-to-right": false, "custom/powerdraw"
"transition-duration": 500 ],
} "drawer": {
}, "transition-left-to-right": false,
"transition-duration": 500
}
},
"clock#date": { "battery": {
"interval": 60, "bat": "BAT1",
"format": " <span color='#ffffff'> {:%a %e %b %Y}</span>", "interval": 30,
"tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>", "states": {
"calendar": { "warning": 20,
"mode" : "year", "critical": 10
"mode-mon-col" : 2, },
"weeks-pos" : "right", "format-time": "{H}:{m}",
"on-scroll" : 1, "format": "{icon} {time} <span color='#aaaaaa'>{capacity}%</span>",
"format": { "format-discharging": "{icon} <span color='#aaaaaa'>{capacity}%</span>",
"months": "<span color='#ffead3'><b>{}</b></span>", "format-discharging-warning": "{icon} <span color='#FF5F1F'>{capacity}%</span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>", "format-discharging-critical": "{icon} <span color='#FF3131'>{capacity}%</span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>", "format-charging": "{icon} <span color='#DAF7A6'>{capacity}%</span><span color='#aaaaaa'> @ {power:2.0f}W</span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>", "format-full": "󱐥 <span color='#aaaaaa'>{capacity}%</span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>" "format-not-charging": "󱐤 <span color='#aaaaaa'>{capacity}%</span>",
} "format-icons": [" ", " ", " ", " ", " "],
}, },
"actions": {
"on-click-right": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"clock#time": { "custom/powerdraw": {
"interval": 60, "interval": 60,
"format": " {:%I:%M %p}", "exec": "~/.local/bin/waybar-powerdraw",
"actions": { },
"on-scroll-up": "tz_up",
"on-scroll-down": "tz_down"
}
},
"custom/clock#minutes": { "group/clock": {
"interval": 60, "orientation": "horizontal",
"format": " <span color='#aaaaaa'>{}</span> ", "modules": [ "custom/clock#minutes", "clock#time", "clock#date" ],
"exec": "~/.local/bin/waybar-minutes" "drawer": {
} "transition-left-to-right": false,
} "transition-duration": 500
] }
},
"clock#date": {
"interval": 60,
"format": " <span color='#ffffff'> {:%a %e %b %Y}</span>",
"tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 2,
"weeks-pos" : "right",
"on-scroll" : 1,
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"clock#time": {
"interval": 60,
"format": " {:%I:%M %p}",
"actions": {
"on-scroll-up": "tz_up",
"on-scroll-down": "tz_down"
}
},
"custom/clock#minutes": {
"interval": 60,
"format": " <span color='#aaaaaa'>{}</span> ",
"exec": "~/.local/bin/waybar-minutes"
}
}
]
''; '';
}; };
"/home/${username}/.config/waybar/style.css" = { "/home/${username}/.config/waybar/style.css" = {
text = '' text = ''
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
font-family: 'CommitMono Nerd Font'; font-family: 'CommitMono Nerd Font';
font-weight: 400; font-weight: 400;
font-size: 11px; font-size: 11px;
min-height: 26px; min-height: 26px;
/* margin: 0 0px; */ /* margin: 0 0px; */
} }
window#waybar.top { window#waybar.top {
/* background-color: rgba(115, 116, 116, 0.22); */ /* background-color: rgba(115, 116, 116, 0.22); */
background-color: rgba(0, 0, 0, 0.75); background-color: rgba(0, 0, 0, 0.75);
border-bottom: none; border-bottom: none;
color: #eeeeee; color: #eeeeee;
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
} }
window#waybar.hidden { window#waybar.hidden {
opacity: 0.5; opacity: 0.5;
} }
label#window { label#window {
text-shadow: 0px 0px 3px #18181e; text-shadow: 0px 0px 3px #18181e;
} }
tooltip { tooltip {
background: rgba(43, 48, 59, 0.5); background: rgba(43, 48, 59, 0.5);
border: 1px solid rgba(100, 114, 125, 0.5); border: 1px solid rgba(100, 114, 125, 0.5);
} }
tooltip label { tooltip label {
color: white; color: white;
} }
.modules-left > widget > label, .modules-left > widget > label,
.modules-left > box > widget > label, .modules-left > box > widget > label,
.modules-right > widget > label, .modules-right > widget > label,
.modules-right > box > widget > label { .modules-right > box > widget > label {
padding: 0 10px; padding: 0 10px;
margin: 0px 0px 0px 10px; margin: 0px 0px 0px 10px;
} }
#network, #resources, #audio, #clock { #network, #resourcese {
padding: 0 4px; padding: 0px 2px 0px 2px;
} }
.drawer-child > label { #audio, #battery, #clock {
margin: 0px 10px; padding: 0px 6px 0px 6px;
} }
#custom-audio-internal, .drawer-child > label {
#custom-audio-motu, margin: 0px 10px;
#custom-audio-headphones, }
#custom-audio-hdmi
{
padding: 4px 2px;
border-radius: 0px;
}
#workspaces { #custom-audio-internal,
margin: 0px 0px 0px 0px; #custom-audio-motu,
} #custom-audio-headphones,
#custom-audio-hdmi
{
padding: 4px 2px;
border-radius: 0px;
}
#workspaces button { #workspaces {
/*padding: 4px 6px;*/ margin: 0px 0px 0px 0px;
padding: 4px 6px; }
color: #555555;
border-radius: 0px;
/*min-width: 32px;*/
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #workspaces button {
/*padding: 4px 6px;*/
padding: 4px 6px;
color: #555555;
border-radius: 0px;
/*min-width: 32px;*/
}
#workspaces button:hover { /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
box-shadow: inherit;
text-shadow: inherit;
background: transparent;
color: #ffffff;
}
#workspaces button.active { #workspaces button:hover {
box-shadow: inherit; box-shadow: inherit;
text-shadow: inherit; text-shadow: inherit;
background: transparent; background: transparent;
color: #ffffff; color: #ffffff;
} }
#workspaces button.focused { #workspaces button.active {
color: #eeeeee; box-shadow: inherit;
} text-shadow: inherit;
background: transparent;
color: #ffffff;
}
#workspaces button.focused:hover { #workspaces button.focused {
color: #ffffff; color: #eeeeee;
} }
#workspaces button.urgent { #workspaces button.focused:hover {
color: #ffffff; color: #ffffff;
background-color: #e27878; }
}
#language { #workspaces button.urgent {
/* margin: 0px 0px 0px 0px; */ color: #ffffff;
color: #cccccc; background-color: #e27878;
} }
#tray { #language {
background-color: rgba(0, 0, 0, 0); /* margin: 0px 0px 0px 0px; */
/* margin-left: 10px; */ color: #cccccc;
} }
#tray image { #tray {
margin: 0px 10px 0px 0px; background-color: rgba(0, 0, 0, 0);
} /* margin-left: 10px; */
}
#mode { #tray image {
background-color: rgba(0, 0, 0, 0); margin: 0px 10px 0px 0px;
border: 2px solid #e2a478; }
margin: 0px 10px 0px 0px;
border-radius: 5px;
}
#custom-yubikey.icon { #mode {
background: #f9409d; background-color: rgba(0, 0, 0, 0);
} border: 2px solid #e2a478;
margin: 0px 10px 0px 0px;
border-radius: 5px;
}
#custom-spotify { #custom-yubikey.icon {
color: #ffffff; background: #f9409d;
padding-right: 10px; }
}
#custom-spotify {
color: #ffffff;
padding-right: 5px;
}
#custom-devices {
color: #ffffff;
padding: 0px 2px 0px 2px;
}
#custom-powerdraw {
color: #ffffff;
padding: 0px;
}
''; '';
}; };

View file

@ -178,6 +178,57 @@
echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}"
''; '';
}; };
"/home/${username}/.local/bin/waybar-devices" = {
executable = true;
text = ''
#!/usr/bin/env bash
if [[ $(cat /proc/acpi/button/lid/LID0/state | grep "open") ]]; then
LTEXT="󰌢 "
else
LTEXT="󰛧 "
fi
MICROPHONE_STATE="$(sudo /home/liv/.local/src/framework-system/target/debug/framework_tool --privacy | tail -n2 | head -n1)"
CAMERA_STATE="$(sudo /home/liv/.local/src/framework-system/target/debug/framework_tool --privacy | tail -n1)"
if [[ "$(echo $MICROPHONE_STATE | grep 'Microphone: Connected')" ]]; then
MIC=1
MTEXT="󰍬 - available!"
else
MIC=0
MTEXT=" "
fi
if [[ "$(echo $CAMERA_STATE | grep 'Camera: Connected')" ]]; then
CAM=1
CTEXT="󰄀 - available!"
else
CAM=0
CTEXT="󰗟 "
fi
echo "$LTEXT $CTEXT $MTEXT"
'';
};
"/home/${username}/.local/bin/waybar-powerdraw" = {
executable = true;
text = ''
#!/usr/bin/env zsh
if [[ "$(cat /sys/class/power_supply/BAT1/status)" == "Discharging" ]]; then; cat /sys/class/power_supply/BAT1/current_now /sys/class/power_supply/BAT1/voltage_now | xargs | awk '{print $1*$2/1e12 " W"}'; fi
'';
};
"/home/${username}/.local/bin/waybar-vpn" = {
executable = true;
text = ''
#!/usr/bin/env bash
ip route | grep -q '10.7.0.0' \
&& echo '{"text":"Connected","class":"connected","percentage":100}' \
|| echo '{"text":"Disconnected","class":"disconnected","percentage":0}'
'';
};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
wf-recorder wf-recorder