Compare commits

...

3 Commits

Author SHA1 Message Date
TheYellowArchitect
c66eb1955a
Merge 78046e3aaa3c29036d9124ec83a8f5dd88c33320 into cf4a12acb3a70951fd59d67e0738bf3ab2d1045c 2024-04-04 15:51:37 +02:00
ewof
cf4a12acb3
Update xinitrc (#1402) 2024-03-28 13:13:34 +00:00
The Yellow Architect
78046e3aaa Added 5 new mappings, 3 of which pipe to clipboard
1. Copies the selected filename instead of the filepath, and pipes it to clipboard.

2. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full youtube URL and pipes it to clipboard.

3. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full piped.video URL and pipes it to the clipboard. (piped.video is a mirror of youtube, even includes comments)

4. Opens current folder in full picture mode. Think windows large icons mode. Good for browsing quickly through image albums.

5. Ctrl+l to unselect all selections so the behaviour matches the terminal.
2023-11-18 17:53:09 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -162,7 +162,14 @@ map V push :!nvim<space>
map W $setsid -f $TERMINAL >/dev/null 2>&1
map Y $printf "%s" "$fx" | xclip -selection clipboard
map U $printf "%s" "$fx" | xclip -selection clipboard
map u $printf "%s" "$fx" | sed 's/.*\///' | xclip -selection clipboard
map . $printf "%s" "$fx" | sed -E 's/^.+\[/https:\/\/www.youtube.com\/watch?v=/' | sed -E 's/\]\..+//' | xclip -selection clipboard
map <gt> $printf "%s" "$fx" | sed -E 's/^.+\[/https:\/\/piped.video\/watch?v=/' | sed -E 's/\]\..+//' | xclip -selection clipboard
map T $sxiv -t "$(pwd)" # opens thumbnail mode
map <c-l> unselect
# Source Bookmarks
source "~/.config/lf/shortcutrc"

View File

@ -15,4 +15,4 @@ else
fi
# Activate dbus variables
dbus-update-activation-environment --all
ssh-agent dwm
dbus-launch ssh-agent dwm