mainly emacs related

This commit is contained in:
Zastian Pretorius
2022-10-13 18:49:47 +01:00
parent 686360a652
commit f4672b5a63
8 changed files with 272 additions and 289 deletions

View File

@@ -1,11 +1,3 @@
#!/usr/bin/env bash
chack to see if trackma is running
if pgrep -x "trackma" > /dev/null
then
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
else
trackma
alacritty -e "$HOME"/Documents/Rust/kami/target/release/kami -a
fi
kitty ~/Documents/Rust/kami/target/release/kami --title=kami

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
mpvpaper '*' -o "loop" -p ~/Videos/wallpapers/anime-school-girl-bicycle-sunset-moewalls.com.mp4

14
script/.config/script/record.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
# This scrip is ment to resord the screen with desktop audio and no mic audio using wf-recorder
# make a directory to store the videos in HOME/Videos/recordings
mkdir -p $HOME/Videos/recordings
make a variable for the directory
DIR=$HOME/Videos/recordings
#use rofi to enter the a name for the video in the directory
cd $DIR
NAME=$(rofi -dmenu -p "Name of the video")
cd ..
# record the screen with wf-recorder
wf-recorder --device=/dev/dri/renderD128 --audio=alsa_output.pci-0000_05_00.6.analog-stereo.monitor --file=$DIR/$NAME

View File

@@ -1,6 +1,6 @@
#!/bin/sh
FILE=$(fd -t f|fzf)
LINK=$(curl -# "https://oshi.at" -F "f=@$FILE"|awk '/DL/ {print $2}')
printf "$LINK"|xclip -selection c
printf "$LINK\n"
# list all the files in the current directory in rofi
FILE=$(ls -1 | rofi -dmenu -i -p "Select file to open")
URL=$(curl -F "file=@$FILE" https://0x0.st)
printf "$URL" | wl-copy -n