-
Notifications
You must be signed in to change notification settings - Fork 209
fix: not being able to remove settings and recording buttons #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: not being able to remove settings and recording buttons #1069
Conversation
|
bump |
|
Sorry for the delay, been busy working on Wayle. I'll get this reviewed today. |
const ShortcutButton = ({ shortcut, ...props }: ShortcutButtonProps): JSX.Element => {
const isRecordingButton = shortcut.command.get() === 'hyprpanel_record';
return (
<button
vexpand
tooltipText={shortcut.tooltip.get()}
className={
isRecordingButton
? bind(isRecording).as((rec) => `${props.className || ''} ${rec ? 'active' : ''}`.trim())
: props.className
}
onButtonPressEvent={(_, event) => {
const buttonClicked = event.get_button()[1];
if (buttonClicked !== Gdk.BUTTON_PRIMARY) {
return;
}
if (!isRecordingButton) {
handleClick(shortcut.command.get());
return;
}
const sanitizedPath = getRecordingPath().replace(/"/g, '\\"');
if (isRecording.get() === true) {
App.get_window('dashboardmenu')?.set_visible(false);
const command = `${SRC_DIR}/scripts/screen_record.sh stop "${sanitizedPath}"`;
executeCommand(command);
return;
}
const monitorDropdownList = MonitorListDropdown() as Gtk.Menu;
monitorDropdownList.popup_at_pointer(event);
}}
>
<label className={'button-label txt-icon'} label={shortcut.icon.get()} />
</button>
);
};I've updated the recording button logic for |
|
We need to add the configuration menu options so users can tweak these settings in <Option
opt={options.menus.dashboard.shortcuts.right.shortcut2.icon}
title="Right - Shortcut 2 (Icon)"
type="string"
/>
<Option
opt={options.menus.dashboard.shortcuts.right.shortcut2.command}
title="Right - Shortcut 2 (Command)"
type="string"
/>
<Option
opt={options.menus.dashboard.shortcuts.right.shortcut2.tooltip}
title="Right - Shortcut 2 (Tooltip)"
type="string"
/>and <Option
opt={options.menus.dashboard.shortcuts.right.shortcut4.icon}
title="Right - Shortcut 4 (Icon)"
type="string"
/>
<Option
opt={options.menus.dashboard.shortcuts.right.shortcut4.command}
title="Right - Shortcut 4 (Command)"
type="string"
/>
<Option
opt={options.menus.dashboard.shortcuts.right.shortcut4.tooltip}
title="Right - Shortcut 4 (Tooltip)"
type="string"
/> |
|
That should cover it. Great work and thank you for contributing ❤️ |
Co-authored-by: Jas Singh <[email protected]>
|
This should be everything unless i'm being stupid. I'm busy with a different project and currently not really working on much other but still open to questions but most likely respond on gh right now. Feel free to reach me |

You can now remove the recording and settings buttons. They are still kept there by default but my only "issue" is that I forced my self to make an
INTERNALtag/prefix for naming an command. I would like to come up with a better way to do this but I personally couldn't come up with one. I am open to feedback on how we implement start video recording then