- Relocate themes to assets/themes/ and update all references. - Implement custom SDDM theme and Plymouth theme enhancements. - Add themed templates for Alacritty, Hyprland, Waybar, and other apps. - Introduce Makima key remapper module and configuration. - Add Voxtype and Walker configurations. - Implement systemd power management and timeout optimizations. - Add Nautilus-python extensions for LocalSend. - Update branding assets and ASCII art integration.
22 lines
705 B
JavaScript
22 lines
705 B
JavaScript
chrome.commands.onCommand.addListener((command) => {
|
|
if (command === 'copy-url') {
|
|
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
|
|
const currentTab = tabs[0];
|
|
|
|
chrome.scripting.executeScript({
|
|
target: { tabId: currentTab.id },
|
|
func: () => {
|
|
navigator.clipboard.writeText(window.location.href);
|
|
}
|
|
}).then(() => {
|
|
chrome.notifications.create({
|
|
type: 'basic',
|
|
iconUrl: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==',
|
|
title: ' URL copied to clipboard',
|
|
message: ''
|
|
});
|
|
});
|
|
});
|
|
}
|
|
});
|