And I could never get enough
This commit is contained in:
parent
ae7aefa541
commit
b88dc9011a
15 changed files with 159 additions and 50 deletions
13
.local/bin/aws
Executable file
13
.local/bin/aws
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
notify(){
|
||||
notify-send "aws" "screenshot copied to clipboard"
|
||||
}
|
||||
|
||||
img="$HOME/Pictures/$(date +"%d_%m_%y-%H_%M_%S").png"
|
||||
|
||||
case "$1" in
|
||||
-f) grim "$img" && wl-copy -t image/png < "$img" && notify ;;
|
||||
-r) grim -g "$(slurp)" "$img" && wl-copy -t image/png < "$img" && notify ;;
|
||||
-h|*) echo "usage: aws [-f] [-r]" >&2; exit 1; ;;
|
||||
esac
|
2
.local/bin/dam
Executable file
2
.local/bin/dam
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
LD_LIBRARY_PATH="$HOME"/Documents/Miscellaneous/alpchroot/usr/lib "$HOME"/.local/src/dam/dam "$@"
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# takes a fullscreen screenshot and sends notification afterwards
|
||||
grim - | wl-copy && notify-send "grim" "screenshot copied to clipboard"
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
dev=@DEFAULT_SINK@
|
||||
! [ "$1" = '-m' ] || { dev=@DEFAULT_SOURCE@; shift; }
|
||||
|
||||
vol="$(wpctl get-volume "$dev")"
|
||||
|
||||
[ "$vol" != "${vol%\[MUTED\]}" ] && echo "MUTED" && exit
|
||||
vol="${vol#Volume: }"
|
||||
|
||||
split() {
|
||||
# For ommiting the . without calling and external program.
|
||||
IFS=$2
|
||||
set -- $1
|
||||
printf '%s' "$@"
|
||||
}
|
||||
|
||||
vol="$(printf "%.0f" "$(split "$vol" ".")")"
|
||||
echo "$vol"
|
|
@ -1,22 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
ROOT=""$HOME"/Documents/Miscellaneous/archroot"
|
||||
ROOT=""$HOME"/Documents/Miscellaneous/alpchroot/"
|
||||
|
||||
bwrap \
|
||||
--bind "$ROOT" / \
|
||||
--dev-bind /dev /dev \
|
||||
--tmpfs /tmp \
|
||||
--proc /proc \
|
||||
--tmpfs /tmp \
|
||||
--bind "$ROOT"/usr /usr \
|
||||
--bind "$ROOT"/bin /bin \
|
||||
--bind "$ROOT"/sbin /sbin \
|
||||
--bind "$ROOT"/etc /etc \
|
||||
--bind "$ROOT"/lib /lib \
|
||||
--bind "$ROOT"/lib64 /lib64 \
|
||||
--bind "$ROOT"/usr/lib /usr/lib \
|
||||
--bind "$ROOT"/usr/lib64 /usr/lib64 \
|
||||
--bind "$ROOT"/usr/bin /usr/bin \
|
||||
--bind "$ROOT"/bin /bin \
|
||||
--bind "$ROOT"/usr/share /usr/share \
|
||||
--bind "$ROOT"/etc /etc \
|
||||
--ro-bind "$ROOT"/etc/resolv.conf /etc/resolv.conf \
|
||||
--setenv SHELL /bin/ash \
|
||||
--bind "$HOME" "$HOME" \
|
||||
--setenv "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
|
||||
--bind "$XDG_RUNTIME_DIR" "$XDG_RUNTIME_DIR" \
|
||||
--share-net \
|
||||
/usr/bin/nvim "$@"
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh -x
|
||||
grim -g "$(slurp </dev/null) - | wl-copy"
|
5
.local/bin/riverlaunch
Executable file
5
.local/bin/riverlaunch
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/zsh -l
|
||||
/usr/libexec/pipewire-launcher >/dev/null 2>&1
|
||||
dbus-run-session river
|
||||
exec touch /tmp/swaylock-sleep && inotifyd swaylock /tmp/swaylock-sleep
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue