Skip to content

Commit

Permalink
gtk-key-theme
Browse files Browse the repository at this point in the history
There may still be a better way to achieve this, but this is the only
way that worked so far. Though the arch wiki says that system-wide
settings can be placed in
  /etc/gtk-2.0/gktrc
  /etc/gtk-3.0/settings.ini
those locations weren't being picked up, so I'm manually adding
  /etc/xdg
to XDG_CONFIG_DIRS, in which gtk apps will search for settings.

https://github.com/bennofs/etc-nixos/blob/5fe80d256d0101b1e73c9036d0a7ae6cee2c4267/conf/desktop.nix
  • Loading branch information
ivanbrennan committed Jan 30, 2020
1 parent 32353e9 commit 99e4eb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Try some window managers
- set $mod to super
- run dmenu (or j4) by pressing $mod alone
- equivalent gsettings
- [ ] desktop.interface gtk-key-theme "Emacs"
- [] desktop.interface gtk-key-theme "Emacs"
- [ ] desktop.interface clock-format "12h"
- [] services.xserver.libinput.tapping
- [] services.xserver.libinput.clickMethod
Expand Down
5 changes: 5 additions & 0 deletions environment/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ in {
login ${githubUsername}
password ${githubToken}
'';
"xdg/gtk-3.0/settings.ini".source = etc/xdg/gtk-3.0/settings.ini;
"xdg/gtk-2.0/gtkrc".source = etc/xdg/gtk-2.0/gtkrc;
};
extraInit = ''
export XDG_CONFIG_DIRS="/etc/xdg:$XDG_CONFIG_DIRS"
'';
};
}
1 change: 1 addition & 0 deletions environment/etc/xdg/gtk-2.0/gtkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gtk-key-theme-name = "Emacs"
2 changes: 2 additions & 0 deletions environment/etc/xdg/gtk-3.0/settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Settings]
gtk-key-theme-name = Emacs

0 comments on commit 99e4eb2

Please sign in to comment.