From 514f1bfa25ad77b013e88747250aa1069cb73937 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 20 Nov 2023 11:04:59 +0000 Subject: [PATCH] Add workspace and mimeapps entry for teams-for-linux --- home/hyprland/config.nix | 7 +++++++ home/hyprland/default.nix | 3 ++- home/hyprland/waybar/default.nix | 1 + hosts/Ronin/configuration.nix | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/home/hyprland/config.nix b/home/hyprland/config.nix index 4ac0b805..04d66a3b 100644 --- a/home/hyprland/config.nix +++ b/home/hyprland/config.nix @@ -199,10 +199,12 @@ in '' bind = SUPER, C, moveworkspacetomonitor, name:chromium current bind = SUPER, C, workspace, name:chromium + bind = SUPER SHIFT, C, movetoworkspace, name:chromium windowrule = workspace name:chromium, (chromium-browser) bind = SUPER, D, moveworkspacetomonitor, name:discord current bind = SUPER, D, workspace, name:discord + bind = SUPER SHIFT, D, movetoworkspace, name:discord windowrule = workspace name:discord, (discord) bind = SUPER, S, moveworkspacetomonitor, name:steam current @@ -215,6 +217,11 @@ in '' bind = SUPER SHIFT, R, movetoworkspace, name:remote windowrule = workspace name:remote, (Nxplayer.bin) + bind = SUPER, O, moveworkspacetomonitor, name:teams current + bind = SUPER, O, workspace, name:teams + bind = SUPER SHIFT, O, movetoworkspace, name:teams + windowrule = workspace name:teams, (teams-for-linux) + # Special workspaces bind = SUPER, comma, workspace, m-1 bind = SUPER SHIFT, comma, movetoworkspace, r-1 diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index ef8d18a1..226bc1d0 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - home.packages = with pkgs; [ signal-desktop discord ]; + home.packages = with pkgs; [ discord teams-for-linux ]; imports = [ ./waybar/default.nix ./anyrun/default.nix @@ -40,6 +40,7 @@ "image/png" = [ "swayimg.desktop" ]; "video/mp4" = [ "mpv.desktop" ]; "text/csv" = [ "calc.desktop" ]; + "x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ]; }; associations.added = defaultApplications; }; diff --git a/home/hyprland/waybar/default.nix b/home/hyprland/waybar/default.nix index 29a6d887..62f7e197 100644 --- a/home/hyprland/waybar/default.nix +++ b/home/hyprland/waybar/default.nix @@ -43,6 +43,7 @@ "discord" = "󰙯"; "steam" = "󰓓"; "remote" = "󰢹"; + "teams" = "󰊻"; default = "󰋙"; special = "󱗿"; urgent = "󰁡"; diff --git a/hosts/Ronin/configuration.nix b/hosts/Ronin/configuration.nix index 79ebef1b..fba4b343 100644 --- a/hosts/Ronin/configuration.nix +++ b/hosts/Ronin/configuration.nix @@ -15,7 +15,7 @@ etc."ppp/options".text = '' ipcp-accept-remote ''; - systemPackages = with pkgs; [ openfortivpn teams-for-linux zoom-us ]; + systemPackages = with pkgs; [ openfortivpn zoom-us ]; }; programs.chromium.homepageLocation = "https://nucleus.ukaea.uk"; }