From 39fe010f222db777294562c710f2dd5d7520ed6b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 2 Jun 2018 14:44:21 -0700 Subject: [PATCH] [Linux] Get rid of custom key theme and replace it with gtk.css --- .../gtk-keys.css => config/gtk-3.0/gtk.css} | 33 +------------------ dotfiles/config/gtk-3.0/settings.ini | 10 +++--- 2 files changed, 6 insertions(+), 37 deletions(-) rename dotfiles/{local/share/themes/MyEmacs/gtk-3.0/gtk-keys.css => config/gtk-3.0/gtk.css} (72%) diff --git a/dotfiles/local/share/themes/MyEmacs/gtk-3.0/gtk-keys.css b/dotfiles/config/gtk-3.0/gtk.css similarity index 72% rename from dotfiles/local/share/themes/MyEmacs/gtk-3.0/gtk-keys.css rename to dotfiles/config/gtk-3.0/gtk.css index a3ee5a5c..e0db194f 100644 --- a/dotfiles/local/share/themes/MyEmacs/gtk-3.0/gtk-keys.css +++ b/dotfiles/config/gtk-3.0/gtk.css @@ -1,35 +1,3 @@ -/* - * GTK - The GIMP Toolkit - * Copyright (C) 2002 Owen Taylor - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -/* - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -/* - * A keybinding set implementing Emacs-like keybindings - */ - -/* - * Bindings for GtkTextView and GtkEntry - */ @binding-set gtk-emacs-text-entry { bind "b" { "move-cursor" (logical-positions, -1, 0) }; @@ -53,6 +21,7 @@ bind "d" { "delete-from-cursor" (chars, 1) }; bind "d" { "delete-from-cursor" (word-ends, 1) }; bind "BackSpace" { "delete-from-cursor" (word-ends, -1) }; + bind "backspace" { "delete-from-cursor" (word-ends, -1) }; bind "k" { "delete-from-cursor" (paragraph-ends, 1) }; bind "backslash" { "delete-from-cursor" (whitespace, 1) }; diff --git a/dotfiles/config/gtk-3.0/settings.ini b/dotfiles/config/gtk-3.0/settings.ini index aafa871c..b80bbc3e 100644 --- a/dotfiles/config/gtk-3.0/settings.ini +++ b/dotfiles/config/gtk-3.0/settings.ini @@ -1,11 +1,11 @@ [Settings] -gtk-key-theme-name=MyEmacs +gtk-key-theme-name=Emacs gtk-application-prefer-dark-theme=false -gtk-theme-name=Adwaita-dark +gtk-theme-name=Arc gtk-fallback-icon-theme=gnome -gtk-icon-theme-name=Paper +gtk-icon-theme-name=Numix-Circle gtk-font-name=Roboto 11 -gtk-cursor-theme-name=Paper +gtk-cursor-theme-name=Breeze_Snow gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR @@ -15,5 +15,5 @@ gtk-enable-event-sounds=1 gtk-enable-input-feedback-sounds=1 gtk-xft-antialias=1 gtk-xft-hinting=1 -gtk-xft-hintstyle=hintfull +gtk-xft-hintstyle=hintslight gtk-xft-rgba=rgb