feat: Hyprland updates, install package updates, new close all windows script

This commit is contained in:
2025-09-26 16:21:49 -04:00
parent d277706034
commit 60656734f1
9 changed files with 36 additions and 26 deletions

5
scripts/arch/close-all-windows Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
hyprctl clients -j | \
jq '.[] | .address' | \
xargs -I{} hyprctl dispatch closewindow address:{}

View File

@@ -4,7 +4,7 @@
# The percentage of the screen size for the floating window.
WIDTH_PERCENT=80
HEIGHT_PERCENT=80
HEIGHT_PERCENT=40
floating=$(hyprctl activewindow -j | jq '.floating')
@@ -14,11 +14,14 @@ else
monitor=$(hyprctl monitors -j | jq '.[] | select(.focused == true)')
mw=$(echo "$monitor" | jq '.width')
mh=$(echo "$monitor" | jq '.height')
ms=$(echo "$monitor" | jq '.scale')
neww=$((mw * $WIDTH_PERCENT / 100))
newh=$((mh * $HEIGHT_PERCENT / 100))
echo "scale: $ms"
hyprctl dispatch togglefloating \
&& hyprctl dispatch resizeactive exact $neww $newh \
&& hyprctl dispatch centerwindow
neww=$(echo "scale=6; (($mw / $ms) * $WIDTH_PERCENT / 100)" | bc)
newh=$(echo "scale=6; (($mh / $ms) * $HEIGHT_PERCENT / 100)" | bc)
hyprctl dispatch togglefloating &&
hyprctl dispatch resizeactive exact $neww $newh &&
hyprctl dispatch centerwindow
fi

View File

@@ -16,6 +16,7 @@ yay -S --noconfirm --needed \
asahi-desktop-meta \
base-devel \
bat \
bc \
btop \
catppuccin-gtk-theme-mocha \
eza \
@@ -28,6 +29,8 @@ yay -S --noconfirm --needed \
hyrpidle \
hyprlock \
neovim \
nodejs \
npm \
nwg-look \
pcsc-controls \
starship \
@@ -55,8 +58,7 @@ yay -S --noconfirm \
yay -S --noconfirm walker \
elephant \
elephant-calc \
elephant-symbols \
elephant-websearch
elephant-symbols
# Bluetooth management
yay -S --noconfirm blueberry-wayland

View File

@@ -5,4 +5,4 @@ mkdir -p ~/.local/share/clipse/tmp_files
touch ~/.local/share/clipse/clipboard_history.json
chmod 600 ~/.local/share/clipse/clipboard_history.json
mkdir ~/Pictures