mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
Compare commits
23 Commits
b656ea0625
...
5e4c309b2c
Author | SHA1 | Date | |
---|---|---|---|
5e4c309b2c | |||
a691a50559 | |||
778a69897b | |||
ff77d4731f | |||
ec4efb304c | |||
1d4991426e | |||
c31250d7c0 | |||
f36402b2c9 | |||
ecf65b0499 | |||
65ba4cc576 | |||
56999c0ae5 | |||
e3e46e1383 | |||
28bec8c7d2 | |||
484b98ae43 | |||
14d9cd452c | |||
8071642b66 | |||
ba1e50daa9 | |||
1c69965819 | |||
ea903c7d65 | |||
6d8a1e3bcf | |||
a94ee3dee8 | |||
a117f5a36a | |||
d5b9a5f223 |
@ -1,19 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set recorder based on GPU
|
||||||
|
|
||||||
screenrecording() {
|
screenrecording() {
|
||||||
|
filename="$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4"
|
||||||
notify-send "Screen recording starting..." -t 1000
|
notify-send "Screen recording starting..." -t 1000
|
||||||
sleep 1
|
sleep 1
|
||||||
wl-screenrec \
|
|
||||||
-f "$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" \
|
if lspci | grep -qi 'nvidia'; then
|
||||||
--ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" \
|
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 wl-screenrec
|
||||||
|
pkill -x wf-recorder
|
||||||
notify-send "Screen recording saved to ~/Videos" -t 2000
|
notify-send "Screen recording saved to ~/Videos" -t 2000
|
||||||
elif [[ "$1" == "output" ]]; then
|
elif [[ "$1" == "output" ]]; then
|
||||||
screenrecording -o ""
|
screenrecording
|
||||||
else
|
else
|
||||||
region=$(slurp) || exit 1
|
region=$(slurp) || exit 1
|
||||||
screenrecording -g "$region"
|
screenrecording -g "$region"
|
||||||
|
@ -17,21 +17,22 @@ fi
|
|||||||
|
|
||||||
source ~/.local/share/omarchy/ansi.sh
|
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
|
if gum confirm "Login to GitHub?"; then
|
||||||
gh auth login
|
gh auth login
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ~/.local/share/omarchy/ansi.sh
|
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
|
if gum confirm "Start Docker DBs?"; then
|
||||||
options=("MySQL" "Redis" "PostgreSQL")
|
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
|
if [[ -n "$choices" ]]; then
|
||||||
for db in $choices; do
|
for db in $choices; do
|
||||||
@ -45,12 +46,9 @@ if gum confirm "Start Docker DBs?"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
source ~/.local/share/omarchy/ansi.sh
|
source ~/.local/share/omarchy/ansi.sh
|
||||||
|
|
||||||
echo "Updating all system packages..."
|
echo "Updating all system packages..."
|
||||||
yay -Syu
|
yay -Syu --noconfirm
|
||||||
|
|
||||||
source ~/.local/share/omarchy/ansi.sh
|
|
||||||
|
|
||||||
|
setsid gtk-launch "Omarchy Manual" >/dev/null 2>&1 &
|
||||||
gum spin --spinner "globe" --title "You're all set!" -- sleep 2
|
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
|
clear
|
||||||
|
@ -8,3 +8,6 @@ if cmp -s ~/.config/walker/config.toml.bak ~/.config/walker/config.toml; then
|
|||||||
else
|
else
|
||||||
echo -e "\e[31mExisting .config/walker/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
|
echo -e "\e[31mExisting .config/walker/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pkill walker
|
||||||
|
uwsm app -- walker --gapplication-service &
|
||||||
|
@ -24,10 +24,10 @@ alias ...='cd ../..'
|
|||||||
alias ....='cd ../../..'
|
alias ....='cd ../../..'
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
alias n='nvim'
|
|
||||||
alias g='git'
|
alias g='git'
|
||||||
alias d='docker'
|
alias d='docker'
|
||||||
alias r='rails'
|
alias r='rails'
|
||||||
|
n() { if [ "$#" -eq 0 ]; then nvim .; else nvim "$@"; fi; }
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias gcm='git commit -m'
|
alias gcm='git commit -m'
|
||||||
|
@ -3,8 +3,8 @@ env = XCURSOR_SIZE,24
|
|||||||
env = HYPRCURSOR_SIZE,24
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
# Force all apps to use Wayland
|
# Force all apps to use Wayland
|
||||||
env = GDK_BACKEND,wayland
|
env = GDK_BACKEND,wayland,x11,*
|
||||||
env = QT_QPA_PLATFORM,wayland
|
env = QT_QPA_PLATFORM,wayland;xcb
|
||||||
env = QT_STYLE_OVERRIDE,kvantum
|
env = QT_STYLE_OVERRIDE,kvantum
|
||||||
env = SDL_VIDEODRIVER,wayland
|
env = SDL_VIDEODRIVER,wayland
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
|
@ -72,6 +72,9 @@ animations {
|
|||||||
# Application-sepcific animation
|
# Application-sepcific animation
|
||||||
layerrule=noanim,walker
|
layerrule=noanim,walker
|
||||||
|
|
||||||
|
# Remove 1px border around hyprshot screenshots
|
||||||
|
layerrule = noanim, selection
|
||||||
|
|
||||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||||
# "Smart gaps" / "No gaps when only"
|
# "Smart gaps" / "No gaps when only"
|
||||||
# uncomment all if you wish to use that.
|
# uncomment all if you wish to use that.
|
||||||
|
@ -4,6 +4,13 @@ yay -S --noconfirm --needed \
|
|||||||
brightnessctl playerctl pamixer wiremix wireplumber \
|
brightnessctl playerctl pamixer wiremix wireplumber \
|
||||||
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
|
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
|
||||||
nautilus sushi ffmpegthumbnailer \
|
nautilus sushi ffmpegthumbnailer \
|
||||||
slurp wl-screenrec satty \
|
slurp satty \
|
||||||
mpv evince imv \
|
mpv evince imv \
|
||||||
chromium
|
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
|
||||||
|
@ -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 "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 "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 "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
|
fi
|
||||||
|
11
migrations/1753176520.sh
Normal file
11
migrations/1753176520.sh
Normal 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
|
Reference in New Issue
Block a user