mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Install wl-screenrec as a just-in-time dependence
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! lspci | grep -Eqi 'nvidia|intel.*graphics' && ! command -v wl-screenrec >/dev/null; then
|
||||||
|
notify-send "Installing wl-screenrec in order to make screen recordings..."
|
||||||
|
yay -S --noconfirm wl-screenrec
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
|
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
|
||||||
OUTPUT_DIR="${OMARCHY_SCREENRECORD_DIR:-${XDG_VIDEOS_DIR:-$HOME/Videos}}"
|
OUTPUT_DIR="${OMARCHY_SCREENRECORD_DIR:-${XDG_VIDEOS_DIR:-$HOME/Videos}}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user