Improve configs

This commit is contained in:
Tobias Reisinger 2023-07-06 23:38:19 +02:00
parent fdefb7037b
commit eb3067ff29
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
13 changed files with 67 additions and 20 deletions

View file

@ -96,7 +96,9 @@ _autostart_run_graphical () {
start-audio pipewire
wait-for-service "network-online.target"
if ! pgrep keepassxc >/dev/null
# Execute only if not already running
# Don't match keepassxc-proxy
if ! (pgrep -l keepassxc | grep -v prox) >/dev/null
then
if pass x
then

View file

@ -11,7 +11,7 @@ clip_image()
{
if [ -n "$WAYLAND_DISPLAY" ]
then
wc-copy -t image/png < "$screenshot_path"
wl-copy -t image/png < "$screenshot_path"
else
xclip -t image/png "$screenshot_path" -selection clipboard
fi
@ -56,7 +56,7 @@ main_no_upload()
{
if call_screenshot_tool
then
clip_image $screenshot_path
clip_image
fi
}

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
# shellcheck disable=SC2046
vim $(find "$@")
$EDITOR $(find "$@")

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
# shellcheck disable=SC2046
vim $(grep "$@")
$EDITOR $(grep "$@")