mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
telegram
This commit is contained in:
parent
c15c383679
commit
a799c465db
5 changed files with 111 additions and 8 deletions
|
|
@ -6,8 +6,14 @@
|
||||||
"Maple Mono NF CN"
|
"Maple Mono NF CN"
|
||||||
"JetBrainsMono Nerd Font"
|
"JetBrainsMono Nerd Font"
|
||||||
];
|
];
|
||||||
serif = ["LXGW WenKai"];
|
serif = [
|
||||||
sansSerif = ["LXGW Neo XiHei"];
|
"LXGW WenKai"
|
||||||
|
"Noto Serif CJK SC"
|
||||||
|
];
|
||||||
|
sansSerif = [
|
||||||
|
"LXGW Neo XiHei"
|
||||||
|
"Noto Sans CJK SC"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,14 +66,12 @@ in {
|
||||||
warp-terminal
|
warp-terminal
|
||||||
|
|
||||||
# PDF Viewer
|
# PDF Viewer
|
||||||
kdePackages.okular # default
|
kdePackages.okular
|
||||||
sioyek
|
sioyek
|
||||||
|
|
||||||
# Image Viewer
|
# Image Viewer
|
||||||
loupe # SUPER FAST 有催人跑的感觉 w/ GPU Accel.
|
loupe # SUPER FAST 有催人跑的感觉 w/ GPU Accel.
|
||||||
|
|
||||||
kdePackages.elisa
|
|
||||||
|
|
||||||
# Email
|
# Email
|
||||||
protonmail-bridge
|
protonmail-bridge
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
@ -83,8 +81,6 @@ in {
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
|
||||||
pcloud
|
pcloud
|
||||||
materialgram
|
|
||||||
ayugram-desktop
|
|
||||||
signal-desktop
|
signal-desktop
|
||||||
# Use Wayland for Jetbrains
|
# Use Wayland for Jetbrains
|
||||||
# (jetbrains.idea-ultimate.override {
|
# (jetbrains.idea-ultimate.override {
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,8 @@ in {
|
||||||
"Mod+Escape".allow-inhibiting = false;
|
"Mod+Escape".allow-inhibiting = false;
|
||||||
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
||||||
|
|
||||||
|
"Mod+Grave".action = focus-workspace-previous;
|
||||||
|
|
||||||
"Ctrl+Alt+Delete".action = quit;
|
"Ctrl+Alt+Delete".action = quit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
98
nixcfgs/users/js0ny/programs/telegram.nix
Normal file
98
nixcfgs/users/js0ny/programs/telegram.nix
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
shortcuts = builtins.toJSON [
|
||||||
|
{
|
||||||
|
command = "previous_chat";
|
||||||
|
keys = "alt+k";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "next_chat";
|
||||||
|
keys = "alt+j";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "self_chat";
|
||||||
|
keys = "alt+0";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat1";
|
||||||
|
keys = "alt+1";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "all_chats";
|
||||||
|
keys = "alt+1";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat2";
|
||||||
|
keys = "alt+2";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder1";
|
||||||
|
keys = "alt+2";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat3";
|
||||||
|
keys = "alt+3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder2";
|
||||||
|
keys = "alt+3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat4";
|
||||||
|
keys = "alt+4";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder3";
|
||||||
|
keys = "alt+4";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat5";
|
||||||
|
keys = "alt+5";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder4";
|
||||||
|
keys = "alt+5";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat6";
|
||||||
|
keys = "alt+6";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder5";
|
||||||
|
keys = "alt+6";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat7";
|
||||||
|
keys = "alt+7";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "folder6";
|
||||||
|
keys = "alt+7";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "pinned_chat8";
|
||||||
|
keys = "alt+8";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "last_folder";
|
||||||
|
keys = "alt+8";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "show_archive";
|
||||||
|
keys = "alt+9";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ayugram-desktop
|
||||||
|
materialgram
|
||||||
|
];
|
||||||
|
xdg.dataFile = {
|
||||||
|
"AyuGramDesktop/tdata/shortcuts-custom.json".text = shortcuts;
|
||||||
|
"materialgram/tdata/shortcuts-custom.json".text = shortcuts;
|
||||||
|
"TelegramDesktop/tdata/shortcuts-custom.json".text = shortcuts;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -38,7 +38,7 @@ in {
|
||||||
./programs/firefox
|
./programs/firefox
|
||||||
./programs/emacs.nix
|
./programs/emacs.nix
|
||||||
./programs/vscode.nix
|
./programs/vscode.nix
|
||||||
# ./programs/xilinx.nix
|
./programs/xilinx.nix
|
||||||
./programs/mime.nix
|
./programs/mime.nix
|
||||||
./programs/zed-editor.nix
|
./programs/zed-editor.nix
|
||||||
./programs/rime.nix
|
./programs/rime.nix
|
||||||
|
|
@ -76,6 +76,7 @@ in {
|
||||||
./programs/celluloid.nix
|
./programs/celluloid.nix
|
||||||
./programs/picard.nix
|
./programs/picard.nix
|
||||||
./programs/cider-2.nix
|
./programs/cider-2.nix
|
||||||
|
./programs/telegram.nix
|
||||||
|
|
||||||
# Desktop Linux
|
# Desktop Linux
|
||||||
./programs/desktop/gnome
|
./programs/desktop/gnome
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue