mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 01:48:59 +02:00
Initial commit.
This commit is contained in:
commit
c130561cb7
17 changed files with 1029 additions and 0 deletions
33
rc/theme.lua
Normal file
33
rc/theme.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
-- Theme
|
||||
beautiful.init(awful.util.getdir("config") .. "/themes/custom.lua")
|
||||
|
||||
-- GTK stuff: we choose Adwaita theme which seems to be the only one
|
||||
-- kept up-to-date with GTK2 and GTK3...
|
||||
|
||||
-- Also see: http://developer.gnome.org/gtk3/3.2/GtkSettings.html
|
||||
local gtk = 'gtk-font-name="' .. beautiful.font .. '"' .. [[
|
||||
|
||||
gtk-theme-name="Adwaita"
|
||||
gtk-icon-theme-name="gnome-wine"
|
||||
gtk-cursor-theme-name="oxy-cherry"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle="hintfull"
|
||||
gtk-xft-rgba="rgb"
|
||||
gtk-key-theme-name="Emacs"
|
||||
]]
|
||||
|
||||
local gtk2 = io.open(os.getenv("HOME") .. "/.gtkrc-2.0", "w")
|
||||
gtk2:write(gtk)
|
||||
gtk2:close()
|
||||
|
||||
-- GTK3 is the same, but no double quotes for strings
|
||||
local gtk3 = io.open(os.getenv("HOME") .. "/.config/gtk-3.0/settings.ini")
|
||||
gtk3:write("[Settings]\n")
|
||||
gtk3:write(gtk:gsub('"', ''))
|
||||
gtk3:close()
|
Loading…
Add table
Add a link
Reference in a new issue