feat(bin): More scripts for 'bin' directory
This commit is contained in:
parent
c13e8b3d9d
commit
3de58bb297
@ -1,4 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# battery
|
||||||
|
#
|
||||||
|
# Penser à modifier la variable dans ~/.profile
|
||||||
|
|
||||||
HEART_FULL=♥
|
HEART_FULL=♥
|
||||||
HEART_EMPTY=♡
|
HEART_EMPTY=♡
|
||||||
|
15
bin/launcher.sh
Normal file
15
bin/launcher.sh
Normal 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
3
bin/netflix
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
firefox --kiosk "https://netflix.com/"
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
# random_wallpaper
|
# random_wallpaper
|
||||||
#
|
#
|
||||||
# Requirement: feh (apt install feh)
|
# Requirement: feh (apt install feh) - for Xorg
|
||||||
|
# Requirement: swaybg - for Wayland
|
||||||
|
|
||||||
directory="$HOME/wallpapers"
|
directory="$HOME/wallpapers"
|
||||||
minutes=15
|
minutes=15
|
||||||
@ -50,6 +51,7 @@ while true; do
|
|||||||
# Change background
|
# Change background
|
||||||
file="${array_files["$NUMBER"]}"
|
file="${array_files["$NUMBER"]}"
|
||||||
if "${is_wayland}"; then
|
if "${is_wayland}"; then
|
||||||
|
# Use of swaybg program (used with swaymsg)
|
||||||
$PROGRAM output "*" bg "$directory/$file" fill
|
$PROGRAM output "*" bg "$directory/$file" fill
|
||||||
else
|
else
|
||||||
feh --bg-fill "$directory/$file"
|
feh --bg-fill "$directory/$file"
|
||||||
|
6
bin/rec1
Executable file
6
bin/rec1
Executable 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
3
bin/webserver
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
python3 -m http.server "$@"
|
Loading…
Reference in New Issue
Block a user