configure teams app

This commit is contained in:
SALVI Jérémie
2024-08-15 20:28:59 +02:00
parent 98bad275f8
commit 650308e098
8 changed files with 74 additions and 10 deletions

2
TODO
View File

@@ -1,4 +1,2 @@
install steam, wine and lib32 multilib install steam, wine and lib32 multilib
pipwire-pulseaudio as root to X11 pipwire-pulseaudio as root to X11
color to kernel cmdline
flatpack teams

View File

@@ -4,8 +4,8 @@ set -e
### Switch to the script directory ### Switch to the script directory
_BASENAME=$(basename "$0") _BASENAME=$(basename "$0")
_DIRNAME=$(dirname "$0") _DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
cd "$(dirname "$0")" || _exit 1 cd "$_DIRNAME" || _exit 1
source scripts/functions.sh source scripts/functions.sh
### install packages ### install packages
@@ -64,3 +64,4 @@ ln -sf "${_DIRNAME}/links/picom/picom.conf" /etc/xdg/picom.conf
### Applications ### Applications
mkdir -p ~/.local/share/applications mkdir -p ~/.local/share/applications
ln -sf "${_DIRNAME}/links/applications/code.desktop" ~/.local/share/applications/code.desktop ln -sf "${_DIRNAME}/links/applications/code.desktop" ~/.local/share/applications/code.desktop
ln -sf "${_DIRNAME}/links/applications/teams.desktop" ~/.local/share/applications/teams.desktop

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Teams - Client for linux
Comment=Microsoft Call, Chat, o365 interface...
GenericName=Teams
Exec=flatpak run com.github.IsmaelMartinez.teams_for_linux --no-sandbox 2&>1 > /dev/null
Icon=teams
Type=Application
StartupNotify=false
StartupWMClass=teams
Actions=new-empty-window;
Keywords=Teams;

View File

@@ -7,6 +7,7 @@ dmenu
dunst dunst
feh feh
flameshot flameshot
flatpak
firefox firefox
htop htop
hyprland hyprland
@@ -32,5 +33,6 @@ remmina
ttf-dejavu-nerd ttf-dejavu-nerd
wget wget
wireguard-tools wireguard-tools
xdg-desktop-portal
xorg xorg
xorg-xinit xorg-xinit

View File

@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
_BASENAME=$(basename "$0") _BASENAME=$(basename "$0")
_DIRNAME=$(dirname "$0") _DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
cd "$(dirname "$0")" || _exit 1 cd "$_DIRNAME" || _exit 1
_URL=$(grep -Ev "^#" ./bookmarks | rofi -dmenu -i -p Bookmarks) _URL=$(grep -Ev "^#" ./bookmarks | rofi -dmenu -i -p Bookmarks)

53
scripts/functions.sh Normal file
View File

@@ -0,0 +1,53 @@
function _template {
source ./templates/variables
sed -i "s|{{foreground}}|$foreground|" "$1"
sed -i "s|{{foreground_light}}|$foreground_light|" "$1"
sed -i "s|{{foreground_lighter}}|$foreground_lighter|" "$1"
sed -i "s|{{background}}|$background|" "$1"
sed -i "s|{{background_light}}|$background_light|" "$1"
sed -i "s|{{background_dark}}|$background_dark|" "$1"
sed -i "s|{{background_darker}}|$background_darker|" "$1"
sed -i "s|{{cursor_color}}|$cursor_color|" "$1"
sed -i "s|{{color0}}|$color0|" "$1"
sed -i "s|{{color8}}|$color8|" "$1"
sed -i "s|{{color1}}|$color1|" "$1"
sed -i "s|{{color9}}|$color9|" "$1"
sed -i "s|{{color2}}|$color2|" "$1"
sed -i "s|{{color10}}|$color10|" "$1"
sed -i "s|{{color3}}|$color3|" "$1"
sed -i "s|{{color11}}|$color11|" "$1"
sed -i "s|{{color4}}|$color4|" "$1"
sed -i "s|{{color12}}|$color12|" "$1"
sed -i "s|{{color5}}|$color5|" "$1"
sed -i "s|{{color13}}|$color13|" "$1"
sed -i "s|{{color6}}|$color6|" "$1"
sed -i "s|{{color14}}|$color14|" "$1"
sed -i "s|{{color7}}|$color7|" "$1"
sed -i "s|{{color15}}|$color15|" "$1"
}
function _kernel_colors {
source ../templates/variables
printf "\e[32m==> Generating for kernel arg\e[0m\n"
transform_colors ()
{
printf "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d" \
"0x$(cut -c "$1" <<< "${color0}")" \
"0x$(cut -c "$1" <<< "${color1}")" \
"0x$(cut -c "$1" <<< "${color2}")" \
"0x$(cut -c "$1" <<< "${color3}")" \
"0x$(cut -c "$1" <<< "${color4}")" \
"0x$(cut -c "$1" <<< "${color5}")" \
"0x$(cut -c "$1" <<< "${color6}")" \
"0x$(cut -c "$1" <<< "${color7}")" \
"0x$(cut -c "$1" <<< "${color8}")" \
"0x$(cut -c "$1" <<< "${color9}")" \
"0x$(cut -c "$1" <<< "${color10}")" \
"0x$(cut -c "$1" <<< "${color11}")" \
"0x$(cut -c "$1" <<< "${color12}")" \
"0x$(cut -c "$1" <<< "${color13}")" \
"0x$(cut -c "$1" <<< "${color14}")" \
"0x$(cut -c "$1" <<< "${color15}")"
}
printf "vt.default_red=%s vt.default_grn=%s vt.default_blu=%s" "$(transform_colors 1-2)" "$(transform_colors 3-4)" "$(transform_colors 5-6)"
}

View File

@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
_BASENAME=$(basename "$0") _BASENAME=$(basename "$0")
_DIRNAME=$(dirname "$0") _DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
cd "$(dirname "$0")" || _exit 1 cd "$_DIRNAME" || _exit 1
## if not $1 ## if not $1
if [[ -z $1 ]] if [[ -z $1 ]]

View File

@@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
set -e set -e
pacman -Syu --noconfirm pacman -Syu --noconfirm
read -r read -r