theme qt6

among other things..
This commit is contained in:
zack 2025-01-19 15:04:19 -05:00
parent 20108064de
commit 4cca1dc327
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
16 changed files with 326 additions and 136 deletions

View file

@ -15,7 +15,7 @@ in {
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
package = pkgs.rofi;
package = pkgs.rofi-wayland;
# Basic configuration
terminal = "kitty";

View file

@ -16,7 +16,7 @@ in {
# bold = mkStringOpt "JetBrainsMonoNL Nerd Font Mono ExtraBold" "Bold Font";
# italic = mkStringOpt "JetBrainsMonoNL Nerd Font Mono Bold Italic" "Italic Font";
# bold_italic = mkStringOpt "JetBrainsMonoNL Nerd Font Mono ExtraBold Italic" "Bold Italic Font";
normal = mkStringOpt "Iosevka" "Normal Font";
normal = mkStringOpt "Pragmata Pro Mono" "Normal Font";
bold = mkStringOpt "Iosevka ExtraBold" "Bold Font";
italic = mkStringOpt "Iosevka Bold Italic" "Italic Font";
bold_italic = mkStringOpt "Iosevka ExtraBold Italic" "Bold Italic Font";

View file

@ -41,7 +41,7 @@ in {
settings = {
window_padding_width = 12;
background_opacity = "0.8";
background_opacity = "0.9";
};
};
};

View file

@ -16,8 +16,8 @@ return {
preset = {
header = [[
l
l ~
l ~
f_,)
]],
},
@ -26,9 +26,12 @@ return {
},
{
"catppuccin",
opts = { integrations = {
blink_cmp = true,
} },
opts = {
transparent_background = true,
integrations = {
blink_cmp = true,
},
},
},
"f-person/git-blame.nvim",
{ "nvim-lualine/lualine.nvim", enabled = false },

View file

@ -35,7 +35,6 @@ in {
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_window_status_style "basic"
set -g default-terminal "tmux-256color"
set -g allow-passthrough on
@ -61,6 +60,22 @@ in {
bind -n M-H previous-window
bind -n M-L next-window
bind-key C-j display-popup -E "\
tmux list-sessions -F '#{session_name}' |\
fzf --reverse --header 'Switch sessions' |\
xargs tmux switch-client -t"
set-option -g destroy-unattached on
set-option -g exit-empty on
set-option -g exit-unattached on
set-hook -g after-new-session 'run-shell "tmux rename-session \"#{b:pane_current_path}\""'
set-hook -g after-new-window 'run-shell "tmux rename-session \"#{b:pane_current_path}\""'
set-hook -g after-kill-pane 'run-shell "tmux rename-session \"#{b:pane_current_path}\""'
set-hook -g pane-focus-in 'run-shell "tmux rename-session \"#{b:pane_current_path}\""'
'';
};
};

View file

@ -0,0 +1,24 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.rice.qt;
in {
options.rice.qt = with types; {
enable = mkBoolOpt false "Enable QT Customization";
};
config = mkIf cfg.enable {
catppuccin.kvantum.enable = true;
catppuccin.kvantum.apply = true;
qt.enable = true;
qt.style.name = "kvantum";
qt.platformTheme.name = "kvantum";
};
}

View file

@ -60,7 +60,7 @@ in {
bindkey "^[[1;5D" backward-word
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
tmux new-session
fi
'';

View file

@ -39,10 +39,6 @@ in {
};
config = mkIf cfg.enable {
home.packages = [
pkgs.xwayland
];
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;

View file

@ -49,6 +49,7 @@ in {
systemd
ripgrep
mullvad
killall
sd
];
};
@ -127,9 +128,9 @@ in {
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# Isolate host to core 0
systemctl set-property --runtime -- user.slice AllowedCPUs=0-6
systemctl set-property --runtime -- system.slice AllowedCPUs=0-6
systemctl set-property --runtime -- init.scope AllowedCPUs=0-6
systemctl set-property --runtime -- user.slice AllowedCPUs=0-8
systemctl set-property --runtime -- system.slice AllowedCPUs=0-8
systemctl set-property --runtime -- init.scope AllowedCPUs=0-8
# disable vpn
mullvad disconnect -w

View file

@ -40,6 +40,7 @@ in {
programs.hyprland = {
withUWSM = true;
enable = true;
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
};
@ -84,7 +85,7 @@ in {
config.common.default = "*";
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xwaylandvideobridge
# pkgs.xwaylandvideobridge
];
};
};

View file

@ -31,25 +31,93 @@ in {
dejavu_fonts
iosevka
cantarell-fonts
# (iosevka.override {
# set = "Custom";
# privateBuildPlan = ''
# [buildPlans.IosevkaCustom]
# family = "Iosevka"
# spacing = "normal"
# serifs = "sans"
# noCvSs = true
# exportGlyphNames = true
# (let
# bolder = writeText "bolder.py" ''
# #!/usr/bin/env python
# # Script shamelessly stolen from: https://github.com/shytikov/pragmasevka
#
# import sys
# import fontforge
#
# if len(sys.argv) < 2:
# print("Please provide path prefix of the font to update!")
# exit()
#
# prefix = sys.argv[1]
#
# glyphs = [
# "exclam", "ampersand", "parenleft", "parenright", "asterisk", "plus",
# "comma", "hyphen", "period", "slash", "colon", "semicolon", "less",
# "equal", "greater", "question", "bracketleft", "backslash", "bracketright",
# "asciicircum", "braceleft", "bar", "braceright", "asciitilde",
# ]
#
# pairs = [
# ['regular', 'semibold'],
# ['regularItalic', 'semiboldItalic'],
# ['bold', 'black'],
# ['boldItalic', 'blackItalic'],
# ]
#
# for [recipient, donor] in pairs:
# font = f"{prefix}{recipient}.ttf"
# donor_font = f"{prefix}{donor}.ttf"
#
# target = fontforge.open(font)
# # Finding all punctuation
# target.selection.select(*glyphs)
# # and deleting it to make space
# for i in target.selection.byGlyphs:
# target.removeGlyph(i)
#
# source = fontforge.open(donor_font)
# source.selection.select(*glyphs)
# source.copy()
# target.paste()
#
# target.generate(font)
# '';
# in (iosevka.override
# {
# set = "Custom";
# privateBuildPlan = ''
# [buildPlans.IosevkaCustom]
# family = "Iosevka"
# spacing = "normal"
# serifs = "sans"
# noCvSs = true
# exportGlyphNames = true
#
# [buildPlans.IosevkaCustom.variants]
# inherits = "ss03"
# inherits = "ss08"
# '';
# }))
# .overrideAttrs (oldAttrs: {
# buildInputs =
# (oldAttrs.buildInputs or [])
# ++ [
# pkgs.python3
# pkgs.python3Packages.fontforge
# ];
#
# postInstall = ''
# ${oldAttrs.postInstall or ""}
#
# echo $out
#
# cd $out/share/fonts/truetype
#
# PREFIX="IosevkaCustom-normal"
#
# python3 ${bolder} $PREFIX
# '';
# })
# }))
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
jetbrains-mono
nerd-fonts.iosevka
nerd-fonts.zed-mono
# (nerdfonts.override {fonts = ["ZedMono" "Iosevka"];})
];
@ -59,8 +127,8 @@ in {
fontconfig = {
defaultFonts = {
monospace = [
# "ZedMono Nerd Font Mono"
"Iosevka"
"Pragmata Pro Mono"
# "Iosevka"
"Noto Color Emoji"
];
sansSerif = ["Cantarell" "Noto Color Emoji"];