From ebfaf811ac83d31433a6a06305289c5b0fd61967 Mon Sep 17 00:00:00 2001 From: jamazi <31401744+jamazi@users.noreply.github.com> Date: Mon, 13 Jul 2020 14:49:53 +0300 Subject: [PATCH 1/4] Update .zprofile (#758) Remove trailing slash from local bin directories in PATH --- .zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zprofile b/.zprofile index 53161ed..2d2f367 100644 --- a/.zprofile +++ b/.zprofile @@ -6,7 +6,7 @@ # to clean up. # Adds `~/.local/bin` to $PATH -export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')" +export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')" # Default programs: export EDITOR="nvim" From f52a90e564c8ea1a540aa516dde31df0068c803e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Tomi=C4=87?= Date: Tue, 14 Jul 2020 00:55:25 +0200 Subject: [PATCH 2/4] add-sudo-to-mkdir (#761) --- .local/bin/dmenumountcifs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs index 3be6e86..99be72f 100755 --- a/.local/bin/dmenumountcifs +++ b/.local/bin/dmenumountcifs @@ -11,7 +11,7 @@ share=$(smbclient -L "$srvname" -N | grep Disk | awk '{print $1}' | dmenu -i -p share2mnt=//"$srvname".local/"$share" sharemount() { - mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && mkdir /mnt/"$share") + mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && sudo mkdir /mnt/"$share") [ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="" /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0 notify-send "Netshare $share already mounted"; exit 1 } From 8531ae348da38184ffa8296847eae480b83ce7a8 Mon Sep 17 00:00:00 2001 From: Elliotslab Date: Thu, 16 Jul 2020 00:29:04 -0400 Subject: [PATCH 3/4] update bulkrename to B, add setwallpaper shotcut --- .config/lf/lfrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index fc82f02..f914164 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -64,6 +64,8 @@ cmd bulkrename ${{ vidir }} +cmd setwallpaper %cp "$f" ~/.config/wall.png && xwallpaper --zoom "$f" + # Bindings map $lf -remote "send $id select '$(fzf)'" map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" @@ -85,7 +87,8 @@ map c push A # new rename map I push A # at the very beginning map i push A # before extention map a push A # after extention -map b bulkrename +map B bulkrename +map bg setwallpaper map down map up From 2be4d7e2d72ccd6664ff99ea282007a0e05f8f47 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 16 Jul 2020 08:27:28 -0400 Subject: [PATCH 4/4] simplified, use setbg --- .config/lf/lfrc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f914164..904cbf2 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -60,11 +60,8 @@ cmd copyto ${{ notify-send "📋 File(s) copied." "File(s) copies to $dest." }} -cmd bulkrename ${{ - vidir -}} - -cmd setwallpaper %cp "$f" ~/.config/wall.png && xwallpaper --zoom "$f" +cmd setbg "$1" +cmd bulkrename $vidir # Bindings map $lf -remote "send $id select '$(fzf)'" @@ -88,7 +85,7 @@ map I push A # at the very beginning map i push A # before extention map a push A # after extention map B bulkrename -map bg setwallpaper +map b $setbg $f map down map up