mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
kde: icon fix
This commit is contained in:
parent
a343383c49
commit
f4c51e6c52
6 changed files with 62 additions and 13 deletions
|
|
@ -24,7 +24,7 @@
|
|||
../../modules/nixos/desktop/xremap.nix
|
||||
|
||||
# desktop environment and display manager
|
||||
../../modules/nixos/desktop/dm/tuigreet.nix
|
||||
../../modules/nixos/desktop/dm/sddm.nix
|
||||
../../modules/nixos/desktop/de/niri.nix
|
||||
../../modules/nixos/desktop/de/kde.nix
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# See https://www.reddit.com/r/NixOS/comments/1kcj34p/how_to_apply_this_sddm_theme_on_nixos/
|
||||
let
|
||||
custom-sddm-astronaut = pkgs.sddm-astronaut.override {
|
||||
embeddedTheme = "astronaut";
|
||||
embeddedTheme = "black_hole";
|
||||
#themeConfig = {
|
||||
# Background = "path/to/background.jpg";
|
||||
# Font = "M+1 Nerd Font";
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ in {
|
|||
file-roller
|
||||
steamtinkerlaunch
|
||||
scanmem
|
||||
dex
|
||||
]
|
||||
++ (mkFcitxIM [
|
||||
pkgs.neovim-qt
|
||||
|
|
@ -168,5 +169,5 @@ in {
|
|||
programs.alacritty.enable = true;
|
||||
|
||||
services.protonmail-bridge.enable = true;
|
||||
services.remmina.enable = true;
|
||||
services.remmina.enable = false; # Don't auto start the service
|
||||
}
|
||||
|
|
|
|||
15
nixcfgs/users/js0ny/programs/desktop/plasma/calendar.nix
Normal file
15
nixcfgs/users/js0ny/programs/desktop/plasma/calendar.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{lib, ...}: {
|
||||
xdg.configFile = {
|
||||
"plasma_calendar_alternatecalendar".text = lib.generators.toINI {} {
|
||||
General = {
|
||||
calendarSystem = "Chinese";
|
||||
dateOffset = 0;
|
||||
};
|
||||
};
|
||||
"plasma_calendar_holiday_regions".text = lib.generators.toINI {} {
|
||||
General = {
|
||||
selectedRegions = "cn_zh-cn,gb-sct_en-gb,hk_zh-cn,gb-eaw_en-gb";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,23 +1,46 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
iconFixRule = entryName: wmclass: {
|
||||
description = "Fix icon for ${entryName}";
|
||||
match = {
|
||||
# TODO: Add regex matching
|
||||
window-class = {
|
||||
value = wmclass;
|
||||
type = "exact";
|
||||
};
|
||||
};
|
||||
apply = {
|
||||
desktopfile = entryName;
|
||||
};
|
||||
};
|
||||
iconFixList = {
|
||||
"virt-manager" = "python3.13 .virt-manager-wrapped";
|
||||
"proton.vpn.app.gtk" = "python3.13 .protonvpn-app-wrapped";
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
../../gwenview.nix
|
||||
../../dolphin.nix
|
||||
./keymaps.nix
|
||||
./calendar.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# kdePackages.yakuake
|
||||
krunner-vscodeprojects
|
||||
jetbrains-runner
|
||||
plasmusic-toolbar
|
||||
kdePackages.wallpaper-engine-plugin
|
||||
plasma-plugin-blurredwallpaper
|
||||
kdePackages.krohnkite
|
||||
];
|
||||
home.sessionVariables = {
|
||||
QT_STYLE_OVERRIDE = "Breeze";
|
||||
};
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
# Apply the icon fix rules
|
||||
window-rules = lib.mkForce (lib.mapAttrsToList iconFixRule iconFixList);
|
||||
session.sessionRestore.restoreOpenApplicationsOnLogin = "startWithEmptySession";
|
||||
fonts = {
|
||||
fixedWidth.family = "Maple Mono NF CN";
|
||||
|
|
@ -43,10 +66,6 @@
|
|||
};
|
||||
};
|
||||
shortcuts = {
|
||||
# Use Ghostty Instead
|
||||
# yakuake = {
|
||||
# "toggle-window-state" = "Meta+`";
|
||||
# };
|
||||
};
|
||||
input.touchpads = [
|
||||
{
|
||||
|
|
@ -87,7 +106,7 @@
|
|||
launchers = [
|
||||
# "applications:org.kde.dolphin.desktop"
|
||||
"applications:firefox.desktop"
|
||||
"applications:com.mitchellh.ghostty.desktop"
|
||||
"applications:kitty.desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -131,7 +150,7 @@
|
|||
accessibility.changeColors.mode = "InvertLightness";
|
||||
general.mouseMode = "TextSelect";
|
||||
};
|
||||
programs.kate.enable = true;
|
||||
programs.kate.enable = false;
|
||||
programs.kate.editor = {
|
||||
font = {
|
||||
family = "Maple Mono NF CN";
|
||||
|
|
|
|||
14
nixcfgs/users/js0ny/programs/desktop/plasma/keymaps.nix
Normal file
14
nixcfgs/users/js0ny/programs/desktop/plasma/keymaps.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
programs.plasma.hotkeys.commands = {
|
||||
"launch-obsidian" = {
|
||||
name = "Launch Obsidian";
|
||||
key = "Meta+O";
|
||||
command = "obsidian";
|
||||
};
|
||||
"launch-terminal" = {
|
||||
name = "Launch Terminal";
|
||||
key = "Meta+Return";
|
||||
command = "kitty";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue