add mail hotkey

This commit is contained in:
Grimmauld 2024-05-01 10:22:51 +02:00
parent 159c70216e
commit 139bd596da
Signed by: Grimmauld
GPG Key ID: C2946668769F91FB
5 changed files with 35 additions and 19 deletions

View File

@ -46,6 +46,7 @@ in
expect expect
neovim-remote neovim-remote
] ++ lib.optionals cfg.graphical [ ] ++ lib.optionals cfg.graphical [
wev
qdirstat qdirstat
libva-utils libva-utils
glxinfo glxinfo
@ -53,7 +54,6 @@ in
vulkan-tools vulkan-tools
gparted gparted
thunderbird
]; ];
programs.git = { programs.git = {

View File

@ -54,6 +54,7 @@ in
openscad openscad
vlc vlc
blender blender
thunderbird
]; ];
xdg.mime.enable = true; xdg.mime.enable = true;
@ -94,6 +95,11 @@ in
"text/x-c" = [ "clion.desktop" ] ++ text_editors; "text/x-c" = [ "clion.desktop" ] ++ text_editors;
"text/x-java-source" = [ "idea-community.desktop" ] ++ text_editors; "text/x-java-source" = [ "idea-community.desktop" ] ++ text_editors;
"video/*" = video_viewers; "video/*" = video_viewers;
"inode/directory" = [
"ranger.desktop"
"dolphin.desktop"
];
"x-scheme-handler/mailto"="thunderbird.desktop";
"application/vnd.oasis.opendocument.chart" = "calc.desktop"; "application/vnd.oasis.opendocument.chart" = "calc.desktop";
"application/vnd.oasis.opendocument.chart-template" = "calc.desktop"; "application/vnd.oasis.opendocument.chart-template" = "calc.desktop";

View File

@ -78,11 +78,11 @@
"yafas": "yafas" "yafas": "yafas"
}, },
"locked": { "locked": {
"lastModified": 1714227479, "lastModified": 1714482312,
"narHash": "sha256-TJsEB9sKK6hMhKGXEeqD6Hz1vvgfwuNNwwt4UmyxHvQ=", "narHash": "sha256-qs41DgEGR2d6Hh+FnfL/6NagoCtRXDXC7yaGD398EXE=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "11b4acecf7aa41e4b3fcb34a985fe0477da4347c", "rev": "8cfa2aa1528faa6319e2e5ab664ff463ba57708c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -382,11 +382,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714203603, "lastModified": 1714430505,
"narHash": "sha256-eT7DENhYy7EPLOqHI9zkIMD9RvMCXcqh6gGqOK5BWYQ=", "narHash": "sha256-SSJQ/KOy8uISnoZgqDoRha7g7PFLSFP/BtMWm0wUz8Q=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c1609d584a6b5e9e6a02010f51bd368cb4782f8e", "rev": "f8e6694edabe4aaa7a85aac47b43ea5d978b116d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -404,11 +404,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714022840, "lastModified": 1714464433,
"narHash": "sha256-i6xZsf7Kvp1n/Sn3nqPY1MJQx0gf80OGQw32PA/aZd8=", "narHash": "sha256-ztvukQ2LvrRQBtiRiut8FgCOyKXgqLTIp3Deg/OguUY=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "94def3af1d45fe4b142beda3aa59a6a98e62ce9e", "rev": "2a5194b960801b68cfc4c811eb1733cf3aa8ece6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -430,11 +430,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1714146712, "lastModified": 1714411325,
"narHash": "sha256-8cdUq1XHTQ2CXSDGQMs0WOtB3eB469RK4iLpgUtQIZQ=", "narHash": "sha256-td58oD5JOlL8LPglrk+c7rP+nJSJmK7zu0kFGF16XPI=",
"owner": "martinvonz", "owner": "martinvonz",
"repo": "jj", "repo": "jj",
"rev": "6752402113445d2cbad66b56ab06094a7fff84d4", "rev": "e54e83b0f5c4a5b7d80894c713ae402a5bb280d0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -467,11 +467,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714068652, "lastModified": 1714468768,
"narHash": "sha256-/5aMM42kNfiIMKKjipBlXVpR/2SGyziA1/lh40sYr9k=", "narHash": "sha256-lxbNfjtTOcY18E9ODj3ZwJiF8UWr58CH+/9V3eHdtoQ=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "8d99e3c015fe210acf0e67fa62335688f5e3df15", "rev": "68ff36f6834beecf74b30a724ae3ef31874a3518",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -612,11 +612,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1714272655, "lastModified": 1714409183,
"narHash": "sha256-3/ghIWCve93ngkx5eNPdHIKJP/pMzSr5Wc4rNKE1wOc=", "narHash": "sha256-Wacm/DrzLD7mjFGnSxxyGkJgg2unU/dNdNgdngBH+RU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "12430e43bd9b81a6b4e79e64f87c624ade701eaf", "rev": "576ecd43d3b864966b4423a853412d6177775e8b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -38,6 +38,10 @@
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch"; url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch";
hash = "sha256-8RvPI8Id+Ttgv07IMBTAxkSc+K00WhiWgdgrCcULd7o="; hash = "sha256-8RvPI8Id+Ttgv07IMBTAxkSc+K00WhiWgdgrCcULd7o=";
} }
{
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/307541.patch";
hash = "sha256-cyxiWCxBOKrET710C8o9Cwksy64HRez6mB1qF+anHMI=";
}
]; ];
customNixosSystem = system: definitions: customNixosSystem = system: definitions:

View File

@ -163,6 +163,12 @@ in
done <<< $(pgrep spotify -u "$(whoami)") done <<< $(pgrep spotify -u "$(whoami)")
deskwhich spotify | xargs gio launch deskwhich spotify | xargs gio launch
''; in "exec ${getExe open}"; # for some reason tools = audio media on my keyboard?? ''; in "exec ${getExe open}"; # for some reason tools = audio media on my keyboard??
XF86Mail = let open = pkgs.writeShellScriptBin "open_or_switch_mail" ''
desk=$(xdg-settings get default-url-scheme-handler mailto | sed "s/\.desktop//")
swaymsg [app_id="$desk"] focus || deskwhich $desk | xargs gio launch
'';
in "exec ${getExe open}";
}; };
autolaunch = with pkgs; [ autolaunch = with pkgs; [
# fixme: absolute paths # fixme: absolute paths