fix: not being able to remove settings and recording buttons#1069
Open
Kathund wants to merge 5 commits intoJas-SinghFSU:masterfrom
Open
fix: not being able to remove settings and recording buttons#1069Kathund wants to merge 5 commits intoJas-SinghFSU:masterfrom
Kathund wants to merge 5 commits intoJas-SinghFSU:masterfrom
Conversation
orangci
approved these changes
Jul 22, 2025
Contributor
Author
|
bump |
Owner
|
Sorry for the delay, been busy working on Wayle. I'll get this reviewed today. |
Owner
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 |
Owner
|
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"
/> |
Owner
|
That should cover it. Great work and thank you for contributing ❤️ |
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
Author
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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