Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenrecord script for Hyprland script v4 #65

Open
Rocklinks opened this issue Oct 16, 2023 · 1 comment
Open

Screenrecord script for Hyprland script v4 #65

Rocklinks opened this issue Oct 16, 2023 · 1 comment

Comments

@Rocklinks
Copy link

I got a screen recorder script from Chat GPT. How to add Screen recorder script to the panel.
videos_dir="$HOME/Videos"
mkdir -p "$videos_dir"

Generate a random filename for the screen recording

timestamp=$(date +"%Y%m%d%H%M%S")
recording_file="$videos_dir/screen_recording_$timestamp.mp4"

Use wf-recorder to record the screen

wf-recorder -g "$(slurp)" -f "$recording_file"

Notify the user that the recording has started

notify-send "Screen recording started"

Wait for the user to stop the recording (e.g., by pressing a key)

read -p "Press Enter to stop recording..."

Stop the screen recording

pkill wf-recorder

Notify the user that the recording has stopped

notify-send "Screen recording stopped"

these are the scripts which works for but wanna add it to the panel with css.

@rearrangement
Copy link

edit the css??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants