{"id":49551,"date":"2025-08-26T13:42:34","date_gmt":"2025-08-26T13:42:34","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=49551"},"modified":"2025-08-26T13:42:34","modified_gmt":"2025-08-26T13:42:34","slug":"copyq-11-0-0-adds-borderless-mode-new-class-for-http-requests","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2025\/08\/copyq-11-0-0-adds-borderless-mode-new-class-for-http-requests\/","title":{"rendered":"CopyQ 11.0.0 Adds Borderless Mode, New Class for HTTP Requests"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-45821\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/copyq-logoicon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>CopyQ, the free open-source clipboard manager, released new 11.0.0 version few days ago.<\/p>\n<p>The new release of this Qt-based advanced clipboard manager added some new features and improved scripting support with new class and other changes.<\/p>\n<div id=\"attachment_49552\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-49552\" class=\"size-large wp-image-49552\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/copyq-borderless-700x453.webp\" alt=\"\" width=\"610\" height=\"395\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/copyq-borderless-700x453.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/copyq-borderless-300x194.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/copyq-borderless-768x497.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/copyq-borderless.webp 1099w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-49552\" class=\"wp-caption-text\">CopyQ window without title-bar and border<\/p><\/div>\n<p><!--more--><\/p>\n<p>First, the release introduced <b>new <code>frameless_window<\/code> option<\/b>, allowing to show or hide the header\/title-bar and window borders.<\/p>\n<p>Simply, launch the action dialog (go to &#8216;Item -&gt; Action&#8217; or press <code>F5<\/code> key) and run the command below will hide them, making CopyQ window borderless (Ubuntu may use Super + drag to move window in this mode).<\/p>\n<pre>copyq config frameless_window true<\/pre>\n<p>While, Linux user may also run the command from terminal to do the same job. And, replace <code>true<\/code> with <code>false<\/code> in the command to un-hide the header and border.<\/p>\n<p>For advanced users who use the scripting API for network request, CopyQ 11.0.0 introduced <b>new <code>NetworkRequest<\/code> class<\/b>, allowing to make HTTP request with custom headers, HTTP method, number of allowed redirects and timeout.<\/p>\n<p>Here&#8217;s an example from the <a href=\"https:\/\/copyq.readthedocs.io\/en\/latest\/scripting-api.html#NetworkRequest\" target=\"_blank\" rel=\"noopener\">official Docs<\/a>:<\/p>\n<pre>let req = NetworkRequest();\r\n\r\n# allow redirects\r\nreq.maxRedirects = 5;\r\n\r\n# set request headers\r\nreq.headers = {\r\n   'User-Agent': req.headers['User-Agent'],\r\n   'Accept': 'application\/json',\r\n};\r\n\r\n# create JSON data\r\nconst data = JSON.stringify({text: 'Hello, **world**!'});\r\n\r\n# send POST request\r\nconst reply = req.request(\r\n    'POST', 'https:\/\/api.github.com\/markdown', data)\r\n\r\n# the request is synchronous and may not be finished\r\n# until a property is called (like reply.data or reply.status)\r\nif (!reply.finished) { serverLog('Processing...'); }\r\nprint(reply.data);<\/pre>\n<p>CopyQ added Emacs navigation key-bindings support in last 10.0.0, the new release improved it by enabled Vi\/Emacs navigation in menus, and <code>Ctrl+[<\/code> in Vi and <code>Ctrl+G<\/code> in Emacs to work in many other places as <code>Esc<\/code> key (e.g., to hide menus, dialogs).<\/p>\n<p>It as well added support localizing command names in the command INI files, e.g.,:<\/p>\n<pre>[Command]\r\nName = ...\r\nName_cs = ...\r\nName_fr = ...\r\nName_pt_BR = ...\r\nName_pt = ...<\/pre>\n<p>Other changes include:<\/p>\n<ul>\n<li>Automatically switch light \/ dark header (title-bar) to match system color scheme.<\/li>\n<li>Support showing preview for more images: webp and ico.<\/li>\n<li>Prevent backspace from closing the main window.<\/li>\n<li>Selections and current items\/rows\/data in scripts now only relate to the tab selected with <code>tab(...)<\/code> in scripts<\/li>\n<li>Various bug-fixes and translation updates.<\/li>\n<\/ul>\n<h3>How to Install CopyQ Clipboard Manager 11.0.0<\/h3>\n<p>For more changes, and installer packages for Windows, macOS, Debian, openSUSE, and Raspbian, go to the project releases page:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/hluk\/CopyQ\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">CopyQ Github Releases<\/a><\/div>\n<\/div>\n<p>For Ubuntu 22.04, Ubuntu 24.04, and 25.04, the <a href=\"https:\/\/launchpad.net\/~hluk\/+archive\/ubuntu\/copyq\" target=\"_blank\" rel=\"noopener\">official PPA<\/a> has updated with the new package for modern Intel\/AMD platform.<\/p>\n<p>Simply press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal and run commands below one by one to add PPA &amp; install the clipboard manager:<\/p>\n<pre>sudo add-apt-repository ppa:hluk\/copyq\r\nsudo apt update\r\nsudo apt install copyq<\/pre>\n<p>CopyQ can be also installed in most Linux on Intel\/AMD and ARM platforms through <a href=\"https:\/\/flathub.org\/apps\/com.github.hluk.copyq\" target=\"_blank\" rel=\"noopener\">Flatpak package<\/a>, which runs in sandbox environment.<\/p>\n<ul>\n<li>Install flatpak daemon. For other Linux, see this <a href=\"https:\/\/flatpak.org\/setup\/\" target=\"_blank\" rel=\"noopener\">setup guide<\/a>:\n<pre>sudo apt install flatpak<\/pre>\n<\/li>\n<li>Install the clipboard manager:\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/com.github.hluk.copyq.flatpakref<\/pre>\n<\/li>\n<\/ul>\n<h3>Uninstall CopyQ<\/h3>\n<p>Depends on which package you installed, you may remove CopyQ (.deb) by running command:<\/p>\n<pre>sudo apt remove copyq<\/pre>\n<p>Then remove the Ubuntu PPA from your system via:<\/p>\n<pre>sudo add-apt-repository ppa:hluk\/copyq<\/pre>\n<p>Also run <code>sudo apt update<\/code> to refresh cache if it didn&#8217;t do it automatically.<\/p>\n<p>To uninstall the Flatpak package, use command:<\/p>\n<pre>flatpak uninstall --delete-data com.github.hluk.copyq<\/pre>\n<p>Skip <code>--delete-data<\/code> if you want to keep personal configurations, and run <code>flatpak uninstall --unused<\/code> to remove useless run-times.<\/p>","protected":false},"excerpt":{"rendered":"<p>CopyQ, the free open-source clipboard manager, released new 11.0.0 version few days ago. The new release of this Qt-based advanced clipboard manager added some new features and improved scripting support with new class and other changes.<\/p>\n","protected":false},"author":1,"featured_media":45821,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[754],"class_list":["post-49551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-clipboard-manager"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=49551"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/45821"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=49551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=49551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=49551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}