mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
Compare commits
7 Commits
7f681c71fb
...
178f97a6e3
Author | SHA1 | Date | |
---|---|---|---|
178f97a6e3 | |||
f99277ad71 | |||
ca69f15709 | |||
2e874adb50 | |||
3b0fd13be1 | |||
f8a7e1c7eb | |||
ee5785855a |
@ -2,7 +2,7 @@
|
||||
Name=Neovim
|
||||
GenericName=Text Editor
|
||||
Comment=Edit text files
|
||||
Exec=alacritty -e nvim -- %F
|
||||
Exec=alacritty --class=nvim --title=nvim -e nvim -- %F
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Keywords=Text;editor;
|
||||
|
7
applications/wiremix.desktop
Normal file
7
applications/wiremix.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=Audio Settings
|
||||
Comment=Using Wiremix
|
||||
Exec=alacritty --class=Wiremix --title=Wiremix -e wiremix
|
||||
Icon=audio-card
|
||||
Type=Application
|
||||
Terminal=false
|
@ -1,16 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Power menu for Omarchy
|
||||
# Provides power off, restart, and sleep options
|
||||
|
||||
# Function to show power menu. The first characters are invisible sort keys.
|
||||
show_power_menu() {
|
||||
# The first characters are invisible sort keys.
|
||||
local menu_options="\u200B Lock
|
||||
\u200C Suspend
|
||||
\u200D Relaunch
|
||||
\u2060 Restart
|
||||
\u2063 Shutdown"
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css)
|
||||
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css)
|
||||
|
||||
case "$selection" in
|
||||
*Lock*) hyprlock ;;
|
||||
@ -21,5 +19,4 @@ show_power_menu() {
|
||||
esac
|
||||
}
|
||||
|
||||
# Main execution
|
||||
show_power_menu
|
||||
|
14
bin/omarchy-screenrecord
Executable file
14
bin/omarchy-screenrecord
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if pgrep -x wl-screenrec >/dev/null; then
|
||||
pkill -x wl-screenrec
|
||||
notify-send "Screen recording saved to ~/Videos" -t 2000
|
||||
else
|
||||
region=$(slurp) || exit 1
|
||||
notify-send "Screen recording starting..." -t 1000
|
||||
sleep 1
|
||||
wl-screenrec \
|
||||
-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
|
@ -96,7 +96,7 @@
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}",
|
||||
"on-click": "pavucontrol",
|
||||
"on-click": "alacritty --class=Wiremix -e wiremix",
|
||||
"on-click-right": "pamixer -t",
|
||||
"tooltip-format": "Playing at {volume}%",
|
||||
"scroll-step": 5,
|
||||
|
@ -28,5 +28,8 @@ bind = , PRINT, exec, hyprshot -m region
|
||||
bind = SHIFT, PRINT, exec, hyprshot -m window
|
||||
bind = CTRL, PRINT, exec, hyprshot -m output
|
||||
|
||||
# Screenshots
|
||||
bind = ALT, PRINT, exec, omarchy-screenrecord
|
||||
|
||||
# Color picker
|
||||
bind = SUPER, PRINT, exec, hyprpicker -a
|
||||
|
@ -5,10 +5,10 @@ windowrule = suppressevent maximize, class:.*
|
||||
windowrule = tile, class:^(Chromium)$
|
||||
|
||||
# Float and center settings and previews
|
||||
windowrule = float, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer|Omarchy)$
|
||||
windowrule = size 800 600, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer)$
|
||||
windowrule = float, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy)$
|
||||
windowrule = size 800 600, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer)$
|
||||
windowrule = size 645 350, class:Omarchy
|
||||
windowrule = center, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer|Omarchy)$
|
||||
windowrule = center, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy)$
|
||||
|
||||
# Float and center file pickers
|
||||
windowrule = float, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?|All Files|Save)
|
||||
|
@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
yay -S --noconfirm --needed \
|
||||
brightnessctl playerctl pamixer pavucontrol wireplumber \
|
||||
fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool wl-clip-persist \
|
||||
brightnessctl playerctl pamixer wiremix wireplumber \
|
||||
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
|
||||
nautilus sushi ffmpegthumbnailer \
|
||||
slurp wl-screenrec \
|
||||
mpv evince imv \
|
||||
chromium
|
||||
|
2
migrations/1752885858.sh
Normal file
2
migrations/1752885858.sh
Normal file
@ -0,0 +1,2 @@
|
||||
echo "Install slurp + wl-screenrec for new ALT+PrintScreen screen recorder"
|
||||
yay -S --noconfirm --needed slurp wl-screenrec
|
9
migrations/1752896442.sh
Normal file
9
migrations/1752896442.sh
Normal file
@ -0,0 +1,9 @@
|
||||
echo "Replace volume control GUI with a TUI"
|
||||
|
||||
if ! command -v wiremix &>/dev/null; then
|
||||
yay -S --noconfirm --needed wiremix
|
||||
yay -Rns --noconfirm pavucontrol
|
||||
|
||||
omarchy-refresh-applications
|
||||
omarchy-refresh-waybar
|
||||
fi
|
4
migrations/1752897642.sh
Normal file
4
migrations/1752897642.sh
Normal file
@ -0,0 +1,4 @@
|
||||
echo "Remove needless fcitx5-configtool package"
|
||||
if command -v fcitx5-configtool &>/dev/null; then
|
||||
yay -Rns --noconfirm fcitx5-configtool
|
||||
fi
|
Reference in New Issue
Block a user