8 Commits

7 changed files with 39 additions and 7 deletions

View File

@ -6,5 +6,6 @@ if gum confirm "Refresh Waybar config? This will replace your current settings w
cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null
# Restart waybar
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &
fi

View File

@ -29,7 +29,8 @@ ln -nsf "$THEME_PATH" "$CURRENT_THEME_DIR"
touch "$HOME/.config/alacritty/alacritty.toml"
# Restart components to apply new theme
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &
makoctl reload
hyprctl reload

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash
#!/bin/bash
if pgrep -x hypridle > /dev/null; then
if pgrep -x hypridle >/dev/null; then
pkill -x hypridle
notify-send "Stop locking computer when idle"
else
setsid hypridle &> /dev/null &
setsid hypridle &>/dev/null &
notify-send "Now locking computer when idle"
fi

View File

@ -1,5 +1,6 @@
# Launching
bind = SUPER, space, exec, pkill wofi || uwsm app -- "$(wofi --show drun -O alphabetical --define=drun-print_desktop_file=true | sed -E "s/(\.desktop) /\1:/")"
bind = SUPER, space, exec, pkill wofi || wofi --show drun -O alphabetical
# bind = SUPER, space, exec, pkill wofi || uwsm app -- "$(wofi --show drun -O alphabetical --define=drun-print_desktop_file=true | sed -E "s/(\.desktop) /\1:/")"
bind = SUPER, K, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-show-keybindings
# Aesthetics

26
install/firewall.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/bash
if ! command -v ufw &>/dev/null; then
yay -Sy --noconfirm --needed ufw ufw-docker
# Allow nothing in, everything out
sudo ufw default deny incoming
sudo ufw default allow outgoing
# Allow ports for LocalSend
sudo ufw allow 53317/udp
sudo ufw allow 53317/tcp
# Allow SSH in
sudo ufw allow 22/tcp
# Allow Docker containers to use DNS on host
sudo ufw allow in on docker0 to any port 53
# Turn on the firewall
sudo ufw enable
# Turn on Docker protections
sudo ufw-docker install
sudo ufw reload
fi

View File

@ -1,3 +1,4 @@
echo "Fixing persistent workspaces in waybar config"
sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &

2
migrations/1752709610.sh Normal file
View File

@ -0,0 +1,2 @@
echo "Enable ufw firewall"
source ~/.local/share/omarchy/install/firewall.sh