Compare commits

..

8 commits

9 changed files with 65 additions and 35 deletions

View file

@ -1,8 +1,14 @@
{ ... }: {
{ lib, ... }: {
imports = [
./Fprint.nix
];
# Keyd Print to Macro remap.
services.keyd.keyboards.default.settings.main.print = "layer(layer_macro)";
# Reduce font size.
stylix.fonts.sizes = {
applications = lib.mkForce 10;
terminal = lib.mkForce 8;
};
}

View file

@ -16,14 +16,18 @@ in {
];
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [
grim slurp # Screenshot.
mako # Notification system.
networkmanagerapplet # Internet configuration.
pamixer pavucontrol pulseaudio # Audio.
playerctl # Multimedia controls.
script
];
environment = {
systemPackages = with pkgs; [
grim slurp # Screenshot.
mako # Notification system.
networkmanagerapplet # Internet configuration.
pamixer pavucontrol pulseaudio # Audio.
playerctl # Multimedia controls.
script # My custom Sway shell scripts.
];
variables.XDG_CURRENT_DESKTOP = "sway";
};
programs.sway = {
enable = true;

View file

@ -15,7 +15,6 @@
gnumake gnused # GNU utils.
gparted parted # GUI/CLI disk partition tool.
imagemagick # Image converter and transformation tool.
jdk # Java.
jq # Json parser.
lm_sensors # Hardware sensors, like temperature and fan speeds.
lshw # Detailed hardware info tool.
@ -40,4 +39,5 @@
# Special packages.
programs.adb.enable = true;
services.udisks2.enable = true;
programs.java.enable = true;
}

View file

@ -1,9 +1,8 @@
{ key, style, ... }: let
mod = key.tmux.mod;
accent = style.color.accent;
bg = style.color.bg.dark;
fg = style.color.fg.light;
fg = style.color.bg.dark;
selection = style.color.selection;
in {
text = ''
setw -g mode-keys vi
@ -12,6 +11,6 @@ in {
bind -T copy-mode-vi ${key.tmux.copy.select} send -X begin-selection
bind -T copy-mode-vi ${key.tmux.copy.copy} send-keys -X copy-pipe-and-cancel "pbcopy"
set -g mode-style "fg=#${bg} bg=#${accent} bold"
set -g mode-style "fg=#${fg} bg=#${selection} bold"
'';
}

View file

@ -62,6 +62,9 @@ in {
# Proton.
WINEFSYNC = "1";
# GTK apps compat.
GTK_CSD = 0;
};
};

View file

@ -1,5 +1,20 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
wl-clipboard
];
environment = {
systemPackages = with pkgs; [
wl-clipboard # CLI clipboard support.
];
variables = {
# Compatibility variables.
ECORE_EVAS_ENGINE = "wayland_egl";
ELM_ENGINE = "wayland_egl";
GDK_BACKEND = "wayland";
MOZ_ENABLE_WAYLAND = "1";
QT_QPA_PLATFORM = "wayland-egl";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SAL_USE_VCLPLUGIN = "gtk3";
SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1";
};
};
}

View file

@ -1,4 +1,4 @@
{ util, ... }: {
{ util, style, ... }: {
text = util.trimTabs ''
// Bookmarks.
lockPref("browser.microsummary.enabled", true);
@ -7,18 +7,18 @@
// Fonts.
pref("browser.display.use_document_fonts", 0);
lockPref("font.minimum-size.x-cyrillic", 12);
lockPref("font.minimum-size.x-unicode", 12);
lockPref("font.minimum-size.x-western", 12);
lockPref("font.name.monospace.x-cyrillic", "Terminess Nerd Font Mono");
lockPref("font.name.monospace.x-unicode", "Terminess Nerd Font Mono");
lockPref("font.name.monospace.x-western", "Terminess Nerd Font Mono");
lockPref("font.name.sans-serif.x-cyrillic", "SF Pro Text");
lockPref("font.name.sans-serif.x-unicode", "SF Pro Text");
lockPref("font.name.sans-serif.x-western", "SF Pro Text");
lockPref("font.name.serif.x-cyrillic", "SF Pro Text");
lockPref("font.name.serif.x-unicode", "SF Pro Text");
lockPref("font.name.serif.x-western", "SF Pro Text");
lockPref("font.minimum-size.x-cyrillic", ${toString(style.font.size.application)});
lockPref("font.minimum-size.x-unicode", ${toString(style.font.size.application)});
lockPref("font.minimum-size.x-western", ${toString(style.font.size.application)});
lockPref("font.name.monospace.x-cyrillic", "${style.font.monospace.name}");
lockPref("font.name.monospace.x-unicode", "${style.font.monospace.name}");
lockPref("font.name.monospace.x-western", "${style.font.monospace.name}");
lockPref("font.name.sans-serif.x-cyrillic", "${style.font.sansSerif.name}");
lockPref("font.name.sans-serif.x-unicode", "${style.font.sansSerif.name}");
lockPref("font.name.sans-serif.x-western", "${style.font.sansSerif.name}");
lockPref("font.name.serif.x-cyrillic", "${style.font.serif.name}");
lockPref("font.name.serif.x-unicode", "${style.font.serif.name}");
lockPref("font.name.serif.x-western", "${style.font.serif.name}");
// Animations.
lockPref("browser.fullscreen.animateUp", 0);
@ -35,5 +35,8 @@
// Formats.
lockPref("image.jxl.enabled", true);
// User agent.
// pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36");
'';
}

View file

@ -9,10 +9,7 @@
mkBookmark = name: url: { inherit name url; };
in {
# Disable profile switching on rebuild.
environment.variables = {
MOZ_LEGACY_PROFILES = "1";
MOZ_ENABLE_WAYLAND = "1";
};
environment.variables.MOZ_LEGACY_PROFILES = "1";
programs.firefox = {
enable = true;
@ -46,6 +43,7 @@ in {
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
"{e7625f06-e252-479d-ac7a-db68aeaff2cb}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/togglefonts/latest.xpi";
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/user-agent-string-switcher/latest.xpi";
# NOTE: This extension is helpful to find the required parameters for this config.
# Or find them yourself inside the `about:support`.
# "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";

View file

@ -1,4 +1,4 @@
{ ... }: {
{ setting, ... }: {
text = ''
[jetbrains-idea-ce]
alt.a = C-A-5
@ -14,5 +14,7 @@
alt.v = C-q
alt.x = C-f4
alt.z = C-f2
alt./ = macro(C-/ up)
alt.tab = timeout(f8, ${toString(setting.keyd.timeout.ms)}, macro2(0, 0, f7))
'';
}