diff options
Diffstat (limited to 'mixins/multimedia.nix')
-rw-r--r-- | mixins/multimedia.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mixins/multimedia.nix b/mixins/multimedia.nix index 0ced6f9..2e99771 100644 --- a/mixins/multimedia.nix +++ b/mixins/multimedia.nix @@ -63,10 +63,8 @@ # yank video link with timestamp "Ctrl+y" = "run ${pkgs.writeShellScript "yank-mpv-timestamp" " url=$1 - if [[ $url = *youtube.com* || $url = *youtu.be* || $url = *twitch.tv* ]]; then - timepos=\${2%.*} - url+=$([[ $1 = *\?* ]] && echo \\& || echo \\?)t=$(( timepos / 3600 ))h$(( timepos / 60 ))m$(( timepos % 60 ))s - fi + timepos=\${2%.*} + url+=$([[ $1 = *\?* ]] && echo \\& || echo \\?)t=$(( timepos / 3600 ))h$(( timepos / 60 ))m$(( timepos % 60 ))s ${pkgs.wl-clipboard}/bin/wl-copy $url "} \${path} \${=time-pos}"; |