feat: 0501 update

This commit is contained in:
2025-05-01 10:49:14 +08:00
parent dd010c6271
commit 1ff4475a8f
7 changed files with 113 additions and 113 deletions

View File

@@ -5,11 +5,6 @@
...
}:
{
my.home.systemd.user.services.swaync = {
Unit.After = [ "graphical-session.target" ];
Service.ExecStart = [ "swaync" ];
};
my.home.programs.niri.settings = {
input = {
focus-follows-mouse = {
@@ -86,7 +81,6 @@
XDG_CURRENT_DESKTOP = "niri";
XDG_SESSION_DESKTOP = "niri";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
STEAM_FORCE_DESKTOPUI_SCALING = "1.25";
DISPLAY = ":0";
};
@@ -96,6 +90,7 @@
"--daemon"
]
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
[
"${lib.getExe pkgs.swaybg}"
"-i"
@@ -247,10 +242,13 @@
"Mod+Shift+Equal".action.set-window-height = "+10%";
"Ctrl+Alt+A".action = screenshot;
# "Print".action = screenshot-screen;
"Print".action.screenshot-screen = [ ];
"Alt+Print".action = screenshot-window;
"Mod+Shift+E".action = quit;
"Mod+O".action = toggle-overview;
"Super+Tab".action = toggle-overview;
}
// lib.attrsets.mergeAttrsList (
map (n: {

View File

@@ -52,11 +52,11 @@ in
};
};
};
programs.niri = {
enable = true;
package = pkg;
};
my.home = {
programs.niri = {
enable = true;
package = pkg;
};
home.packages = with pkgs; [
wlr-randr
wl-clipboard

View File

@@ -45,60 +45,59 @@ lib.my.makeSwitch {
"Name" = "pinyin";
"Layout" = "";
};
/*
"Groups/0/Items/2" = {
"Name" = "mozc";
"Layout" = "";
};
*/
"GroupOrder"."0" = "Default";
};
addons = {
classicui.globalSection = {
WheelForPaging = true;
Font = "sans-serif 10";
MenuFont = "Noto Sans CJK SC 10";
TrayFont = "Noto Sans CJK SC Bold 10";
Theme = "lightly";
PerScreenDPI = true;
EnableFractionalScale = true;
};
punctuation.globalSection = {
HalfWidthPuncAfterLetterOrNumber = true;
TypePairedPunctuationsTogether = false;
Enabled = true;
};
pinyin = {
globalSection = {
PageSize = 9;
EmojiEnabled = false;
ChaiziEnabled = true;
ExtBEnabled = true;
CloudPinyinEnabled = true;
CloudPinyinIndex = 2;
PreeditInApplication = true;
addons =
let
true = "True";
false = "False";
in
{
classicui.globalSection = {
WheelForPaging = true;
Font = "sans-serif 10";
MenuFont = "Noto Sans CJK SC 10";
TrayFont = "Noto Sans CJK SC Bold 10";
Theme = "lightly";
PerScreenDPI = true;
EnableFractionalScale = true;
};
sections = {
Fuzzy = {
VE_UE = true;
NG_GN = true;
Inner = true;
InnerShort = true;
PartialFinal = false;
V_U = true;
IN_ING = true;
U_OU = true;
punctuation.globalSection = {
HalfWidthPuncAfterLetterOrNumber = true;
TypePairedPunctuationsTogether = false;
Enabled = true;
};
pinyin = {
globalSection = {
PageSize = 9;
EmojiEnabled = false;
ChaiziEnabled = true;
ExtBEnabled = true;
CloudPinyinEnabled = true;
CloudPinyinIndex = 2;
PreeditInApplication = true;
};
sections = {
Fuzzy = {
VE_UE = true;
NG_GN = true;
Inner = true;
InnerShort = true;
PartialFinal = false;
V_U = true;
IN_ING = true;
U_OU = true;
};
};
};
cloudpinyin.globalSection = {
Backend = "Baidu";
MinimumPinyinLength = 4;
};
clipboard.globalSection = {
TriggerKey = "";
};
};
cloudpinyin.globalSection = {
Backend = "Baidu";
MinimumPinyinLength = 4;
};
clipboard.globalSection = {
TriggerKey = "";
};
};
};
ignoreUserConfig = true;
};