23 Commits

Author SHA1 Message Date
5e4c309b2c Do dropbox first so we have the browser if we need it 2025-07-22 13:58:35 -04:00
a691a50559 Scaling workaround 2025-07-22 13:48:00 -04:00
778a69897b Fix path 2025-07-22 13:37:04 -04:00
ff77d4731f Allow it to start before existing 2025-07-22 13:23:59 -04:00
ec4efb304c Didn't actually like that 2025-07-22 13:20:57 -04:00
1d4991426e More shushing 2025-07-22 13:16:37 -04:00
c31250d7c0 Also can't use logo here or we're squishing 2025-07-22 13:12:35 -04:00
f36402b2c9 Clear before launching 2025-07-22 13:11:10 -04:00
ecf65b0499 Still need to keep it quiet 2025-07-22 13:10:47 -04:00
65ba4cc576 Might squish the logo when we open Docker or Manual 2025-07-22 13:09:01 -04:00
56999c0ae5 Use the Omarchy Manual webapp for launching 2025-07-22 13:06:35 -04:00
e3e46e1383 Install Omarchy Manual as its own web app 2025-07-22 13:06:05 -04:00
28bec8c7d2 Launch the Docker app if we installed Docker DBs 2025-07-22 13:03:14 -04:00
484b98ae43 No confirm please 2025-07-22 13:02:01 -04:00
14d9cd452c Explain the gum picker 2025-07-22 13:01:19 -04:00
8071642b66 Use consistent conditional 2025-07-22 12:37:57 -04:00
ba1e50daa9 Keep it simple 2025-07-22 12:36:56 -04:00
1c69965819 Restart walker when we refresh the config 2025-07-22 11:21:50 -04:00
ea903c7d65 Cleanup the screenrecording script 2025-07-22 08:58:20 -05:00
6d8a1e3bcf wf-recorder instead of wl-screenrec (NVIDIA support for screen recording) (#278)
* use wf-recorder instead of wl-screenrec

wl-screenrec does not support NVIDIA drivers as of now

* install wf-recorder and migration for it

* use wl-screenrec for non-nvidia and wf-recorder otherwise

* useless comment

* only use one of the screen recording features
2025-07-22 08:47:25 -05:00
a94ee3dee8 Remove 1px border from hyprshot screenshots
Closes #277
Co-authored-by: @al3rez
2025-07-22 08:44:17 -05:00
a117f5a36a Open current directory on n alone while still allowing opening direct files too 2025-07-22 07:53:01 -05:00
d5b9a5f223 Update envs.conf (#281) 2025-07-22 07:44:36 -05:00
9 changed files with 51 additions and 22 deletions

View File

@ -1,19 +1,25 @@
#!/bin/bash
# Set recorder based on GPU
screenrecording() {
filename="$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4"
notify-send "Screen recording starting..." -t 1000
sleep 1
wl-screenrec \
-f "$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" \
--ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" \
"$@"
if lspci | grep -qi 'nvidia'; then
wf-recorder -f "$filename" -c libx264 -p crf=23 -p preset=medium -p movflags=+faststart "$@"
else
wl-screenrec -f "$filename" --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" "$@"
fi
}
if pgrep -x wl-screenrec >/dev/null; then
if pgrep -x wl-screenrec >/dev/null || pgrep -x wf-recorder >/dev/null; then
pkill -x wl-screenrec
pkill -x wf-recorder
notify-send "Screen recording saved to ~/Videos" -t 2000
elif [[ "$1" == "output" ]]; then
screenrecording -o ""
screenrecording
else
region=$(slurp) || exit 1
screenrecording -g "$region"

View File

@ -17,21 +17,22 @@ fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Setup Dropbox?"; then
gtk-launch chromium # FIXME: Workaround for Dropbox to be able to open with the correct scaling during initial setup
~/.local/share/omarchy/bin/omarchy-setup-dropbox
fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Login to GitHub?"; then
gh auth login
fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Setup Dropbox?"; then
omarchy-setup-dropbox
fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Start Docker DBs?"; then
options=("MySQL" "Redis" "PostgreSQL")
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases") || exit 0
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases (space to select, return to install)") || exit 0
if [[ -n "$choices" ]]; then
for db in $choices; do
@ -45,12 +46,9 @@ if gum confirm "Start Docker DBs?"; then
fi
source ~/.local/share/omarchy/ansi.sh
echo "Updating all system packages..."
yay -Syu
source ~/.local/share/omarchy/ansi.sh
yay -Syu --noconfirm
setsid gtk-launch "Omarchy Manual" >/dev/null 2>&1 &
gum spin --spinner "globe" --title "You're all set!" -- sleep 2
setsid chromium --new-window --ozone-platform=wayland --app="https://manuals.omamix.org/2/the-omarchy-manual" >/dev/null 2>&1 &
clear

View File

@ -8,3 +8,6 @@ if cmp -s ~/.config/walker/config.toml.bak ~/.config/walker/config.toml; then
else
echo -e "\e[31mExisting .config/walker/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
fi
pkill walker
uwsm app -- walker --gapplication-service &

View File

@ -24,10 +24,10 @@ alias ...='cd ../..'
alias ....='cd ../../..'
# Tools
alias n='nvim'
alias g='git'
alias d='docker'
alias r='rails'
n() { if [ "$#" -eq 0 ]; then nvim .; else nvim "$@"; fi; }
# Git
alias gcm='git commit -m'

View File

@ -3,8 +3,8 @@ env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
# Force all apps to use Wayland
env = GDK_BACKEND,wayland
env = QT_QPA_PLATFORM,wayland
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_STYLE_OVERRIDE,kvantum
env = SDL_VIDEODRIVER,wayland
env = MOZ_ENABLE_WAYLAND,1

View File

@ -72,6 +72,9 @@ animations {
# Application-sepcific animation
layerrule=noanim,walker
# Remove 1px border around hyprshot screenshots
layerrule = noanim, selection
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.

View File

@ -4,6 +4,13 @@ yay -S --noconfirm --needed \
brightnessctl playerctl pamixer wiremix wireplumber \
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
nautilus sushi ffmpegthumbnailer \
slurp wl-screenrec satty \
slurp satty \
mpv evince imv \
chromium
# Add screen recorder based on GPU
if lspci | grep -qi 'nvidia'; then
yay -S --noconfirm --needed wf-recorder
else
yay -S --noconfirm --needed wl-screenrec
fi

View File

@ -12,4 +12,5 @@ if [ -z "$OMARCHY_BARE" ]; then
web2app "YouTube" https://youtube.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/youtube.png
web2app "GitHub" https://github.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/github-light.png
web2app "X" https://x.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/x-light.png
web2app "Omarchy Manual" https://manuals.omamix.org/2/the-omarchy-manual https://manuals.omamix.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NDgsInB1ciI6ImJsb2JfaWQifX0=--c26606490139480f5bcb3cf91b09fc45825007f6/omarchy.jpg?disposition=attachment
fi

11
migrations/1753176520.sh Normal file
View File

@ -0,0 +1,11 @@
echo "Install wf-recorder for screen recording for nvidia"
if lspci | grep -qi 'nvidia'; then
if ! command -v wf-recorder &>/dev/null; then
yay -S --noconfirm --needed wf-recorder
fi
if command -v wl-screenrec &>/dev/null; then
yay -R --noconfirm wl-screenrec
fi
fi