Browse Source

dark theme wizardry works

rework-profiles
parent
commit
736a5ad9be
Signed by: govanify GPG Key ID: DE62E1E2A6145556
10 changed files with 66 additions and 49 deletions
  1. +1
    -1
      README.md
  2. +31
    -47
      common/graphical.nix
  3. +1
    -0
      common/xdg.nix
  4. +4
    -0
      dotfiles/graphical/qt5ct/breeze-dark.conf
  5. +28
    -0
      dotfiles/graphical/qt5ct/qt5ct.conf
  6. +0
    -0
      dotfiles/graphical/sway/config
  7. +0
    -0
      dotfiles/graphical/sway/locale.sh
  8. +0
    -0
      dotfiles/graphical/sway/status-desktop.sh
  9. +0
    -0
      dotfiles/graphical/sway/status.sh
  10. +1
    -1
      pkgs/vim.nix

+ 1
- 1
README.md View File

@ -11,7 +11,7 @@ Currently the machines populated by this configuration are:
TODo list sorted by priority:
* security: redirect IPv6 through tor
* workflow: weechat-matrix setup
* workflow: breeze-dark by default on qt5
* workflow: make cursor visible in sway
* security: security hardening through sandboxing
* workflow: set up patchouli to have regular and automated backups
* server: make firefox sync to fujiwara and setup fujiwara


+ 31
- 47
common/graphical.nix View File

@ -56,24 +56,44 @@
hack-font
];
# QT theme engine
programs.qt5ct.enable = true;
environment.variables = {
MOZ_ENABLE_WAYLAND = "1";
# fix sway java bug
_JAVA_AWT_WM_NONREPARENTING = "1";
# QT theme
QT_QPA_PLATFORMTHEME="qt5ct";
# force wayland
QT_QPA_PLATFORM="wayland-egl";
GDK_BACKEND="wayland";
MOZ_ENABLE_WAYLAND = "1";
};
environment = {
etc = {
# Put config files in /etc. Note that you also can put these in ~/.config, but then you can't manage them with NixOS anymore!
"sway/config".source = ./../dotfiles/sway/config;
"sway/locale.sh".source = ./../dotfiles/sway/locale.sh;
"sway/status.sh".source = ./../dotfiles/sway/status.sh;
"sway/config".source = ./../dotfiles/graphical/sway/config;
"sway/locale.sh".source = ./../dotfiles/graphical/sway/locale.sh;
"sway/status.sh".source = ./../dotfiles/graphical/sway/status.sh;
# QT theme
"xdg/qt5ct/qt5ct.conf".source = ./../dotfiles/graphical/qt5ct/qt5ct.conf;
"xdg/qt5ct/breeze-dark.conf".source = ./../dotfiles/graphical/qt5ct/breeze-dark.conf;
# GTK theme
"xdg/gtk-3.0/settings.ini" = { text = ''
[Settings]
gtk-icon-theme-name=breeze-dark
gtk-theme-name=Breeze-Dark
gtk-application-prefer-dark-theme = true
''; mode = "444"; };
"gtk-2.0/gtkrc" = { text = ''
gtk-icon-theme-name=breeze-dark
''; mode = "444"; };
};
};
# soooo we have all of those nice systemd services below but NONE OF THEM
# ACTUALLY WORKS for a reason that is beyond me. I'm as confused as you are,
# so let's just keep it this way shall we? worst case scenario i login into
# another shell
# the gpg thing should be done in headfull but we need to do that before it
# execs sway because sway obviously never returns
@ -101,44 +121,8 @@
'';
home-manager.users.govanify = {
# initial pass setup
# should i make this global?
home.file.".cache/clone-pass.sh".source = ./../dotfiles/clone-pass.sh;
};
environment.extraInit = ''
# GTK3: add theme to search path for themes
export XDG_DATA_DIRS="${pkgs.breeze-gtk}/share:${pkgs.breeze-qt5}/share:$XDG_DATA_DIRS"
# GTK3: add /etc/xdg/gtk-3.0 to search path for settings.ini
export XDG_CONFIG_DIRS="/etc/xdg:$XDG_CONFIG_DIRS"
# GTK2 theme + icon theme
export GTK2_RC_FILES=${pkgs.writeText "iconrc" ''gtk-icon-theme-name="breeze"''}:$GTK2_RC_FILES
# QT theme
#export QT_STYLE_OVERRIDE=breeze
export QT_QPA_PLATFORM=wayland-egl
export GDK_BACKEND=wayland
'';
environment.etc."xdg/gtk-3.0/settings.ini" = {
text = ''
[Settings]
gtk-icon-theme-name=breeze-dark
gtk-theme-name=Breeze-Dark
gtk-application-prefer-dark-theme = true
'';
mode = "444";
};
environment.etc."gtk-2.0/gtkrc" = {
text = ''
gtk-icon-theme-name=breeze-dark
'';
mode = "444";
};
# QT4/5 global theme
environment.etc."xdg/Trolltech.conf" = {
text = ''
[Qt]
style=Breeze-dark
'';
mode = "444";
};
}

+ 1
- 0
common/xdg.nix View File

@ -59,6 +59,7 @@
# '';
#});
# todo: add w3m
};
};


+ 4
- 0
dotfiles/graphical/qt5ct/breeze-dark.conf View File

@ -0,0 +1,4 @@
[ColorScheme]
active_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #3daee9, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1
disabled_colors=#6e7175, #2e3338, #4a5259, #3e444a, #16191b, #282c30, #65686a, #ffffff, #6e7175, #212427, #2e3338, #101213, #2e3338, #6e7175, #234257, #404648, #2e3338, #000000, #31363b, #eff0f1
inactive_colors=#eff0f1, #31363b, #4c545c, #40464d, #171a1c, #2a2e32, #eff0f1, #ffffff, #eff0f1, #232629, #31363b, #111314, #224e65, #eff0f1, #2980b9, #7f8c8d, #31363b, #000000, #31363b, #eff0f1

+ 28
- 0
dotfiles/graphical/qt5ct/qt5ct.conf View File

@ -0,0 +1,28 @@
[Appearance]
color_scheme_path=/etc/xdg/qt5ct/breeze-dark.conf
custom_palette=true
icon_theme=breeze-dark
standard_dialogs=default
style=Breeze
[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=3
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34\0\0\0\0\0\0\0\x14\0\0\x3\xe\0\0\x3q\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\x3\xbd\0\0\x4\x34)

dotfiles/sway/config → dotfiles/graphical/sway/config View File


dotfiles/sway/locale.sh → dotfiles/graphical/sway/locale.sh View File


dotfiles/sway/status-desktop.sh → dotfiles/graphical/sway/status-desktop.sh View File


dotfiles/sway/status.sh → dotfiles/graphical/sway/status.sh View File


+ 1
- 1
pkgs/vim.nix View File

@ -8,7 +8,7 @@ let
vimAlias = true;
plugins = with pkgs.vimPlugins; [ tagbar gruvbox nerdtree fugitive
airline ctrlp multiple-cursors surround
nerdcommenter easymotion vim-obsession vim-prosession
nerdcommenter easymotion vim-obsession #vim-prosession
syntastic ultisnips vim-snippets deoplete-nvim
deoplete-rust deoplete-clang deoplete-jedi vim-nix
rust-vim ];


Loading…
Cancel
Save