This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
## WHAT + HOW | |
# THUNAR ACTION fusion PDFs -- using pdftk | |
# ACTION : /bin/bash /usr/bin/batch_pdf_fusion_inputs.sh %f %F | |
# -- Multi select files -- | |
# %f == current folder -> pwd | |
# %F == files | |
# | |
## ORG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### HERE... hide all but NOT Focused ONE | |
#### IF all are already minimized... raise.maximised them all back | |
# Alt to :: SHOW/HIDE (TOGGLE) Desktop | |
#if [ $status == "ON" ]; then | |
# wmctrl -k off | |
#else | |
# wmctrl -k on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## QUICKSTART --> search : | |
##### GO --- EDIT ME : | |
# V1.3 - add cleanup json files + creat md + add contents | |
## WHAT | |
# - Extracts highlight marks in PDFs (input) | |
# - Merge them by page | |
# - Filtre/select by colors /or/ any/all | |
# --> Output json datas /then/ md (readable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current=$(xprop -root | grep '^_NET_ACTIVE_W' | awk -F'# 0x' '{print $2}' | awk -F', ' '{print $1}') | |
echo current $current | |
class=$(xdotool getwindowfocus getwindowclassname) | |
echo class $class | |
currapp_windows=$(wmctrl -mlpx | grep $class | awk '{print $1}') | |
echo currapp_windows $currapp_windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DO Convert all vidéos files in all sub-folders (batch) with ffmpeg | |
# DEP ffmpeg | |
# TODO Change quality (-crf) + output file_name.ext | |
# OPT "ffmpeg_batch_subfolders_each.sh infos" => GIVE ffmpeg files infos only... | |
# GIST https://gist.github.com/bonnebulle/907026a0f96d8497fa63dc15472b07ce | |
echo "Carefull, will find all files in sub-folders and move them here =" | |
pwd | |
echo ": */**.mkv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DO : Get Youtube metadatas ( description + med_thumbnail ) | |
# DO : dwl img using curl + copy description to clipboard | |
# HOW = using Youte + Google API | |
# USAGE = youte_youtube_infos_API.sh https://www.youtube.com/watch?v=7_22jCiq4nk | |
# USAGE = youte_youtube_infos_API.sh 7_22jCiq4nk # <- id only | |
# USAGE = youte_youtube_infos_API.sh 7_22jCiq4nk img # <- img only | |
# TODO : search_replace "~/Bureau/YT/" -> Your Destination folder ! | |
# TODO : mkdir ~/Bureau/YT/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DO Change track with playerctl + notify ! | |
# USE Keyboard_media_key => "this_script.sh OPT_1 OPT_2" | |
# OPT_1 play, playpause, next, previous, infos | |
# OPT_2 no_notifiy ( disable notif ) | |
# OPT_3/2 target ( app name ) | |
## EX: player_playerctl_next_prev_notify.sh playpause spotify | |
# FIX If not works => use xtool search app xith its $classname | |
# VAR $classname "WebApp-Bandcamp6262" cf. $currentapp | |
# VAR app classname ... change w/ your need ==> use `wmctrl -lx` to list all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DO Close all windows in current/active app | |
# USAGE Keyboard Shortcut Ctrl+Alt+W (like macOS) | |
# SOURCE https://www.tuxtips.info/linux/how-to-close-all-open-windows-in-linux ( close ALL) | |
# SOURCE https://unix.stackexchange.com/a/588813 ( search only current app ) | |
for n in $(xdotool search -class $(xdotool getactivewindow getwindowclassname) | awk $2 '!/-1/ {print $1}') | |
do | |
wmctrl -i -c $n; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ADB SCRCPY via wifi | |
# https://github.com/Genymobile/scrcpy | |
#### DEPENDENCIE (notifications) | |
#### https://github.com/vlevit/notify-send.sh | |
export SCRCPY_CMD="scrcpy --always-on-top --power-off-on-close --shortcut-mod=lctrl --stay-awake --turn-screen-off" | |
export ANDROID_IDD="<YOUR ANDROID ID HERE>" # LIKE h73p2zed > $adb devices (when android is USB connected) | |
notify-send.sh "SCRCPY_WIFI" "\-\- Start : $ANDROID_IDD" --icon="scrcpy" -t 8000 |
NewerOlder