diff --git a/TODO b/TODO index a5ac0cd..ab03674 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,2 @@ install steam, wine and lib32 multilib pipwire-pulseaudio as root to X11 -color to kernel cmdline -flatpack teams diff --git a/configure.sh b/configure.sh index cfdf694..38ae44b 100755 --- a/configure.sh +++ b/configure.sh @@ -4,8 +4,8 @@ set -e ### Switch to the script directory _BASENAME=$(basename "$0") -_DIRNAME=$(dirname "$0") -cd "$(dirname "$0")" || _exit 1 +_DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)" +cd "$_DIRNAME" || _exit 1 source scripts/functions.sh ### install packages @@ -64,3 +64,4 @@ ln -sf "${_DIRNAME}/links/picom/picom.conf" /etc/xdg/picom.conf ### Applications mkdir -p ~/.local/share/applications ln -sf "${_DIRNAME}/links/applications/code.desktop" ~/.local/share/applications/code.desktop +ln -sf "${_DIRNAME}/links/applications/teams.desktop" ~/.local/share/applications/teams.desktop diff --git a/links/applications/teams.desktop b/links/applications/teams.desktop new file mode 100644 index 0000000..fe69b87 --- /dev/null +++ b/links/applications/teams.desktop @@ -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; diff --git a/packages b/packages index 98bb7f5..9c91233 100644 --- a/packages +++ b/packages @@ -7,6 +7,7 @@ dmenu dunst feh flameshot +flatpak firefox htop hyprland @@ -32,5 +33,6 @@ remmina ttf-dejavu-nerd wget wireguard-tools +xdg-desktop-portal xorg xorg-xinit diff --git a/scripts/bookmarks.sh b/scripts/bookmarks.sh index e2f35f3..ec88162 100755 --- a/scripts/bookmarks.sh +++ b/scripts/bookmarks.sh @@ -1,8 +1,8 @@ #!/bin/bash _BASENAME=$(basename "$0") -_DIRNAME=$(dirname "$0") -cd "$(dirname "$0")" || _exit 1 +_DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)" +cd "$_DIRNAME" || _exit 1 _URL=$(grep -Ev "^#" ./bookmarks | rofi -dmenu -i -p Bookmarks) diff --git a/scripts/functions.sh b/scripts/functions.sh new file mode 100644 index 0000000..c3b3d61 --- /dev/null +++ b/scripts/functions.sh @@ -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)" +} diff --git a/scripts/mpv.sh b/scripts/mpv.sh index 400591e..116e230 100755 --- a/scripts/mpv.sh +++ b/scripts/mpv.sh @@ -1,8 +1,8 @@ #!/bin/bash _BASENAME=$(basename "$0") -_DIRNAME=$(dirname "$0") -cd "$(dirname "$0")" || _exit 1 +_DIRNAME="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)" +cd "$_DIRNAME" || _exit 1 ## if not $1 if [[ -z $1 ]] diff --git a/scripts/update.sh b/scripts/update.sh index e40de7a..180939c 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,6 +1,5 @@ #!/bin/bash set -e - pacman -Syu --noconfirm -read -r \ No newline at end of file +read -r