mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 02:36:19 +00:00
telegram
This commit is contained in:
parent
c15c383679
commit
a799c465db
5 changed files with 111 additions and 8 deletions
|
|
@ -227,6 +227,8 @@ in {
|
|||
"Mod+Escape".allow-inhibiting = false;
|
||||
"Mod+Escape".action = toggle-keyboard-shortcuts-inhibit;
|
||||
|
||||
"Mod+Grave".action = focus-workspace-previous;
|
||||
|
||||
"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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue