فهرست منبع

remove more uneeded packages and fix hyprland config

Noah Vogt 1 سال پیش
والد
کامیت
31b8d7b627
2فایلهای تغییر یافته به همراه12 افزوده شده و 30 حذف شده
  1. 9 7
      dot-config/hypr/hyprland.conf
  2. 3 23
      videopc-bootstrap.sh

+ 9 - 7
dot-config/hypr/hyprland.conf

@@ -1,4 +1,6 @@
-$mainMod = SUPER
+# Monitor Config
+monitor=,preferred,auto,1
+monitor=,addreserved, 0, 0, 0, 0
 
 general {
     # Gaps and border
@@ -10,7 +12,8 @@ general {
     # Functionality
     no_focus_fallback = true
     layout = master
-    allow_tearing = false # some guy told me tearing might make things smoother idk
+
+    allow_tearing = false
 }
 
 
@@ -21,7 +24,6 @@ animations {
 misc {
     vfr = true
     vrr = 1
-    animate_manual_resizes = false
     enable_swallow = true
 
     disable_hyprland_logo = true
@@ -29,11 +31,11 @@ misc {
     new_window_takes_over_fullscreen = 2
 }
 
-# Window rules
+# Window Rules
 windowrule = workspace 1 silent, title:^(pulpit_in)(.*)$
 windowrule = workspace 2 silent, title:^(rtmp_in)(.*)$
 
 # Exec Rules
-exec-once=[workspace 4 silent] kitty -e ~/.local/bin/videopc_api
-exec-once=[workspace 4 silent] kitty -e ~/.local/bin/show-rtmp-in
-exec-once=[workspace 4 silent] kitty -e ~/.local/bin/show-pulpit-in
+exec-once=[workspace 4 silent] kitty -e /home/videopc/.local/bin/videopc_api
+exec-once=[workspace 4 silent] kitty -e /home/videopc/.local/bin/show-rtmp-in
+exec-once=[workspace 4 silent] kitty -e /home/videopc/.local/bin/show-pulpit-in

+ 3 - 23
videopc-bootstrap.sh

@@ -109,7 +109,7 @@ if ! grep -q "^\s*\[xdg-repo\]\s*$" /etc/pacman.conf; then
     pacman-key --recv-keys 7FA7BB604F2A4346 --keyserver keyserver.ubuntu.com
     pacman-key --lsign-key 7FA7BB604F2A4346
     echo "[xdg-repo]
-Server = https://git.noahvogt.com/noah/\$repo/raw/master/\$arch" >> /etc/pacman.conf
+Server = https://noahvogt.com/\$repo/\$arch" >> /etc/pacman.conf
 fi
 
 # add chaotic-aur
@@ -123,25 +123,6 @@ if ! grep -q "^\s*\[chaotic-aur\]\s*$" /etc/pacman.conf; then
 Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf
 fi
 
-# sync all pkg db's
-pacman -Syyy
-
-# install aur helper (paru)
-if ! pacman -Q | grep -q paru; then
-    echo -e "\e[0;30;34mInstalling AUR helper (paru) ...\e[0m"
-    cd_into /home/"$username"/.local/src
-    pacman -S --noconfirm --needed bat devtools || pacman_error_exit
-    curl -sO https://aur.archlinux.org/cgit/aur.git/snapshot/paru-bin.tar.gz &&
-    tar xvf paru-bin.tar.gz
-    cd_into /home/"$username" && chown -R "$username":wheel /home/"$username"/.local/src/ && cd_into .local/src
-    cd_into paru-bin
-    while true; do
-        # TODO: split command into makepkg and pacman -U, only loop 2nd one
-        doas -u "$username" makepkg --noconfirm -si && break
-    done
-    rm /home/"$username"/.local/src/paru-bin.tar.gz
-fi
-
 # fetch + apply dotfiles
 if [ ! -d /home/"$username"/.local/src/dotfiles ]; then
     echo -e "\e[0;30;34mFetching dotfiles ...\e[0m"
@@ -165,13 +146,12 @@ set_rtmp_key
 set_api_key
 
 # download packages from the official repos
-# TODO: remove uneeded pkg's
 echo -e "\e[0;30;34mInstalling packages from repos ...\e[0m"
-pacman -S --noconfirm --needed xf86-video-vesa xf86-video-fbdev neovim ffmpeg arandr python pulseaudio-alsa neofetch mpv xf86-video-amdgpu xf86-video-intel xf86-video-nouveau dust coreutils curl webp-pixbuf-loader wireplumber hyprland kitty opendoas-sudo adwaita-fake-cursors greetd-agreety openssh uvicorn python-fastapi || pacman_error_exit
+pacman -Sy --noconfirm --needed neovim ffmpeg pulseaudio-alsa mpv xf86-video-amdgpu xf86-video-intel xf86-video-nouveau coreutils curl hyprland kitty opendoas-sudo adwaita-fake-cursors greetd-agreety openssh uvicorn python-fastapi paru || pacman_error_exit
 
 # install aur packages
 echo -e "\e[0;30;34mInstalling packages from AUR ...\e[0m"
-doas -u "$username" paru -S --noconfirm --needed doasedit mediamtx-bin || pacman_error_exit
+doas -u "$username" paru -S --noconfirm --needed mediamtx-bin || pacman_error_exit
 
 # enable mediamtx service
 echo -e "\e[0;30;34mEnabling mediamtx daemon ...\e[0m"