Hyprland made screenshot bindings work with pc; Fish made scp work again; recording now works with multiple screens.
This commit is contained in:
parent
ef2a38ef7b
commit
5a82682813
14 changed files with 169 additions and 68 deletions
|
|
@ -4,13 +4,14 @@ bind = $mod SHIFT, Return, exec, $browser
|
|||
bind = $mod, a, exec, $audio
|
||||
bind = $mod, n, exec, $networking
|
||||
bind = $mod, b, exec, $bluetooth
|
||||
bind = $mod, p, exec, $display
|
||||
bind = $mod SHIFT, p, exec, $display
|
||||
bind = $mod, d, exec, $menu
|
||||
bind = $mod, escape, exec, $lock
|
||||
|
||||
bind = CTRL, Print, exec, ~/.config/hypr/scripts/recording.sh
|
||||
bind = , Print, exec, mkdir -p ~/Pictures/Screenshots && grim -t ppm -o "$(hyprctl activeworkspace -j | jq -r '.monitor')" - | satty -f - -o ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png
|
||||
|
||||
bind = CTRL, Print, exec, $screenshot
|
||||
bind = $mod CTRL, p, exec, $screenshot
|
||||
bind = , Print, exec, $rec
|
||||
bind = $mod, p, exec, $rec
|
||||
|
||||
bind = $mod, Q, killactive
|
||||
bind = $mod, F, fullscreen
|
||||
|
|
|
|||
|
|
@ -13,5 +13,8 @@ $bluetooth = $terminal /usr/bin/bluetui
|
|||
$display = /usr/bin/nwg-displays -w ~/.config/hypr/land/workspaces.conf -m ~/.config/hypr/land/monitors.conf
|
||||
$menu = /usr/bin/rofi -show drun -theme ~/.config/rofi/themes/launcher-theme.rasi
|
||||
|
||||
# Screenshotting
|
||||
$screenshot = ~/.config/hypr/scripts/recording.sh
|
||||
$rec = mkdir -p ~/Pictures/Screenshots && grim -t ppm -o "$(hyprctl activeworkspace -j | jq -r '.monitor')" - | satty -f - -o ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png
|
||||
# Other applications
|
||||
$browser = /usr/bin/firefox
|
||||
|
|
|
|||
|
|
@ -1,6 +1,23 @@
|
|||
#!/bin/env bash
|
||||
|
||||
pgrep -x "wf-recorder" && pkill -INT -x wf-recorder && notify-send -h string:wf-recorder:record -t 1000 "Finished Recording" && exit 0
|
||||
for i in "pgrep" "pkill" "jq" "hyprctl" "wf-recorder" "notify-send" "hyprland-share-picker"; do
|
||||
if builtin type -P "$i" &> /dev/null; then continue; fi
|
||||
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Missing dependencies, can't record.";
|
||||
echo "Missing dependencies."
|
||||
exit 1
|
||||
done
|
||||
|
||||
pgrep -x "wf-recorder" && \
|
||||
pkill -INT -x wf-recorder && \
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Finished Recording" && \
|
||||
exit 0
|
||||
|
||||
display=$(hyprland-share-picker | sed -r 's/.+:([^@]+)(@.+)?/\1/')
|
||||
if [ -z "$display" ]; then
|
||||
notify-send "Please select a display"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for i in $(seq 1 3); do
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>$((4 - $i))</b></i></span>"
|
||||
|
|
@ -11,4 +28,4 @@ dateTime=$(date +%m-%d-%Y-%H:%M:%S)
|
|||
dir="$HOME/Videos/ScreenRecordings"
|
||||
|
||||
mkdir -p "$dir"
|
||||
wf-recorder -f "$dir/$dateTime.mp4"
|
||||
wf-recorder -o "$display" -f "$dir/$dateTime.mp4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue