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
|
../../modules/nixos/desktop/xremap.nix
|
||||||
|
|
||||||
# desktop environment and display manager
|
# 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/niri.nix
|
||||||
../../modules/nixos/desktop/de/kde.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/
|
# See https://www.reddit.com/r/NixOS/comments/1kcj34p/how_to_apply_this_sddm_theme_on_nixos/
|
||||||
let
|
let
|
||||||
custom-sddm-astronaut = pkgs.sddm-astronaut.override {
|
custom-sddm-astronaut = pkgs.sddm-astronaut.override {
|
||||||
embeddedTheme = "astronaut";
|
embeddedTheme = "black_hole";
|
||||||
#themeConfig = {
|
#themeConfig = {
|
||||||
# Background = "path/to/background.jpg";
|
# Background = "path/to/background.jpg";
|
||||||
# Font = "M+1 Nerd Font";
|
# Font = "M+1 Nerd Font";
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ in {
|
||||||
file-roller
|
file-roller
|
||||||
steamtinkerlaunch
|
steamtinkerlaunch
|
||||||
scanmem
|
scanmem
|
||||||
|
dex
|
||||||
]
|
]
|
||||||
++ (mkFcitxIM [
|
++ (mkFcitxIM [
|
||||||
pkgs.neovim-qt
|
pkgs.neovim-qt
|
||||||
|
|
@ -168,5 +169,5 @@ in {
|
||||||
programs.alacritty.enable = true;
|
programs.alacritty.enable = true;
|
||||||
|
|
||||||
services.protonmail-bridge.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,
|
pkgs,
|
||||||
config,
|
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 = [
|
imports = [
|
||||||
../../gwenview.nix
|
../../gwenview.nix
|
||||||
../../dolphin.nix
|
../../dolphin.nix
|
||||||
|
./keymaps.nix
|
||||||
|
./calendar.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# kdePackages.yakuake
|
# kdePackages.yakuake
|
||||||
krunner-vscodeprojects
|
krunner-vscodeprojects
|
||||||
jetbrains-runner
|
jetbrains-runner
|
||||||
plasmusic-toolbar
|
plasmusic-toolbar
|
||||||
|
kdePackages.wallpaper-engine-plugin
|
||||||
|
plasma-plugin-blurredwallpaper
|
||||||
|
kdePackages.krohnkite
|
||||||
];
|
];
|
||||||
home.sessionVariables = {
|
|
||||||
QT_STYLE_OVERRIDE = "Breeze";
|
|
||||||
};
|
|
||||||
programs.plasma = {
|
programs.plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Apply the icon fix rules
|
||||||
|
window-rules = lib.mkForce (lib.mapAttrsToList iconFixRule iconFixList);
|
||||||
session.sessionRestore.restoreOpenApplicationsOnLogin = "startWithEmptySession";
|
session.sessionRestore.restoreOpenApplicationsOnLogin = "startWithEmptySession";
|
||||||
fonts = {
|
fonts = {
|
||||||
fixedWidth.family = "Maple Mono NF CN";
|
fixedWidth.family = "Maple Mono NF CN";
|
||||||
|
|
@ -43,10 +66,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
shortcuts = {
|
shortcuts = {
|
||||||
# Use Ghostty Instead
|
|
||||||
# yakuake = {
|
|
||||||
# "toggle-window-state" = "Meta+`";
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
input.touchpads = [
|
input.touchpads = [
|
||||||
{
|
{
|
||||||
|
|
@ -87,7 +106,7 @@
|
||||||
launchers = [
|
launchers = [
|
||||||
# "applications:org.kde.dolphin.desktop"
|
# "applications:org.kde.dolphin.desktop"
|
||||||
"applications:firefox.desktop"
|
"applications:firefox.desktop"
|
||||||
"applications:com.mitchellh.ghostty.desktop"
|
"applications:kitty.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -131,7 +150,7 @@
|
||||||
accessibility.changeColors.mode = "InvertLightness";
|
accessibility.changeColors.mode = "InvertLightness";
|
||||||
general.mouseMode = "TextSelect";
|
general.mouseMode = "TextSelect";
|
||||||
};
|
};
|
||||||
programs.kate.enable = true;
|
programs.kate.enable = false;
|
||||||
programs.kate.editor = {
|
programs.kate.editor = {
|
||||||
font = {
|
font = {
|
||||||
family = "Maple Mono NF CN";
|
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