feat(bin): More scripts for 'bin' directory

This commit is contained in:
Olivier DOSSMANN 2025-05-14 22:22:17 +02:00
parent c13e8b3d9d
commit 3de58bb297
6 changed files with 34 additions and 1 deletions

View File

@ -1,4 +1,8 @@
#!/bin/sh
#
# battery
#
# Penser à modifier la variable dans ~/.profile
HEART_FULL=♥
HEART_EMPTY=♡

15
bin/launcher.sh Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
#
# launcher
#
# TODO: toujours mettre des \n entre les résultats !
res=()
# Find all programs in $PATH.
res+=$(echo -n "$PATH" | xargs -d: -I{} -r -- find -L {} -maxdepth 1 -mindepth 1 -type f -executable -printf '%P\n' 2>/dev/null)
res+=$(echo -e "\ncoucou")
for resultat in "${res[@]}"; do
echo "$resultat"
done | fzf|sh

3
bin/netflix Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
firefox --kiosk "https://netflix.com/"

View File

@ -2,7 +2,8 @@
# random_wallpaper
#
# Requirement: feh (apt install feh)
# Requirement: feh (apt install feh) - for Xorg
# Requirement: swaybg - for Wayland
directory="$HOME/wallpapers"
minutes=15
@ -50,6 +51,7 @@ while true; do
# Change background
file="${array_files["$NUMBER"]}"
if "${is_wayland}"; then
# Use of swaybg program (used with swaymsg)
$PROGRAM output "*" bg "$directory/$file" fill
else
feh --bg-fill "$directory/$file"

6
bin/rec1 Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# change number by 2 for screen 2
number=1
wf-recorder -o $(swaymsg -t get_outputs |grep "DP"|head -n ${number}|cut -d '"' -f 4) -f ~/screens/$(date +'%Y-%m-%d-%s')_screencast.mkv

3
bin/webserver Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
python3 -m http.server "$@"