{"id":2250,"date":"2019-12-16T10:00:04","date_gmt":"2019-12-16T16:00:04","guid":{"rendered":"https:\/\/www.foell.org\/justin\/?p=2250"},"modified":"2019-12-16T10:04:52","modified_gmt":"2019-12-16T16:04:52","slug":"windows-xcv-cut-copy-paste-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/","title":{"rendered":"Windows-X\/C\/V Cut\/Copy\/Paste in Ubuntu"},"content":{"rendered":"<p>The last time I&#8217;m going to refer to it as the Windows key is in the title and in this sentence. We&#8217;ll go by it&#8217;s rightful name, the Super key. To make mine extra super, I cover the Windows logo with a Linux Penguin logo. I got this one from <a href=\"https:\/\/www.thinkpenguin.com\/gnu-linux\/tux-super-key-keyboard-sticker\">ThinkPenguin.com<\/a>:<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581.jpg\" rel=\"gallery-2250\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3550\" data-permalink=\"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/img_6581\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581.jpg\" data-orig-size=\"4032,3024\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.8&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 7&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1570479224&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.99&quot;,&quot;iso&quot;:&quot;200&quot;,&quot;shutter_speed&quot;:&quot;0.25&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"img_6581\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581-1024x768.jpg\" class=\"alignnone wp-image-3550 size-large\" src=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581-1024x768.jpg\" alt=\"\" width=\"770\" height=\"578\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581-1024x768.jpg 1024w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581-300x225.jpg 300w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/img_6581-768x576.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.foell.org\/justin\/emacs-on-osx\/\">After using a Mac for about a year<\/a>, I started to really like the approach of using the Command key for clipboard operations. Mostly because I still use the command line very often and I want to continue using Control+C for <em>cancel<\/em>. It&#8217;s like having your cake and eating it too. Why not put the Super key to use on my Ubuntu system for the same purpose?<\/p>\n<p>We&#8217;ll cover the setup on several different applications. I like to add Cut, Copy, Paste at a minimum as well as Select All and Undo (since the A and Z keys are also in the vicinity). In cases where it&#8217;s possible, I&#8217;ve also mapped Redo as Shift+Super+Z since some programs would use Shift+Control+Z for Redo.<br \/>\n<!--more--><\/p>\n<h2>Programs<\/h2>\n<p>I&#8217;m not going to cover all of the applications that I use, just a few to get you started \ud83d\ude42 What I like about my approach is in most cases I&#8217;m not overriding Control+A\/Z\/X\/C\/V. We&#8217;re augmenting it by adding Super+A\/Z\/X\/C\/V so using the control key will still work.<\/p>\n<p>Here&#8217;s what we&#8217;re going to cover:<\/p>\n<ul>\n<li>Gnome (mostly to remove other Super bindings)<\/li>\n<li>GTK<\/li>\n<li>Gnome Terminal<\/li>\n<li>VSCode<\/li>\n<li>Emacs<\/li>\n<li>Nautilus (Gnome&#8217;s File Manager)<\/li>\n<\/ul>\n<h2>Gnome<\/h2>\n<p>We need to &#8220;free up&#8221; some of the default Gnome keybindings found in Ubuntu 18.04. Bring up the system Settings and navigate to Devices -&gt; Keyboard. Type &#8220;super&#8221; there to filter all of the shortcuts to just those that use the Super key.<\/p>\n<p>I simply changed Super+A and Super+V to Shift+Super+A and Shift+Super+V. You can see the customized shortcuts highlighted in <strong>bold<\/strong>.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings.png\" rel=\"gallery-2250\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3489\" data-permalink=\"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/gnome-keybindings\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings.png\" data-orig-size=\"980,711\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"gnome-keybindings\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings.png\" class=\"alignnone size-full wp-image-3489\" src=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings.png\" alt=\"\" width=\"980\" height=\"711\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings.png 980w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings-300x218.png 300w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-keybindings-768x557.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>Install Gnome Tweaks:<\/p>\n<p><code>sudo apt install gnome-tweaks<\/code><\/p>\n<p>After it&#8217;s installed launch Tweaks and navigate to the Keyboard &amp; Mouse section.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard.png\" rel=\"gallery-2250\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3490\" data-permalink=\"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/gnome-tweaks-keyboard\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard.png\" data-orig-size=\"876,626\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"gnome-tweaks-keyboard\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard.png\" class=\"alignnone size-full wp-image-3490\" src=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard.png\" alt=\"\" width=\"876\" height=\"626\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard.png 876w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard-300x214.png 300w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-tweaks-keyboard-768x549.png 768w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/a><\/p>\n<p>Move &#8220;Overview Shortcut&#8221; from left super to right super, effectively disabling the overview on most laptops since they don&#8217;t have a right-side Super key. You can still access this functionality by pressing Super-S. Apologies to anyone that has a right-side Super key \ud83d\ude22<\/p>\n<h2>GTK<\/h2>\n<p>GTK keybindings will cover many applications &#8211; this setting alone might get you about 80% there. It will work on Firefox and Chrome &#8211; plus Electron apps based on Chrome like <a href=\"https:\/\/simplenote.com\/\">Simplenote<\/a> and <a href=\"https:\/\/code.visualstudio.com\/\">VSCode<\/a>. Not all bindings will work in all apps (like Select-All, Undo &amp; Redo) but Super-X\/C\/V should. Plus we&#8217;re augmenting the existing Control-A\/Z\/X\/C\/V so those will continue to work.<\/p>\n<p><code>vi ~\/.config\/gtk-3.0\/gtk.css<\/code><\/p>\n<pre>@binding-set gtk-super-cut-copy-paste\r\n{\r\n        bind \"x\" { \"cut-clipboard\" () };\r\n        bind \"c\" { \"copy-clipboard\" () };\r\n        bind \"v\" { \"paste-clipboard\" () };\r\n        bind \"a\" { \"select-all\" (1) };\r\n        bind \"z\" { \"undo\" () };\r\n}\r\n\r\n* {\r\n        -gtk-key-bindings: gtk-super-cut-copy-paste\r\n}\r\n<\/pre>\n<p>Details: <a href=\"https:\/\/askubuntu.com\/a\/851055\/803610\">https:\/\/askubuntu.com\/a\/851055\/803610<\/a><\/p>\n<h2>Gnome Terminal<\/h2>\n<p>In 18.04 you can just go to Edit -&gt; Preferences and set Copy, Paste and Select All in the Shortcuts section:<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences.png\" rel=\"gallery-2250\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3488\" data-permalink=\"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/gnome-terminal-preferences\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences.png\" data-orig-size=\"806,615\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"gnome-terminal-preferences\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences.png\" class=\"alignnone size-full wp-image-3488\" src=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences.png\" alt=\"\" width=\"806\" height=\"615\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences.png 806w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences-300x229.png 300w, https:\/\/www.foell.org\/justin\/files\/2019\/10\/gnome-terminal-preferences-768x586.png 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/a><\/p>\n<h2>VSCode<\/h2>\n<p>Rather than using the keybinding editor in VSCode, I like to just open up the user keybindings.json file and add my keybindings as additions.<\/p>\n<p><code>vi ~\/.config\/Code\/User\/keybindings.json<\/code><\/p>\n<p>Super-X\/C\/V is already working from the GTK settings, so we just need to add the following to get Super-A\/Z for Select-All\/Undo\/Redo:<\/p>\n<pre>\/\/ Place your key bindings in this file to overwrite the defaults\r\n[\r\n    {\r\n        \"key\": \"meta+a\",\r\n        \"command\": \"editor.action.selectAll\", \"when\": \"textInputFocus\"\r\n    },\r\n    {\r\n        \"key\": \"meta+z\",\r\n        \"command\": \"undo\", \"when\": \"textInputFocus &amp;&amp; !editorReadOnly\"\r\n    },\r\n    {\r\n        \"key\": \"shift+meta+z\",\r\n        \"command\": \"redo\", \"when\": \"textInputFocus &amp;&amp; !editorReadOnly\"\r\n    }\r\n]\r\n<\/pre>\n<h2>Emacs<\/h2>\n<p><code>vi ~\/.emacs<\/code><\/p>\n<blockquote><p>Yes I realize the irony of editing my .emacs file with vim.<\/p><\/blockquote>\n<p>Add the following lines:<\/p>\n<pre>;; Mac-style cut\/copy\/paste\r\n(global-set-key (kbd \"s-x\") 'kill-region)\r\n(global-set-key (kbd \"s-c\") 'kill-ring-save)\r\n(global-set-key (kbd \"s-v\") 'yank)\r\n(global-set-key (kbd \"s-a\") 'mark-whole-buffer)\r\n(global-set-key (kbd \"s-z\") 'undo)\r\n<\/pre>\n<h2>Nautilus (File Manager)<\/h2>\n<p>I <a href=\"https:\/\/askubuntu.com\/a\/1072515\/803610\">adapted a program called BackspaceBack.py<\/a> to do my bidding within Nautilus.<\/p>\n<p><code>sudo apt install python-nautilus<\/code><br \/>\n<code>mkdir -p ~\/.local\/share\/nautilus-python\/extensions<\/code><br \/>\n<code>vi ~\/.local\/share\/nautilus-python\/extensions\/KeybindingRemap.py<\/code><\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist100071083\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-keybindingremap-py\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-python  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"KeybindingRemap.py content, created by jrfoell on 11:04PM on December 15, 2019.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      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.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"KeybindingRemap.py\">\n<tr>\n<td id=\"file-keybindingremap-py-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-keybindingremap-py-LC1\" class=\"blob-code blob-code-inner js-file-line\">#!\/usr\/bin\/env python<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-keybindingremap-py-LC2\" class=\"blob-code blob-code-inner js-file-line\"># -*- coding: utf-8 -*-<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-keybindingremap-py-LC3\" class=\"blob-code blob-code-inner js-file-line\">#<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-keybindingremap-py-LC4\" class=\"blob-code blob-code-inner js-file-line\"># Based on BackspaceBack.py https:\/\/github.com\/riclc\/nautilus_backspace<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-keybindingremap-py-LC5\" class=\"blob-code blob-code-inner js-file-line\"># originally by Ricardo Lenz riclc@hotmail.com<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-keybindingremap-py-LC6\" class=\"blob-code blob-code-inner js-file-line\">#<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-keybindingremap-py-LC7\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-keybindingremap-py-LC8\" class=\"blob-code blob-code-inner js-file-line\">import os, gi<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-keybindingremap-py-LC9\" class=\"blob-code blob-code-inner js-file-line\">gi.require_version(&#39;Nautilus&#39;, &#39;3.0&#39;)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-keybindingremap-py-LC10\" class=\"blob-code blob-code-inner js-file-line\">from gi.repository import GObject, Nautilus, Gtk, Gio, GLib<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-keybindingremap-py-LC11\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-keybindingremap-py-LC12\" class=\"blob-code blob-code-inner js-file-line\">def ok():<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-keybindingremap-py-LC13\" class=\"blob-code blob-code-inner js-file-line\">    app = Gtk.Application.get_default()<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-keybindingremap-py-LC14\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;view.select-all&quot;, [&quot;&lt;super&gt;a&quot;] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-keybindingremap-py-LC15\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;win.undo&quot;, [&quot;&lt;super&gt;z&quot;] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-keybindingremap-py-LC16\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;win.redo&quot;, [ &quot;&lt;shift&gt;&lt;super&gt;z&quot; ] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-keybindingremap-py-LC17\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;view.cut&quot;, [&quot;&lt;super&gt;x&quot;] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-keybindingremap-py-LC18\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;view.copy&quot;, [&quot;&lt;super&gt;c&quot;] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-keybindingremap-py-LC19\" class=\"blob-code blob-code-inner js-file-line\">    app.set_accels_for_action( &quot;view.paste&quot;, [&quot;&lt;super&gt;v&quot;] )<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-keybindingremap-py-LC20\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n<td id=\"file-keybindingremap-py-LC21\" class=\"blob-code blob-code-inner js-file-line\">class KeybindingRemap(GObject.GObject, Nautilus.LocationWidgetProvider):<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n<td id=\"file-keybindingremap-py-LC22\" class=\"blob-code blob-code-inner js-file-line\">    def __init__(self):<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n<td id=\"file-keybindingremap-py-LC23\" class=\"blob-code blob-code-inner js-file-line\">        pass<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n<td id=\"file-keybindingremap-py-LC24\" class=\"blob-code blob-code-inner js-file-line\">    <\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n<td id=\"file-keybindingremap-py-LC25\" class=\"blob-code blob-code-inner js-file-line\">    def get_widget(self, uri, window):<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n<td id=\"file-keybindingremap-py-LC26\" class=\"blob-code blob-code-inner js-file-line\">        ok()<\/td>\n<\/tr>\n<tr>\n<td id=\"file-keybindingremap-py-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n<td id=\"file-keybindingremap-py-LC27\" class=\"blob-code blob-code-inner js-file-line\">        return None<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/jrfoell\/0e7473d370fdfc8c614d603a378c3675\/raw\/218e39c2d4033e8d7d93ee03d27b39f998617b99\/KeybindingRemap.py\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/jrfoell\/0e7473d370fdfc8c614d603a378c3675#file-keybindingremap-py\" class=\"Link--inTextBlock\"><br \/>\n          KeybindingRemap.py<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>You&#8217;ll have to restart nautilus for these to take effect. Just log out and log back in to put the settings into action.<\/p>\n<h2>Looking Ahead<\/h2>\n<p>The way to do this has changed over the years from one major release to the next, so I won&#8217;t be surprised if some configurations are different for Ubuntu 20.04 LTS, but we&#8217;ll just have to wait and see. If you have any additional apps and configurations you&#8217;d like to add, let everyone know in the comments!<\/p>\n<div class='kindleWidget kindleLight' ><img decoding=\"async\" src=\"https:\/\/www.foell.org\/justin\/wp-content\/plugins\/send-to-kindle\/media\/white-15.png\" \/><span>Send to Kindle<\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>The last time I&#8217;m going to refer to it as the Windows key is in the title and in this sentence. We&#8217;ll go by it&#8217;s rightful name, the Super key. To make mine extra super, I cover the Windows logo with a Linux Penguin logo. I got this one from ThinkPenguin.com: After using a Mac&hellip; <a href=\"https:\/\/www.foell.org\/justin\/windows-xcv-cut-copy-paste-in-ubuntu\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Windows-X\/C\/V Cut\/Copy\/Paste in Ubuntu - turn your Super key into the superstar it was destined to be.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,8],"tags":[165,166],"class_list":["post-2250","post","type-post","status-publish","format-standard","hentry","category-business","category-ubuntu","tag-gnome","tag-linux"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/2250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/comments?post=2250"}],"version-history":[{"count":35,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/2250\/revisions"}],"predecessor-version":[{"id":3633,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/2250\/revisions\/3633"}],"wp:attachment":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/media?parent=2250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/categories?post=2250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/tags?post=2250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}