mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
Compare commits
7 Commits
178f97a6e3
...
309c35c866
Author | SHA1 | Date | |
---|---|---|---|
309c35c866 | |||
4427c0bb28 | |||
30b3af58e5 | |||
6b947ffb45 | |||
f569c4e365 | |||
cf71a3f101 | |||
ceedf474cb |
5
bin/omarchy-refresh-hyprlock
Executable file
5
bin/omarchy-refresh-hyprlock
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Overwrite local Hyprlock settings with the latest in Omarchy, but create a backup
|
||||||
|
cp -f ~/.config/hypr/hyprlock.conf ~/.config/hypr/hyprlock.conf.bak 2>/dev/null
|
||||||
|
cp -f ~/.local/share/omarchy/config/hypr/hyprlock.conf ~/.config/hypr/ 2>/dev/null
|
@ -6,6 +6,5 @@ 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
|
cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null
|
||||||
|
|
||||||
# Restart waybar
|
# Restart waybar
|
||||||
pkill waybar
|
pkill -SIGUSR2 waybar
|
||||||
setsid waybar >/dev/null 2>&1 &
|
|
||||||
fi
|
fi
|
||||||
|
@ -1,14 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
screenrecording() {
|
||||||
|
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 pgrep -x wl-screenrec >/dev/null; then
|
if pgrep -x wl-screenrec >/dev/null; then
|
||||||
pkill -x wl-screenrec
|
pkill -x wl-screenrec
|
||||||
notify-send "Screen recording saved to ~/Videos" -t 2000
|
notify-send "Screen recording saved to ~/Videos" -t 2000
|
||||||
|
elif [[ $1 == "output" ]]; then
|
||||||
|
notify-send "Screen recording starting..." -t 1000
|
||||||
|
sleep 1
|
||||||
|
screenrecording -o ""
|
||||||
else
|
else
|
||||||
region=$(slurp) || exit 1
|
region=$(slurp) || exit 1
|
||||||
notify-send "Screen recording starting..." -t 1000
|
notify-send "Screen recording starting..." -t 1000
|
||||||
sleep 1
|
sleep 1
|
||||||
wl-screenrec \
|
screenrecording -g "$region"
|
||||||
-g "$region" \
|
|
||||||
-f "$HOME/Videos/screen-recording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" \
|
|
||||||
--ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart"
|
|
||||||
fi
|
fi
|
||||||
|
9
bin/omarchy-screenshot
Executable file
9
bin/omarchy-screenshot
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
hyprshot -m ${1:-region} --raw |
|
||||||
|
satty --filename - \
|
||||||
|
--output-filename ~/Pictures/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png \
|
||||||
|
--early-exit \
|
||||||
|
--actions-on-enter save-to-clipboard \
|
||||||
|
--save-after-copy \
|
||||||
|
--copy-command 'wl-copy'
|
@ -11,7 +11,7 @@ TOTAL=${#BACKGROUNDS[@]}
|
|||||||
if [[ $TOTAL -eq 0 ]]; then
|
if [[ $TOTAL -eq 0 ]]; then
|
||||||
notify-send "No background was found for theme" -t 2000
|
notify-send "No background was found for theme" -t 2000
|
||||||
pkill -x swaybg
|
pkill -x swaybg
|
||||||
setsid swaybg --color '#000000' >/dev/null 2>&2 &
|
uwsm app -- swaybg --color '#000000' >/dev/null 2>&1 &
|
||||||
else
|
else
|
||||||
# Get current background from symlink
|
# Get current background from symlink
|
||||||
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
|
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
|
||||||
@ -44,5 +44,5 @@ else
|
|||||||
|
|
||||||
# Relaunch swaybg
|
# Relaunch swaybg
|
||||||
pkill -x swaybg
|
pkill -x swaybg
|
||||||
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
|
uwsm app -- swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
@ -46,8 +46,7 @@ touch "$HOME/.config/alacritty/alacritty.toml"
|
|||||||
pkill -SIGUSR2 btop
|
pkill -SIGUSR2 btop
|
||||||
|
|
||||||
# Restart components to apply new theme
|
# Restart components to apply new theme
|
||||||
pkill waybar
|
pkill -SIGUSR2 waybar
|
||||||
setsid waybar >/dev/null 2>&1 &
|
|
||||||
makoctl reload
|
makoctl reload
|
||||||
hyprctl reload
|
hyprctl reload
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ if pgrep -x hypridle >/dev/null; then
|
|||||||
pkill -x hypridle
|
pkill -x hypridle
|
||||||
notify-send "Stop locking computer when idle"
|
notify-send "Stop locking computer when idle"
|
||||||
else
|
else
|
||||||
setsid hypridle &>/dev/null &
|
uwsm app -- hypridle >/dev/null 2>&1 &
|
||||||
notify-send "Now locking computer when idle"
|
notify-send "Now locking computer when idle"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
# ────────────────────────────────────────────────────────────
|
|
||||||
# Hyprlock — minimal blur with ringed input
|
|
||||||
# ────────────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
source = ~/.config/omarchy/current/theme/hyprlock.conf
|
source = ~/.config/omarchy/current/theme/hyprlock.conf
|
||||||
|
|
||||||
general {
|
general {
|
||||||
@ -36,7 +32,7 @@ input-field {
|
|||||||
placeholder_color = $placeholder_color
|
placeholder_color = $placeholder_color
|
||||||
placeholder_text = Enter Password
|
placeholder_text = Enter Password
|
||||||
check_color = $check_color
|
check_color = $check_color
|
||||||
fail_text = Wrong
|
fail_text = <i>$PAMFAIL ($ATTEMPTS)</i>
|
||||||
|
|
||||||
rounding = 0
|
rounding = 0
|
||||||
shadow_passes = 0
|
shadow_passes = 0
|
||||||
|
@ -69,5 +69,5 @@ web2app-remove() {
|
|||||||
# Ensure changes to ~/.XCompose are immediately available
|
# Ensure changes to ~/.XCompose are immediately available
|
||||||
refresh-xcompose() {
|
refresh-xcompose() {
|
||||||
pkill fcitx5
|
pkill fcitx5
|
||||||
setsid fcitx5 &>/dev/null &
|
uwsm app -- fcitx5 >/dev/null 2>&1 &
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,13 @@ bind = CTRL, F2, exec, ~/.local/share/omarchy/bin/omarchy-apple-display-brightne
|
|||||||
bind = SHIFT CTRL, F2, exec, ~/.local/share/omarchy/bin/omarchy-apple-display-brightness +60000
|
bind = SHIFT CTRL, F2, exec, ~/.local/share/omarchy/bin/omarchy-apple-display-brightness +60000
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bind = , PRINT, exec, hyprshot -m region
|
bind = , PRINT, exec, omarchy-screenshot
|
||||||
bind = SHIFT, PRINT, exec, hyprshot -m window
|
bind = SHIFT, PRINT, exec, omarchy-screenshot window
|
||||||
bind = CTRL, PRINT, exec, hyprshot -m output
|
bind = CTRL, PRINT, exec, omarchy-screenshot output
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bind = ALT, PRINT, exec, omarchy-screenrecord
|
bind = ALT, PRINT, exec, omarchy-screenrecord
|
||||||
|
bind = CTRL ALT, PRINT, exec, omarchy-screenrecord output
|
||||||
|
|
||||||
# Color picker
|
# Color picker
|
||||||
bind = SUPER, PRINT, exec, hyprpicker -a
|
bind = SUPER, PRINT, exec, hyprpicker -a
|
||||||
|
@ -4,6 +4,6 @@ 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 \
|
slurp wl-screenrec satty \
|
||||||
mpv evince imv \
|
mpv evince imv \
|
||||||
chromium
|
chromium
|
||||||
|
2
migrations/1752899588.sh
Normal file
2
migrations/1752899588.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
echo "Update .config/hypr/hyprlock.conf to include failed attempt counter"
|
||||||
|
omarchy-refresh-hyprlock
|
2
migrations/1752955912.sh
Normal file
2
migrations/1752955912.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
echo "Install satty for the new screenshot flow"
|
||||||
|
yay -S --noconfirm --needed satty
|
Reference in New Issue
Block a user